LocalTimeConstraint#
- class astroplan.LocalTimeConstraint(min=None, max=None)[source]#
Bases:
ConstraintConstrain the observable hours.
- Parameters:
Examples
Constrain the observations to targets that are observable between 23:50 and 04:08 local time:
>>> import datetime as dt >>> from astroplan.constraints import LocalTimeConstraint >>> constraint = LocalTimeConstraint(min=dt.time(23, 50), max=dt.time(4, 8))
Methods Summary
compute_constraint(times, observer, targets)Actually do the real work of computing the constraint.
Methods Documentation