padre_craft.orbit.orbit#
Functions
|
Get the path to the ephemeris file. |
Get the latest TLE in CSV format. |
|
|
Returns the url for the PADRE orbit information from celestrak |
Classes
|
A class to load and calculate the orbit of the PADRE spacecraft. |
- class padre_craft.orbit.orbit.PadreOrbit(tle_filename=None)[source]#
A class to load and calculate the orbit of the PADRE spacecraft.
- Parameters:
tle_filename (Path, str, or None) – Can parse CSV or standard TLE files. If given none, will download todays TLE from Celestrack
- Raises:
ValueError – If does not recognize the TLE file or cannot download one if not given.
Examples
>>> from padre_craft.orbit import PadreOrbit >>> from astropy.time import Time >>> import astropy.units as u >>> from padre_craft import _test_files_directory >>> tle_filename = _test_files_directory / "20251219_padre_tle.csv" >>> padre_orbit = PadreOrbit(tle_filename) >>> padre_orbit.calculate(tstart=Time("2025-12-19T01:00"), tend=Time("2025-12-19T01:06"), dt=1 * u.min) >>> padre_orbit.in_sun array([ True, True, True, True, True, True]) >>> padre_orbit.in_particles array([False, False, False, True, True, True]) >>> padre_orbit.good_flag array([ True, True, True, False, False, False])
- padre_craft.orbit.orbit.get_celestrak_url(format='csv') str[source]#
Returns the url for the PADRE orbit information from celestrak
- Raises:
ValueError – If format is not one recognized by Celestrak [JSON, CSV, TLE]
- Returns:
url (str) – The url to download the celestrak orbit information