ostk.astrodynamics.trajectory.orbit.model.Kepler¶
- class Kepler(*args, **kwargs)¶
Bases:
OrbitModel
A Kepler orbit model.
Provides the interface for orbit models.
Overloaded function.
__init__(self: ostk.astrodynamics.trajectory.orbit.model.Kepler, coe: ostk::astrodynamics::trajectory::orbit::model::kepler::COE, epoch: ostk.physics.time.Instant, gravitational_parameter: ostk.physics.unit.Derived, equatorial_radius: ostk.physics.unit.Length, j2: ostk.core.type.Real, j4: ostk.core.type.Real, perturbation_type: ostk.astrodynamics.trajectory.orbit.model.Kepler.PerturbationType) -> None
Constructor.
- Args:
coe (COE): The classical orbital elements. epoch (Instant): The epoch. gravitational_parameter (Derived): The gravitational parameter. equatorial_radius (Length): The equatorial radius. j2 (float): The J2 coefficient. j4 (float): The J4 coefficient. perturbation_type (PerturbationType): The perturbation type.
__init__(self: ostk.astrodynamics.trajectory.orbit.model.Kepler, coe: ostk::astrodynamics::trajectory::orbit::model::kepler::COE, epoch: ostk.physics.time.Instant, celestial_object: ostk.physics.environment.object.Celestial, perturbation_type: ostk.astrodynamics.trajectory.orbit.model.Kepler.PerturbationType, in_fixed_frame: bool = False) -> None
Constructor.
- Args:
coe (COE): The classical orbital elements. epoch (Instant): The epoch. celestial_object (Celestial): The celestial object. perturbation_type (PerturbationType): The perturbation type. in_fixed_frame (bool): If True, the state is expressed in the fixed frame, otherwise it is expressed in the inertial frame. Default is False.
Methods
Cast the orbit model to a Kepler model.
Cast the orbit model to a propagated model.
Cast the orbit model to an SGP4 model.
Calculate the revolution number of the Kepler model at a given instant.
Calculate the state of the Kepler model at a given instant.
Get the classical orbital elements of the Kepler model.
Get the epoch of the Kepler model.
Get the equatorial radius of the Kepler model.
Get the gravitational parameter of the Kepler model.
Get the J2 coefficient of the Kepler model.
Get the J4 coefficient of the Kepler model.
Get the perturbation type of the Kepler model.
Get the revolution number at the epoch of the Kepler model.
Check if the Kepler model is defined.
Check if the orbit model is a Kepler model.
Check if the orbit model is a propagated model.
Check if the orbit model is an SGP4 model.
Get the string representation of a PerturbationType.
- class PerturbationType( )¶
Bases:
pybind11_object
The Perturbation Type due to Oblateness
Members:
No : No perturbation
J2 : J2 perturbation
J4 : J4 perturbation
- property name¶
- as_kepler( ) ostk::astrodynamics::trajectory::orbit::model::Kepler ¶
Cast the orbit model to a Kepler model.
- Returns:
The Kepler model.
- Return type:
- as_propagated( ) ostk::astrodynamics::trajectory::orbit::model::Propagated ¶
Cast the orbit model to a propagated model.
- Returns:
The propagated model.
- Return type:
- as_sgp4( ) ostk::astrodynamics::trajectory::orbit::model::SGP4 ¶
Cast the orbit model to an SGP4 model.
- Returns:
The SGP4 model.
- Return type:
- calculate_revolution_number_at( ) ostk.core.type.Integer ¶
Calculate the revolution number of the Kepler model at a given instant.
- Parameters:
instant (Instant) -- The instant.
- Returns:
The revolution number.
- Return type:
- calculate_state_at( ) ostk.astrodynamics.trajectory.State ¶
Calculate the state of the Kepler model at a given instant.
- Parameters:
instant (Instant) -- The instant.
- Returns:
The state.
- Return type:
- get_classical_orbital_elements( ) ostk::astrodynamics::trajectory::orbit::model::kepler::COE ¶
Get the classical orbital elements of the Kepler model.
- Returns:
The classical orbital elements.
- Return type:
- get_epoch( ) ostk.physics.time.Instant ¶
Get the epoch of the Kepler model.
- Returns:
The epoch.
- Return type:
Instant
- get_equatorial_radius( ) ostk.physics.unit.Length ¶
Get the equatorial radius of the Kepler model.
- Returns:
The equatorial radius.
- Return type:
Length
- get_gravitational_parameter( ) ostk.physics.unit.Derived ¶
Get the gravitational parameter of the Kepler model.
- Returns:
The gravitational parameter.
- Return type:
Derived
- get_j2( ) ostk.core.type.Real ¶
Get the J2 coefficient of the Kepler model.
- Returns:
The J2 coefficient.
- Return type:
- get_j4( ) ostk.core.type.Real ¶
Get the J4 coefficient of the Kepler model.
- Returns:
The J4 coefficient.
- Return type:
- get_perturbation_type( ) ostk.astrodynamics.trajectory.orbit.model.Kepler.PerturbationType ¶
Get the perturbation type of the Kepler model.
- Returns:
The perturbation type.
- Return type:
- get_revolution_number_at_epoch( ) ostk.core.type.Integer ¶
Get the revolution number at the epoch of the Kepler model.
- Returns:
The revolution number.
- Return type:
- is_defined(self: ostk.astrodynamics.trajectory.orbit.model.Kepler) bool ¶
Check if the Kepler model is defined.
- Returns:
True if the Kepler model is defined, False otherwise.
- Return type:
- is_kepler(self: ostk.astrodynamics.trajectory.orbit.OrbitModel) bool ¶
Check if the orbit model is a Kepler model.
- Returns:
True if the orbit model is a Kepler model, False otherwise.
- Return type:
- is_propagated(self: ostk.astrodynamics.trajectory.orbit.OrbitModel) bool ¶
Check if the orbit model is a propagated model.
- Returns:
True if the orbit model is a propagated model, False otherwise.
- Return type:
- is_sgp4(self: ostk.astrodynamics.trajectory.orbit.OrbitModel) bool ¶
Check if the orbit model is an SGP4 model.
- Returns:
True if the orbit model is an SGP4 model, False otherwise.
- Return type:
- static string_from_perturbation_type(
- perturbation_type: ostk.astrodynamics.trajectory.orbit.model.Kepler.PerturbationType,
Get the string representation of a PerturbationType.
- Parameters:
perturbation_type (PerturbationType) -- The perturbation type.
- Returns:
The string representation.
- Return type: