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 units The slew rate of the telescope
- instrument_reconfig_timesdict 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.
- slew_rate
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 None The initial configuration/target
- newblock
ObservingBlock
or None The new configuration/target to transition to
- start_time
Time
The time the transition should start
- observer
astroplan.Observer
The observer at the time
- oldblock
- Returns:
- transition
TransitionBlock
or None A transition to get from
oldblock
tonewblock
orNone
if no transition is necessary
- transition