Scheduler¶
-
class
astroplan.Scheduler(constraints, observer, transitioner=None, gap_time=<Quantity 5. min>, time_resolution=<Quantity 20. s>)[source]¶ Bases:
objectSchedule a set of
ObservingBlockobjectsParameters: constraints : sequence of
ConstraintThe constraints to apply to every observing block. Note that constraints for specific blocks can go on each block individually.
observer :
ObserverThe observer/site to do the scheduling for.
transitioner :
Transitioner(required)The object to use for computing transition times between blocks. Leaving it as
Nonewill cause an error.gap_time :
Quantitywith time unitsThe maximum length of time a transition between ObservingBlocks could take.
time_resolution :
Quantitywith time unitsThe smallest factor of time used in scheduling, all Blocks scheduled will have a duration that is a multiple of it.
Methods Summary
__call__(blocks, schedule)Schedule a set of ObservingBlockobjects.from_timespan(center_time, duration, **kwargs)Create a new instance of this class given a center time and duration. Methods Documentation
-
__call__(blocks, schedule)[source]¶ Schedule a set of
ObservingBlockobjects.Parameters: blocks : list of
ObservingBlockobjectsThe observing blocks to schedule. Note that the input
ObservingBlockobjects will not be modified - new ones will be created and returned.schedule :
ScheduleobjectA schedule that the blocks will be scheduled in. At this time the
schedulemust be empty, only defined by a start and end time.Returns: schedule :
ScheduleA schedule objects which consists of
Slotobjects with and without populatedblockobjects containing eitherTransitionBlockorObservingBlockobjects with populatedstart_timeandend_timeordurationattributes
-