Data Management#
Ephemeris Data#
The Satcat SDK exposes ephemeris management operations on the client. Most common calls are documented below as short examples.
|
Upload an ephemeris file to your organization. Returns an |
|
Retrieve metadata for a specific ephemeris by its |
|
Download the serialized ephemeris file contents (e.g. |
|
List ephemerides you have access to; supports filters, sorting and pagination. |
|
List supported ephemeris file formats accepted by the API. |
|
Mark an uploaded ephemeris as |
Examples#
Upload an ephemeris file#
# Upload a local ephemeris file (provide a path or an open binary file-like)
ephemeris = client.create_ephemeris(
"/path/to/ephemeris.oem",
file_format="automatic",
norad_id=25544, # Required, RSO must be owned by your organization to succeed
designation='OPERATIONAL',
context='ROUTINE',
)
List ephemerides available to the authenticated user#
ephem_list = client.list_ephemerides(filters=[{"field": "norad_id", "value": 25544}])
Download the ephemeris contents in a given format#
# download as OEM (returns a text-mode file-like object)
content = client.download_ephemeris(ephemeris.id, file_format="oem")
with open("downloaded_ephemeris.oem", "w") as f:
f.write(content.read())
Get ephemeris metadata by id#
ephem = client.get_ephemeris(ephemeris.id)
Designate an ephemeris as OPERATIONAL#
ephemeris = client.operationalize_ephemeris(ephemeris.id)
Notes#
When passing an open file-like object to
create_ephemeris
, open it in binary mode.