ostk.astrodynamics.trajectory.orbit.model.sgp4.TLE¶
- class TLE(*args, **kwargs)¶
Bases:
pybind11_object
A Two-Line Element set (TLE).
A TLE is a data format encoding a list of orbital elements of an Earth-orbiting object for a given point in time
Overloaded function.
__init__(self: ostk.astrodynamics.trajectory.orbit.model.sgp4.TLE, first_line: ostk.core.type.String, second_line: ostk.core.type.String) -> None
Constructor.
- Args:
first_line (str): The first line of the TLE. second_line (str): The second line of the TLE.
__init__(self: ostk.astrodynamics.trajectory.orbit.model.sgp4.TLE, satellite_name: ostk.core.type.String, first_line: ostk.core.type.String, second_line: ostk.core.type.String) -> None
Constructor.
- Args:
satellite_name (str): The name of the satellite. first_line (str): The first line of the TLE. second_line (str): The second line of the TLE.
Methods
Check if a TLE can be parsed from two strings.
Overloaded function.
Generate the checksum of a string.
Get the argument of perigee.
Get the B* drag term.
Get the classification.
Get the eccentricity.
Get the element set number.
Get the ephemeris type.
Get the epoch.
Get the first line of the TLE.
Get the checksum of the first line.
Get the inclination.
Get the international designator.
Get the mean anomaly.
Get the mean motion.
Get the mean motion first time derivative divided by two.
Get the mean motion second time derivative divided by six.
Get the right ascension of the ascending node.
Get the revolution number at epoch.
Get the name of the satellite.
Get the satellite number.
Get the second line of the TLE.
Get the checksum of the second line.
Check if the TLE object is defined.
Load a TLE from a file.
Parse a TLE from a string.
Set the epoch.
Set the revolution number at epoch.
Set the satellite number.
Create an undefined TLE object.
- static can_parse(
- first_line: ostk.core.type.String,
- second_line: ostk.core.type.String,
Check if a TLE can be parsed from two strings.
- static construct(*args, **kwargs)¶
Overloaded function.
construct(satellite_name: ostk.core.type.String, satellite_number: ostk.core.type.Integer, classification: ostk.core.type.String, international_designator: ostk.core.type.String, epoch: ostk.physics.time.Instant, mean_motion_first_time_derivative_divided_by_two: ostk.core.type.Real, mean_motion_second_time_derivative_divided_by_six: ostk.core.type.Real, b_star_drag_term: ostk.core.type.Real, ephemeris_type: ostk.core.type.Integer, element_set_number: ostk.core.type.Integer, inclination: ostk.physics.unit.Angle, raan: ostk.physics.unit.Angle, eccentricity: ostk.core.type.Real, aop: ostk.physics.unit.Angle, mean_anomaly: ostk.physics.unit.Angle, mean_motion: ostk.physics.unit.Derived, revolution_number_at_epoch: ostk.core.type.Integer) -> ostk.astrodynamics.trajectory.orbit.model.sgp4.TLE
Construct a TLE.
- Args:
satellite_name (str): The name of the satellite. satellite_number (int): The satellite number. classification (str): The classification. international_designator (str): The international designator. epoch (Instant): The epoch. mean_motion_first_time_derivative_divided_by_two (float): The mean motion first time derivative divided by two. mean_motion_second_time_derivative_divided_by_six (float): The mean motion second time derivative divided by six. b_star_drag_term (float): The B* drag term. ephemeris_type (int): The ephemeris type. element_set_number (int): The element set number. inclination (Angle): The inclination. raan (Angle): The right ascension of the ascending node. eccentricity (float): The eccentricity. aop (Angle): The argument of perigee. mean_anomaly (Angle): The mean anomaly. mean_motion (float): The mean motion. revolution_number_at_epoch (int): The revolution number at epoch.
- Returns:
TLE: The constructed TLE.
construct(satellite_number: ostk.core.type.Integer, classification: ostk.core.type.String, international_designator: ostk.core.type.String, epoch: ostk.physics.time.Instant, mean_motion_first_time_derivative_divided_by_two: ostk.core.type.Real, mean_motion_second_time_derivative_divided_by_six: ostk.core.type.Real, b_star_drag_term: ostk.core.type.Real, ephemeris_type: ostk.core.type.Integer, element_set_number: ostk.core.type.Integer, inclination: ostk.physics.unit.Angle, raan: ostk.physics.unit.Angle, eccentricity: ostk.core.type.Real, aop: ostk.physics.unit.Angle, mean_anomaly: ostk.physics.unit.Angle, mean_motion: ostk.physics.unit.Derived, revolution_number_at_epoch: ostk.core.type.Integer) -> ostk.astrodynamics.trajectory.orbit.model.sgp4.TLE
Construct a TLE.
- Args:
satellite_number (int): The satellite number. classification (str): The classification. international_designator (str): The international designator. epoch (Instant): The epoch. mean_motion_first_time_derivative_divided_by_two (float): The mean motion first time derivative divided by two. mean_motion_second_time_derivative_divided_by_six (float): The mean motion second time derivative divided by six. b_star_drag_term (float): The B* drag term. ephemeris_type (int): The ephemeris type. element_set_number (int): The element set number. inclination (Angle): The inclination. raan (Angle): The right ascension of the ascending node. eccentricity (float): The eccentricity. aop (Angle): The argument of perigee. mean_anomaly (Angle): The mean anomaly. mean_motion (float): The mean motion. revolution_number_at_epoch (int): The revolution number at epoch.
- Returns:
TLE: The constructed TLE.
- static generate_checksum(string: ostk.core.type.String) ostk.core.type.Integer ¶
Generate the checksum of a string.
- get_aop( ) ostk.physics.unit.Angle ¶
Get the argument of perigee.
- Returns:
The argument of perigee.
- Return type:
Angle
- get_b_star_drag_term( ) ostk.core.type.Real ¶
Get the B* drag term.
- Returns:
The B* drag term.
- Return type:
- get_classification( ) ostk.core.type.String ¶
Get the classification.
- Returns:
The classification.
- Return type:
- get_eccentricity( ) ostk.core.type.Real ¶
Get the eccentricity.
- Returns:
The eccentricity.
- Return type:
- get_element_set_number( ) ostk.core.type.Integer ¶
Get the element set number.
- Returns:
The element set number.
- Return type:
- get_ephemeris_type( ) ostk.core.type.Integer ¶
Get the ephemeris type.
- Returns:
The ephemeris type.
- Return type:
- get_epoch( ) ostk.physics.time.Instant ¶
Get the epoch.
- Returns:
The epoch.
- Return type:
Instant
- get_first_line( ) ostk.core.type.String ¶
Get the first line of the TLE.
- Returns:
The first line of the TLE.
- Return type:
- get_first_line_checksum( ) ostk.core.type.Integer ¶
Get the checksum of the first line.
- Returns:
The checksum of the first line.
- Return type:
- get_inclination( ) ostk.physics.unit.Angle ¶
Get the inclination.
- Returns:
The inclination.
- Return type:
Angle
- get_international_designator( ) ostk.core.type.String ¶
Get the international designator.
- Returns:
The international designator.
- Return type:
- get_mean_anomaly( ) ostk.physics.unit.Angle ¶
Get the mean anomaly.
- Returns:
The mean anomaly.
- Return type:
Angle
- get_mean_motion( ) ostk.physics.unit.Derived ¶
Get the mean motion.
- Returns:
The mean motion.
- Return type:
- get_mean_motion_first_time_derivative_divided_by_two( ) ostk.core.type.Real ¶
Get the mean motion first time derivative divided by two.
- Returns:
The mean motion first time derivative divided by two.
- Return type:
- get_mean_motion_second_time_derivative_divided_by_six( ) ostk.core.type.Real ¶
Get the mean motion second time derivative divided by six.
- Returns:
The mean motion second time derivative divided by six.
- Return type:
- get_raan( ) ostk.physics.unit.Angle ¶
Get the right ascension of the ascending node.
- Returns:
The right ascension of the ascending node.
- Return type:
Angle
- get_revolution_number_at_epoch( ) ostk.core.type.Integer ¶
Get the revolution number at epoch.
- Returns:
The revolution number at epoch.
- Return type:
- get_satellite_name( ) ostk.core.type.String ¶
Get the name of the satellite.
- Returns:
The name of the satellite.
- Return type:
- get_satellite_number( ) ostk.core.type.Integer ¶
Get the satellite number.
- Returns:
The satellite number.
- Return type:
- get_second_line( ) ostk.core.type.String ¶
Get the second line of the TLE.
- Returns:
The second line of the TLE.
- Return type:
- get_second_line_checksum( ) ostk.core.type.Integer ¶
Get the checksum of the second line.
- Returns:
The checksum of the second line.
- Return type:
- is_defined(self: ostk.astrodynamics.trajectory.orbit.model.sgp4.TLE) bool ¶
Check if the TLE object is defined.
- Returns:
True if the TLE object is defined, False otherwise.
- Return type:
- static load(
- file: ostk.core.filesystem.File,
Load a TLE from a file.
- static parse(
- string: ostk.core.type.String,
Parse a TLE from a string.
- set_revolution_number_at_epoch(
- self: ostk.astrodynamics.trajectory.orbit.model.sgp4.TLE,
- revolution_number: ostk.core.type.Integer,
Set the revolution number at epoch.
- Parameters:
revolution_number (int) -- The revolution number at epoch.
- set_satellite_number(
- self: ostk.astrodynamics.trajectory.orbit.model.sgp4.TLE,
- satellite_number: ostk.core.type.Integer,
Set the satellite number.
- Parameters:
satellite_number (int) -- The satellite number.
- static undefined() ostk.astrodynamics.trajectory.orbit.model.sgp4.TLE ¶
Create an undefined TLE object.
- Returns:
The undefined TLE object.
- Return type: