is_observable¶
-
astroplan.is_observable(constraints, observer, targets, times=None, time_range=None, time_grid_resolution=<Quantity 0.5 h>)[source]¶ Determines if the
targetsare observable duringtime_rangegiven constraints inconstraints_listfor a particularobserver.Parameters: constraints : list or
ConstraintObservational constraint(s)
observer :
ObserverThe observer who has constraints
constraintstargets : {list,
SkyCoord,FixedTarget}Target or list of targets
times :
Time(optional)Array of times on which to test the constraint
time_range :
Time(optional)Lower and upper bounds on time sequence, with spacing
time_resolution. This will be passed as the first argument intotime_grid_from_range.time_grid_resolution :
Quantity(optional)If
time_rangeis specified, determine whether constraints are met between test times intime_rangeby checking constraint at linearly-spaced times separated bytime_resolution. Default is 0.5 hours.Returns: ever_observable : list
List of booleans of same length as
targetsfor whether or not each target is ever observable in the time range given the constraints.