astro plan:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- astroplan v0.7 »
- Reference/API »
- Transitioner

# Transitioner

class astroplan.Transitioner(slew_rate=None, instrument_reconfig_times=None)

  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_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)

    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

    Returns
      transition `TransitionBlock` or None

        A transition to get from `oldblock` to `newblock` or `None` if no transition is necessary

  compute_instrument_transitions(oldblock, newblock)