AirmassConstraint¶
- class astroplan.AirmassConstraint(max=None, min=1, boolean_constraint=True)[source]¶
Bases:
AltitudeConstraint
Constrain the airmass of a target.
In the current implementation the airmass is approximated by the secant of the zenith angle.
Note
The
max
andmin
arguments appear in the order (max, min) in this initializer to support the common case for users who care about the upper limit on the airmass (max
) and not the lower limit.- Parameters
- maxfloat or
None
Maximum airmass of the target.
None
indicates no limit.- minfloat or
None
Minimum airmass of the target.
None
indicates no limit.- boolean_contstraintbool
- maxfloat or
Examples
To create a constraint that requires the airmass be “better than 2”, i.e. at a higher altitude than airmass=2:
AirmassConstraint(2)
Methods Summary
compute_constraint
(times, observer, targets)Actually do the real work of computing the constraint.
Methods Documentation