libera_utils.l1a.packet_ordering.check_packet_order#
- libera_utils.l1a.packet_ordering.check_packet_order(packet_ds: Dataset, packet_time_coordinate: str) None#
Warn where packet time steps backward along the
PACKETaxis.Along an axis in
SRC_SEQ_CTRorder, a backward packet-time step is where packet time disagrees with the counter. This emits aUserWarningand logs a warning with the number of such steps, the largest, and the first one’s counters and times. Nothing is raised for it, and the dataset is not changed.- Parameters:
packet_ds (xr.Dataset) – Dataset with
SRC_SEQ_CTRandpacket_time_coordinateon itsPACKETaxis.packet_time_coordinate (str) – Name of the packet time variable.
- Raises:
ValueError – If
packet_dshas noSRC_SEQ_CTRor nopacket_time_coordinatevariable.