ostk.astrodynamics.trajectory.model.Nadir

class Nadir(
self: ostk.astrodynamics.trajectory.model.Nadir,
orbit: ostk.astrodynamics.trajectory.Orbit,
step_size: ostk.physics.time.Duration = 00.010.000.000,
)

Bases: Model

Nadir trajectory model.

This model represents a trajectory that follows the nadir direction of an orbit.

Construct a Nadir object from an orbit.

Parameters:
  • orbit (Orbit) -- The orbit.

  • step_size (Duration) -- The step size for the trajectory. Defaults to 1e-2 seconds.

Returns:

The Nadir object.

Return type:

Nadir

Methods

calculate_state_at

Calculate the state at a given instant.

calculate_states_at

Calculate the states at given instants.

get_orbit

Get the orbit of the nadir model.

get_step_size

Get the step size of the nadir model.

is_defined

Check if the model is defined.

calculate_state_at(
self: ostk.astrodynamics.trajectory.model.Nadir,
instant: ostk.physics.time.Instant,
) ostk.astrodynamics.trajectory.State

Calculate the state at a given instant.

Parameters:

instant (Instant) -- The instant.

Returns:

The state at the given instant.

Return type:

State

calculate_states_at(
self: ostk.astrodynamics.trajectory.Model,
instants: list[ostk.physics.time.Instant],
) list[ostk.astrodynamics.trajectory.State]

Calculate the states at given instants. It can be more performant than looping calculate_state_at for multiple instants.

@param instants The instants.

Returns:

The states at the given instants.

Return type:

Array<State>

get_orbit(
self: ostk.astrodynamics.trajectory.model.Nadir,
) ostk.astrodynamics.trajectory.Orbit

Get the orbit of the nadir model.

Returns:

The orbit of the nadir model.

Return type:

Orbit

get_step_size(
self: ostk.astrodynamics.trajectory.model.Nadir,
) ostk.physics.time.Duration

Get the step size of the nadir model.

Returns:

The step size of the nadir model.

Return type:

Duration

is_defined(self: ostk.astrodynamics.trajectory.model.Nadir) bool

Check if the model is defined.

Returns:

True if the model is defined, False otherwise.

Return type:

bool