util.celestrakFunctions to fetch TLEs from Celestrak.
Attributes:
MAX_RETRIES: number of times to try and reach Celestrak.TIMEOUT: timeout for connection and request servicing by Celestrak.updateTLEsupdateTLEs(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:
sat_id_list: list of satcat ids to fetchReturns:
list: list of satcat ids successfully fetchedRaises: TimeoutError
getTLEFilePathgetTLEFilePath(sat_id: int) → Path
Gives path to file where celestrak TLE is stored.
Celestrak TLEs are stored in {satcadID}.temptle
Args:
sat_id: satcat IDReturns: path to file
getStoredEpochsgetStoredEpochs(sat_id: int) → None | tuple[datetime, datetime | None]
Return the start and end epoch for {sat_id}.temptle .
Args:
sat_id: satcat id to checkReturns: (first epoch datetime, last epoch datetime) None if no spacetrack tle stored for sat_id
This file was automatically generated via lazydocs.