Events – ephemerista.coords.events

The events.py module.

This module provides event detectors.

pydantic model ephemerista.coords.events.ApsisDetector

The `ApsisDetector class.

This event detector finds apsis passes.

Fields:
field apsis: Literal['periapsis', 'apoapsis'] | None = None
callback(s)

Return zero when passing apoapsis or periapsis.

Return type:

float

filtr(events)

Filter events based on the provided apsis type.

Return type:

list[Event]

pydantic model ephemerista.coords.events.ElevationDetector

The `ElevationDetector class.

This event detector finds when the elevation at a certain ground location rises above a threshold.

Fields:
field ground_station: GroundStation [Required] (alias 'groundStation')
callback(s)

Return zero when elevation rises above minimum elevation.

Return type:

float

class ephemerista.coords.events.EventDetector

Abstract base class for event detectors.

abstractmethod callback(s)

Return zero at the event.

Return type:

float

detect(trajectory)

Detect all events on the provided trajectory.

Return type:

list[Event]

filtr(events)

Override this method to filter events after detection.

Return type:

list[Event]