across.tools.visibility.constraints.alt_az

Classes

AltAzConstraint

For a given Alt/Az constraint, is a given coordinate inside this

Module Contents

class AltAzConstraint(/, **data)[source]

Bases: across.tools.visibility.constraints.polygon.PolygonConstraint

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

short_name: str = 'AltAz'[source]
name: Literal[across.tools.core.enums.constraint_type.ConstraintType.ALT_AZ][source]
polygon: shapely.Polygon | None = None[source]
altitude_min: float | None = None[source]
altitude_max: float | None = None[source]
azimuth_min: float | None = None[source]
azimuth_max: float | None = None[source]
__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