libera_utils.l1a.packet_slicing.data_time_axes#

libera_utils.l1a.packet_slicing.data_time_axes(dataset: Dataset) → list[str]#

Return the axes that place a decoded L1A Dataset’s packets in time.

These are the sample axes (find_sample_dims(); CAMERA_TIME for WFOV SCI). A Dataset with no sample axis is placed by the packet time coordinate its APID’s packet configuration names, e.g. PACKET_JPSS_TIME for jpss_sc_pos.

Parameters:

dataset (xr.Dataset) – Decoded L1A Dataset with a PACKET dimension.

Returns:

Axis names, sorted. Empty for a Dataset with no sample axis and no packets.

Return type:

list of str

Raises:

ValueError – If dataset has no PACKET dimension. If it has no sample axis and at least one packet, and it has no PKT_APID variable, its APID has no packet configuration, or it lacks the packet time variable that configuration names.