across.tools.visibility.constraints.alt_az
Classes
For a given Alt/Az constraint, is a given coordinate inside this |
Module Contents
- class AltAzConstraint(/, **data)[source]
Bases:
across.tools.visibility.constraints.polygon.PolygonConstraintFor a given Alt/Az constraint, is a given coordinate inside this constraint? Constraint is both defined by a polygon exclusion region and a minimum and maximum altitude. By default the minimum and maximum altitude values are 0 and 90 degrees respectively. Polygon restriction regions can be combined with minimum and maximum altitude restrictions.
- Parameters:
polygon – The polygon defining the exclusion region.
min – The minimum altitude in degrees.
max – The maximum altitude in degrees.
- __call__(time, ephemeris, coordinate)[source]
Calculate the Alt/Az constraint for a given time, ephemeris, and sky coordinates.
- Parameters:
time (Time) – The time for which to calculate the constraint.
ephemeris (Ephemeris) – The ephemeris containing the Earth location.
coordinate (SkyCoord) – The sky coordinates to calculate the constraint for.
- Returns:
The calculated constraint values as a NumPy array.
- Return type:
np.ndarray