uvex_transients.surveys.base.SurveySchedule.get_next_action_id#

SurveySchedule.get_next_action_id(times: Time, action: str) → MaskedArray[source]#

For each of times, the row index of the earliest action row starting at or after it.

Parameters:
  • times (Time) – Query times, scalar or array-valued (e.g. one per event).

  • action (str) – One of the registered action types (see actions), e.g. "downlink".

Returns:

Integer row indices into table, same shape as times, masked wherever no action row starts at or after the corresponding query time (e.g. the schedule ends before the next downlink).

Return type:

MaskedArray

Raises:

ValueError – If action is not one of table’s registered action types.