Transitioner¶
-
class
astroplan.
Transitioner
(slew_rate=None, instrument_reconfig_times=None)[source]¶ Bases:
object
A class that defines how to compute transition times from one block to another.
Parameters: slew_rate :
Quantity
with angle/time unitsThe slew rate of the telescope
instrument_reconfig_times : dict of dicts or None
If not None, gives a mapping from property names to another dictionary. The second dictionary maps 2-tuples of states to the time it takes to transition between those states (as an
Quantity
), can also take a ‘default’ key mapped to a default transition time.Methods Summary
__call__
(oldblock, newblock, start_time, ...)Determines the amount of time needed to transition from one observing block to another. compute_instrument_transitions
(oldblock, ...)Methods Documentation
-
__call__
(oldblock, newblock, start_time, observer)[source]¶ Determines the amount of time needed to transition from one observing block to another. This uses the parameters defined in
self.instrument_reconfig_times
.Parameters: oldblock :
ObservingBlock
or NoneThe initial configuration/target
newblock :
ObservingBlock
or NoneThe new configuration/target to transition to
start_time :
Time
The time the transition should start
observer :
astroplan.Observer
The observer at the time
Returns: transition :
TransitionBlock
or NoneA transition to get from
oldblock
tonewblock
orNone
if no transition is necessary
-