across.tools.visibility.constraints.earth_limb

Classes

EarthLimbConstraint

For a given Earth limb avoidance angle, is a given coordinate inside this

Module Contents

class EarthLimbConstraint(/, **data)[source]

Bases: across.tools.visibility.constraints.base.ConstraintABC

For a given Earth limb avoidance angle, is a given coordinate inside this constraint?

Parameters:
  • name – The name of the constraint.

  • short_name – The short name of the constraint.

  • min_angle – The minimum angle from the Earth limb that the spacecraft can point.

__call__(coord, ephemeris, earth_radius_angle=None)[source]

Checks if a given coordinate is inside the constraint.

name: Literal[across.tools.core.enums.ConstraintType.EARTH][source]
short_name: Literal['Earth'] = 'Earth'[source]
min_angle: float | None = None[source]
max_angle: float | None = None[source]
__call__(time, ephemeris, coordinate)[source]

Check for a given time, ephemeris and coordinate if positions given are inside the Earth limb constraint. This is done by checking if the separation between the Earth and the spacecraft is less than the Earth’s angular radius plus the minimum angle.

NOTE: Assumes a circular approximation for Earth.

Parameters:
  • coordinate (SkyCoord) – The coordinate to check.

  • time (Time) – The time to check.

  • ephemeris (Ephemeris) – The ephemeris object.

Returns:

True if the coordinate is inside the constraint, False otherwise.

Return type:

bool