updater
Functions to update TLE of a satcat ID, and fetch where the file is stored.
updateTLEs
updateTLEs(sat_id_list: list[int]) → list[int]
Fetch most recent TLE for provided list of satcat IDs.
Fetch most recent TLE for provided list of satcat IDs,
If credentials are stored, use Spacetrack as TLE source, this will fetch all historical TLEs for that satcat ID (from most recent stored TLE up to current)
If no credentials are stored, use Celestrak as TLE source, this will fetch only the most recent TLE
Args:
sat_id_list
: list of satcat ids to fetchReturns: list of satcat ids successfully fetched
getTLEFilePaths
getTLEFilePaths(sat_id_list: list[int], use_packaged: bool = False) → list[Path]
Fetch list of paths to TLE files.
Fetch paths to the file storing the list of TLEs for each provided satcat ID
If credentials are stored, return path containing all historical TLEs (fetched from Spacetrack)
If no credentials are stored, return path to .temptle containing only most recent TLE (from Celestrak)
You can force the use of TLE data packaged with spherapy by setting use_packaged=True This data will be out of date, and should only be used in examples.
Args:
sat_id_list
: list of satcat ids to find pathsuse_packaged
: use the default TLEs packaged with spherapy, these will be out of date.Returns: list of paths
getStoredEpochLimits
getStoredEpochLimits(
sat_id_list: list[int],
use_packaged: bool = False
) → dict[int, None | tuple[datetime, datetime | None]]
Returns limiting epochs for the stored TLEs for each sat in sat_id_list.
[description]
Args:
sat_id_list
(list[int]): [description]use_packaged
(bool): [description] (default: False
)Returns:
list[tuple[dt.datetime, dt.datetime]]
: [description]This file was automatically generated via lazydocs.