AltitudeConstraint¶
-
class
astroplan.AltitudeConstraint(min=None, max=None, boolean_constraint=True)[source]¶ Bases:
astroplan.ConstraintConstrain the altitude of the target.
Note
This can misbehave if you try to constrain negative altitudes, as the
AltAzframe tends to mishandle negativeParameters: min :
QuantityorNoneMinimum altitude of the target (inclusive).
Noneindicates no limit.max :
QuantityorNoneMaximum altitude of the target (inclusive).
Noneindicates no limit.boolean_constraint : bool
If True, the constraint is treated as a boolean (True for within the limits and False for outside). If False, the constraint returns a float on [0, 1], where 0 is the min altitude and 1 is the max.
Methods Summary
compute_constraint(times, observer, targets)Actually do the real work of computing the constraint. Methods Documentation
-
compute_constraint(times, observer, targets)[source]¶ Actually do the real work of computing the constraint. Subclasses override this.
Parameters: times :
TimeThe times to compute the constraint
observer :
Observerthe observaton location from which to apply the constraints
targets : sequence of
TargetThe targets on which to apply the constraints.
Returns: constraint_result : 2D array of float or bool
The constraints, with targets along the first index and times along the second.
-