{ "cells": [ { "cell_type": "markdown", "id": "7fb27b941602401d91542211134fc71a", "metadata": { "papermill": { "duration": 0.004211, "end_time": "2026-06-30T01:16:09.226057+00:00", "exception": false, "start_time": "2026-06-30T01:16:09.221846+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-06-30T01:16:09.236549Z", "iopub.status.busy": "2026-06-30T01:16:09.235830Z", "iopub.status.idle": "2026-06-30T01:16:11.575560Z", "shell.execute_reply": "2026-06-30T01:16:11.574748Z" }, "papermill": { "duration": 2.345893, "end_time": "2026-06-30T01:16:11.576431+00:00", "exception": false, "start_time": "2026-06-30T01:16:09.230538+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.002312, "end_time": "2026-06-30T01:16:11.581455+00:00", "exception": false, "start_time": "2026-06-30T01:16:11.579143+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", "