astro plan:docs

- Index
- Modules

### Navigation

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

# is_observable

astroplan.is_observable(constraints, observer, targets, times=None, time_range=None, time_grid_resolution=<Quantity 0.5 h>)

  Determines if the `targets` are observable during `time_range` given constraints in `constraints_list` for a particular `observer`.

  Parameters
    constraints list or `Constraint`

      Observational constraint(s)

    observer `Observer`

      The observer who has constraints `constraints`

    targets{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 into `time_grid_from_range`.

    time_grid_resolution `Quantity` (optional)

      If `time_range` is specified, determine whether constraints are met between test times in `time_range` by checking constraint at linearly-spaced times separated by `time_resolution`. Default is 0.5 hours.

  Returns
    ever_observable list

      List of booleans of same length as `targets` for whether or not each target is ever observable in the time range given the constraints.