Skip to content

Orbit Enumerations

Enumerations for specifying orbit representation types.

OrbitRepresentation

OrbitRepresentation

OrbitRepresentation()

Orbital state representation format.

Specifies how orbital states are represented in the trajectory.

Initialize instance.

CARTESIAN class-attribute

CARTESIAN: Any = OrbitRepresentation(Cartesian)

Orbital state representation format.

Specifies how orbital states are represented in the trajectory.

KEPLERIAN class-attribute

KEPLERIAN: Any = OrbitRepresentation(Keplerian)

Orbital state representation format.

Specifies how orbital states are represented in the trajectory.

Specifies the type of orbital elements being used.


InterpolationMethod

InterpolationMethod

InterpolationMethod()

Python bindings for trajectory traits and orbital trajectory. Interpolation method for trajectory state estimation.

Specifies the algorithm used to estimate states at epochs between discrete trajectory points.

Initialize instance.

HERMITE_CUBIC class-attribute

HERMITE_CUBIC: Any = InterpolationMethod.HERMITE_CUBIC

Python bindings for trajectory traits and orbital trajectory. Interpolation method for trajectory state estimation.

Specifies the algorithm used to estimate states at epochs between discrete trajectory points.

HERMITE_QUINTIC class-attribute

HERMITE_QUINTIC: Any = InterpolationMethod.HERMITE_QUINTIC

Python bindings for trajectory traits and orbital trajectory. Interpolation method for trajectory state estimation.

Specifies the algorithm used to estimate states at epochs between discrete trajectory points.

LINEAR class-attribute

LINEAR: Any = InterpolationMethod.LINEAR

Python bindings for trajectory traits and orbital trajectory. Interpolation method for trajectory state estimation.

Specifies the algorithm used to estimate states at epochs between discrete trajectory points.

degree property

degree: Any

Get the polynomial degree for Lagrange interpolation.

Returns:

Type Description
Any

int | None: The degree if this is a Lagrange method, None otherwise

min_points_required property

min_points_required: int

Get the minimum number of data points required for this interpolation method.

Returns:

Name Type Description
int int

Minimum number of points required

lagrange staticmethod

lagrange(degree: int) -> InterpolationMethod

Create a Lagrange polynomial interpolation method.

Lagrange interpolation requires degree + 1 data points. Higher degrees provide more accuracy but can oscillate (Runge's phenomenon) for poorly distributed points.

Parameters:

Name Type Description Default
degree int

Polynomial degree for Lagrange interpolation (must be >= 1)

required

Returns:

Name Type Description
InterpolationMethod InterpolationMethod

Lagrange interpolation method with specified degree

Raises:

Type Description
ValueError

If degree is less than 1

Example
import brahe as bh
method = bh.InterpolationMethod.lagrange(3)  # Cubic Lagrange

See Also