across.tools.visibility.constraints.pointing
Classes
Footprint based pointing constraint. A Pointing is defined |
Module Contents
- class PointingConstraint(/, **data)[source]
Bases:
across.tools.visibility.constraints.base.ConstraintABCFootprint based pointing constraint. A Pointing is defined as a Footprint with a start and end time. This constraint will calculate whether a target was within any set of pointings.
- start_time
AstropyDateTime defining the start of the pointing
- end_time
AstropyDateTime defining the end of the pointing
- pointings: list[across.tools.footprint.Pointing][source]
- __call__(time, ephemeris, coordinate)[source]
Evaluate the constraint at the given time(s) and coordinate.
- Parameters:
time (Time) – The time(s) at which to evaluate the constraint.
coordinate (SkyCoord) – The sky coordinates to check against the constraint.
ephemeris (Ephemeris) – The ephemeris position(s) at which to evaluate 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. The constraint is satisfied if the coordinate is outside the footprint, OR if the time is outside the start and end time.
- Return type:
ndarray