across.tools.visibility.constraints.saa
Classes
Polygon based SAA constraint. The SAA is defined by a Shapely Polygon, and |
Module Contents
- class SAAPolygonConstraint(/, **data)[source]
Bases:
across.tools.visibility.constraints.polygon.PolygonConstraintPolygon based SAA constraint. The SAA is defined by a Shapely Polygon, and this constraint will calculate for a given set of times and a given ephemeris whether the spacecraft is in that SAA polygon.
- __call__(time, ephemeris, coordinate)[source]
Evaluate the constraint at the given time(s) and ephemeris position(s).
- Parameters:
time (Time) – The time(s) at which to evaluate the constraint.
ephemeris (Ephemeris) – The ephemeris position(s) at which to evaluate the constraint.
coordinate (SkyCoord) – The sky coordinates to check against the constraint. This parameter is not used in this specific constraint but is included for compatibility with the base class.
- Returns:
A boolean array indicating whether the constraint is satisfied at the given time(s) and position(s). If time is scalar, returns a single boolean value.
- Return type:
ndarray