{ "cells": [ { "cell_type": "markdown", "id": "1e78bea2", "metadata": {}, "source": [ "# 1. Units and conventions\n", "\n", "Before defining a model, put observations and physical parameters in the\n", "units expected by JeansPy. Arrays contain plain numerical values: the model\n", "does not infer a unit from an array or convert an Astropy quantity for you.\n", "\n", "\n", "This notebook is self-contained. Install JeansPy with the `numpyro_cpu` and\n", "`plotting` extras as described in the installation guide, then select that\n", "environment as your Jupyter kernel and run cells from top to bottom.\n", "Saved outputs are an example run; timings and short-chain results can vary.\n", "\n", "## Prepare observations\n", "\n", "For spherical inference, each row represents a star. `R_pc` is the projected\n", "distance from the galaxy center, not its three-dimensional radius. Supply\n", "the measured LOS velocity and its standard error in the same velocity frame." ] }, { "cell_type": "code", "execution_count": 1, "id": "e8c5a4b7", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | R_pc | \n", "vlos_kms | \n", "e_vlos_kms | \n", "
|---|---|---|---|
| 0 | \n", "30.0 | \n", "-4.0 | \n", "2.0 | \n", "
| 1 | \n", "100.0 | \n", "2.0 | \n", "2.0 | \n", "
| 2 | \n", "300.0 | \n", "8.0 | \n", "1.5 | \n", "