{ "cells": [ { "cell_type": "markdown", "id": "7fb27b941602401d91542211134fc71a", "metadata": { "papermill": { "duration": 0.002961, "end_time": "2026-05-16T13:49:26.124974+00:00", "exception": false, "start_time": "2026-05-16T13:49:26.122013+00:00", "status": "completed" }, "tags": [] }, "source": [ "# Orbits of Known Objects\n", "\n", "galpy can look up the phase-space coordinates of known astronomical objects\n", "by name, using SIMBAD or built-in catalogs. This makes it easy to compute\n", "orbits for stars, clusters, galaxies, and solar system bodies." ] }, { "cell_type": "code", "execution_count": 1, "id": "acae54e37e7d407bbb7b55eff062a284", "metadata": { "execution": { "iopub.execute_input": "2026-05-16T13:49:26.131976Z", "iopub.status.busy": "2026-05-16T13:49:26.131736Z", "iopub.status.idle": "2026-05-16T13:49:28.556662Z", "shell.execute_reply": "2026-05-16T13:49:28.555867Z" }, "papermill": { "duration": 2.429898, "end_time": "2026-05-16T13:49:28.557908+00:00", "exception": false, "start_time": "2026-05-16T13:49:26.128010+00:00", "status": "completed" }, "tags": [] }, "outputs": [], "source": [ "%matplotlib inline\n", "import numpy\n", "import matplotlib.pyplot as plt\n", "from galpy.orbit import Orbit\n", "from galpy.potential import MWPotential2014\n", "import warnings\n", "\n", "warnings.filterwarnings(\"ignore\", category=RuntimeWarning)\n", "warnings.filterwarnings(\"ignore\", category=UserWarning)" ] }, { "cell_type": "markdown", "id": "9a63283cbaf04dbcab1f6479b197f3a8", "metadata": { "papermill": { "duration": 0.002443, "end_time": "2026-05-16T13:49:28.563359+00:00", "exception": false, "start_time": "2026-05-16T13:49:28.560916+00:00", "status": "completed" }, "tags": [] }, "source": [ "## Looking up a single object\n", "\n", "`Orbit.from_name` looks up built-in catalogs or, if this fails, queries SIMBAD if\n", "`astroquery` is installed, to get the phase-space coordinates of a named object.\n", "`Orbit.from_name` supports **tab completion** in IPython/Jupyter for the list of\n", "built-in objects (globular clusters, dwarf satellite galaxies, etc.).\n", "\n", "