across.tools.visibility.constraints.moon_angle
Classes
For a given Moon avoidance angle, is a given coordinate inside this |
Module Contents
- class MoonAngleConstraint(/, **data)[source]
Bases:
across.tools.visibility.constraints.base.ConstraintABCFor a given Moon avoidance angle, is a given coordinate inside this constraint?
- Parameters:
min_angle – The minimum angle from the Moon that the spacecraft can point.
- __call__(coord, ephemeris, moon_radius_angle=None)[source]
Checks if a given coordinate is inside the constraint.
- __call__(time, ephemeris, coordinate)[source]
Check for a given time, ephemeris and coordinate if positions given are inside the Moon constraint. This is done by checking if the separation between the Moon and the spacecraft is less than the Moon’s angular radius plus the minimum angle.
- 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