Skip to main content
`Ctrl`+`K`

# is_event_observable

astroplan.is_event_observable(constraints, observer, target, times=None, times_ingress_egress=None)

  Determines if the `target` is observable at each time in `times`, given constraints in `constraints` for a particular `observer`.

  Parameters:
    constraints list or `Constraint`

      Observational constraint(s)

    observer `Observer`

      The observer who has constraints `constraints`

    target{list, `SkyCoord`, `FixedTarget`}

      Target

    times `Time` (optional)

      Array of mid-event times on which to test the constraints

    times_ingress_egress `Time` (optional)

      Array of ingress and egress times for `N` events, with shape (`N`, 2).

  Returns:
    event_observable `ndarray`

      Array of booleans of same length as `times` for whether or not the target is ever observable at each time, given the constraints.