202.9. Numbered identifications table#
202.9. Numbered Identifications table¶
For the Rubin Science Platform at data.lsst.cloud.
Data Release: Prompt Products
Container Size: Large
LSST Science Pipelines version: r30.0.11
Last verified to run: 2026-11-30
Repository: github.com/lsst/tutorial-notebooks
DOI: 10.11578/rubin/dc.20250909.20
Learning objective: To understand the contents of the numbered_identifications table and how to access it.
LSST data products: numbered_identifications
Packages: lsst.rsp
Credit: Originally developed by the Rubin Community Science team. Please consider acknowledging them if this notebook is used for the preparation of journal articles, software releases, or other notebooks.
Get Support: Everyone is encouraged to ask questions or raise issues in the Support Category of the Rubin Community Forum. Rubin staff will respond to all questions posted there.
1. Introduction¶
The numbered_identifications table is a daily copy of the Minor Planet Center's (MPC) table of numbered objects.
It connects an object’s permanent number to its primary provisional designation; the iau_designation, iau_name, naming_credit columns are present, but are not currently populated in the MPC’s replicated table.
This table is useful for translating between permanent numbers and the provisional designations used by the Rubin Solar System tables.
Related tutorials: The TAP data access services are demonstrated in the 100-level "How to" tutorials.
1.1. Import packages¶
From the lsst package, import the module for the TAP service.
from lsst.rsp import RSPDiscovery
1.2. Define parameters and functions¶
Create an instance of the TAP service.
discovery = RSPDiscovery("prompt")
service = discovery.get_tap_client()
2. Schema (columns)¶
To browse the table schema visit the Rubin schema browser, or use the TAP service via the Portal Aspect or as demonstrated in Section 2.1.
2.1. Retrieve table schema¶
To retrieve the table schema, define a query for the schema columns of the numbered_identifications table and run the query job.
query = """SELECT column_name, datatype, description, unit
FROM tap_schema.columns
WHERE table_name = 'ppdb.numbered_identifications'"""
job = service.submit_job(query)
job.run()
job.wait(phases=['COMPLETED', 'ERROR'])
print('Job phase is', job.phase)
if job.phase == 'ERROR':
job.raise_if_error()
Job phase is COMPLETED
Retrieve the query results and display them as an astropy table with the to_table() attribute.
assert job.phase == 'COMPLETED'
results = job.fetch_result().to_table()
results
| column_name | datatype | description | unit |
|---|---|---|---|
| str64 | str64 | str512 | str64 |
| id | int | Internal ID (generally not seen/used by the user) | |
| packed_primary_provisional_designation | char | The primary provisional designation in packed form (e.g. K08A00B) | |
| unpacked_primary_provisional_designation | char | The primary provisional designation in unpacked form (e.g. 2008 AB) | |
| permid | char | Permanent designation (number) | |
| iau_designation | char | IAU-approved designation (not filled at the moment) | |
| iau_name | char | IAU-approved name (not filled at the moment) | |
| naming_credit | char | Credit for suggesting the name | |
| created_at | char | When this row was created | |
| updated_at | char | When this row was updated |
Delete the job, but not the results.
del query
job.delete()
2.2. Key Columns¶
Here are several are the most commonly used columns in numbered_identifications.
Note that in this copy, most columns other than those that are designation-related are NULL.
2.2.1. Primary provisional designation¶
The primary provisional designation (unpacked format):
unpacked_primary_provisional_designation
The primary provisional designation (packed format):
packed_primary_provisional_designation
3. Data access¶
The Prompt Products numbered_identifications table is available via the TAP service.
3.1. TAP (Table Access Protocol)¶
The numbered_identifications table is accessible via the TAP services using ADQL queries.
3.1.1. Current catalog size¶
The numbered_identifications table is a copy of the MPC database and is updated daily as part of solar system processing (SSP). As of the date of PPDB release (30th November 2026) numbered_identifications contains over 896,000 rows. Uncomment the following cell to run a query that retrieves the size of the current_identifications table (at the time of query).
query = """SELECT COUNT(*)
FROM ppdb.numbered_identifications"""
job = service.submit_job(query)
job.run()
job.wait(phases=['COMPLETED', 'ERROR'])
print('Job phase is', job.phase)
if job.phase == 'ERROR':
job.raise_if_error()
Job phase is COMPLETED
Fetch the results as an astropy table.
assert job.phase == 'COMPLETED'
results = job.fetch_result().to_table()
print(results)
COUNT1 ------ 896611
3.1.2. Demo query¶
Define a query to return three of the key columns from Section 2.2 for the top 100 entries in the numbered_identifications table.
To query the full numbered_identifications table, remove "TOP 100" from the below query.
query = """SELECT TOP 10 permid,
packed_primary_provisional_designation,
unpacked_primary_provisional_designation
FROM ppdb.numbered_identifications"""
job = service.submit_job(query)
job.run()
job.wait(phases=['COMPLETED', 'ERROR'])
print('Job phase is', job.phase)
if job.phase == 'ERROR':
job.raise_if_error()
Job phase is COMPLETED
Retrieve the query results and display them as an astropy table with the to_table() attribute.
assert job.phase == 'COMPLETED'
results = job.fetch_result()
results.to_table()
| permid | packed_primary_provisional_designation | unpacked_primary_provisional_designation |
|---|---|---|
| str16 | str16 | str16 |
| 342 | I92U00A | A892 UA |
| 1096 | J28O00B | 1928 OB |
| 1170 | J30S00Q | 1930 SQ |
| 3496 | J77R00C | 1977 RC |
| 6168 | J81E01B | 1981 EB1 |
| 3252 | J81E04M | 1981 EM4 |
| 16377 | J81E11Y | 1981 EY11 |
| 43746 | J81E31H | 1981 EH31 |
| 100048 | J91T14E | 1991 TE14 |
| 20031 | J92O00O | 1992 OO |
Option to display the results.
job.delete()
del query
3.1.3. Joinable tables¶
The numbered_identifications table can be joined to the other Solar System tables using packed_primary_provisional_designation or unpacked_primary_provisional_designation.
Note:
unpacked_primary_provisional_designationis equivalent todesignationinSSobject,SSObservation,NearbySSO.
The following query retrieves the ssObjectId and number of observations in the PPDB (nObs) of the TOP 10 numbered asteroids:
query = """SELECT TOP 10 sso.ssObjectId, sso.designation,
sso.nObs, ni.permid
FROM ppdb.numbered_identifications AS ni
JOIN ppdb.SSObject AS sso
ON sso.designation = ni.unpacked_primary_provisional_designation"""
job = service.submit_job(query)
job.run()
job.wait(phases=['COMPLETED', 'ERROR'])
print('Job phase is', job.phase)
if job.phase == 'ERROR':
job.raise_if_error()
Job phase is COMPLETED
Retrieve the query results and display them as an astropy table with the to_table() attribute.
assert job.phase == 'COMPLETED'
results = job.fetch_result()
results.to_table()
| ssObjectId | designation | nObs | permid |
|---|---|---|---|
| int64 | str16 | int32 | str16 |
| 4697307510836906528 | 1950 KA | 6 | 1580 |
| 4985820435724126752 | 1981 EE11 | 59 | 22265 |
| 6210798417727801888 | 1994 AV1 | 47 | 19238 |
| 6428097177074616864 | 1995 SY5 | 2 | 35240 |
| 5996879643091225120 | 1997 CS29 | 7 | 79360 |
| 5778456169265318432 | 1997 EP31 | 6 | 333871 |
| 6428378677854685728 | 1997 YY6 | 9 | 100690 |
| 6356602460025997856 | 1998 BX7 | 12 | 31210 |
| 5489943218642045472 | 1998 EL20 | 69 | 150176 |
| 5129653053724117536 | 1998 FG | 8 | 39889 |
Clean up.
job.delete()
del query, results