uvex_transients.simulation.event.Event.in_footprint#

Event.in_footprint(footprint: SurveyFootprint | str) → bool[source]#

Whether this event’s sky position lies inside a footprint.

For many events use EventCatalog.in_footprint, which does one vectorized lookup.

Parameters:

footprint (SurveyFootprint or str) – A footprint or its registered name (e.g. "lsst:combined").

Returns:

True if the event is inside the footprint.

Return type:

bool

Raises:

KeyError – If footprint is a name that is not registered.