libera_utils.l1a.packet_slicing.find_sample_dims#

libera_utils.l1a.packet_slicing.find_sample_dims(dataset: Dataset) → set[str]#

Identify the sample axes of a decoded L1A Dataset.

A sample axis is any dimension other than PACKET that either carries its own datetime64 dimension coordinate (e.g. RAD_FULL_FPE_TIME) or owns a *_packet_index variable (or, for CAMERA_TIME, CAMERA_PACKET_INDEX). The second rule also catches sample coordinates in Datasets opened with decode_times=False, where the coordinate is a plain integer array.

Array-index dimensions such as ARRAY_128 are excluded by both rules.

Parameters:

dataset (xr.Dataset) – Decoded L1A Dataset.

Returns:

Names of the sample dimensions.

Return type:

set of str