across.tools.visibility.constraints.sun_angle

Classes

SunAngleConstraint

For a given Sun avoidance angle, is a given coordinate inside this

Module Contents

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

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

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

Parameters:
  • min_angle – The minimum angle from the Sun that the spacecraft can point.

  • max_angle – The maximum angle from the Sun that the spacecraft can point.

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

Checks if a given coordinate is inside the constraint.

name: Literal[across.tools.core.enums.ConstraintType.SUN][source]
short_name: Literal['Sun'] = 'Sun'[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 Sun constraint. This is done by checking if the separation between the Sun and the spacecraft is less than the a given minimum angle or greater than a maximum angle (essentially an anti-Sun constraint).

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