across.tools.visibility.constraints.saa

Classes

SAAPolygonConstraint

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.PolygonConstraint

Polygon 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.

polygon[source]

Shapely Polygon object defining the SAA polygon.

polygon: shapely.Polygon | None = None[source]
name: Literal[across.tools.core.enums.constraint_type.ConstraintType.SAA][source]
short_name: str = 'SAA'[source]
__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