spherapy

module util.celestrak

Functions to fetch TLEs from Celestrak.

Attributes:

Global Variables


function updateTLEs

updateTLEs(sat_id_list: list[int])  list[int]

Fetch most recent TLE for satcat IDs from celestrak.

Fetch most recent TLE for provided list of satcat IDs, and store in file.
Will try MAX_RETRIES before raising a ValueError

Args:

Returns:

Raises: TimeoutError


function getTLEFilePath

getTLEFilePath(sat_id: int)  Path

Gives path to file where celestrak TLE is stored.

Celestrak TLEs are stored in {satcadID}.temptle

Args:

Returns: path to file


function getStoredEpochs

getStoredEpochs(sat_id: int)  None | tuple[datetime, datetime | None]

Return the start and end epoch for {sat_id}.temptle .

Args:

Returns: (first epoch datetime, last epoch datetime) None if no spacetrack tle stored for sat_id


This file was automatically generated via lazydocs.