Welcome to mpcq's documentation! ================================ ``mpcq`` is a powerful Python client library for querying and analyzing Minor Planet Center (MPC) data, made available through the Small Bodies Node (SBN). The data is hosted on Google BigQuery and maintained by the `Asteroid Institute `_. You can find the source code on `GitHub `_ and the package on `PyPI `_. For example, the library provides a simple interface to query MPC observations: .. code-block:: python >>client = BigQueryMPCClient( dataset_id="your_subscribed_main_dataset_id", views_dataset_id="your_subscribed_views_dataset_id" ) >>observations = client.query_observations(["2013 RR165"]) >>print(f"Number of observations: {len(observations)}") Number of observations: 40 >>print(f"Date range: {observations.obstime.min().mjd()} to {observations.obstime.max().mjd()}") Date range: [55591.46905] to [58009.34117] >>print(f"Observatories: {pc.unique(observations.stn)}") Observatories: [ "F51", "W84", "G96" ] Features -------- - **BigQuery Integration**: Quickly analyze MPC data without having to maintain your own replica. - **Efficient Queries**: Optimized query patterns for common asteroid data access patterns - **Rich Data Access**: Query observations, orbits, submission history, and more - **Cross-Matching**: Tools for matching observations and finding duplicates Data Structures ------------- The ``mpcq`` package uses `adam-core `_ data structures, which are built on top of `Quivr `_. Quivr provides strongly-typed tables backed by Apache Arrow for efficient memory usage and fast operations. All query results are returned as Quivr tables with predefined schemas: - ``MPCObservations``: Contains observation data with columns like ``obstime``, ``ra``, ``dec``, etc. - ``MPCOrbits``: Contains orbital elements with columns like ``a``, ``e``, ``i``, etc. - ``MPCSubmissionHistory``: Contains submission history with columns like ``submission_time``, ``num_obs``, etc. - ``MPCPrimaryObjects``: Contains object identification data linking different designations. All of the data structures can easily be converted to pandas DataFrames. .. toctree:: :maxdepth: 2 :caption: Contents: installation quickstart bigquery_dataset api_reference examples community contributing changelog Getting Started -------------- To get started with ``mpcq``, check out the :doc:`quickstart` guide. BigQuery Dataset --------------- The Asteroid Institute maintains a BigQuery replica of the Minor Planet Center's Small Bodies Node database. This dataset is publicly accessible through Google Cloud Platform. For more information about accessing and using the dataset, see :doc:`bigquery_dataset`. Community -------- Join our community! We have an active `mailing list `_ and Slack workspace where you can get help, share ideas, and contribute to the project. See our :doc:`community` page for more details on how to get involved. Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`