imap_processing.hit.l1a.hit_l1a.update_livetime_coord#

imap_processing.hit.l1a.hit_l1a.update_livetime_coord(sectored_dataset: Dataset) Dataset#

Update livetime_counter to use a new epoch coordinate.

Assign a new epoch coordinate to the livetime_counter variable. This new coordinate is aligned with the original epoch dimension, ensuring that livetime_counter remains unaffected when the original epoch dimension is filtered for complete sets in subset_sectored_counts function.

Parameters:

sectored_dataset (xarray.Dataset) – The dataset containing sectored counts and livetime_counter data.

Returns:

The updated dataset with modified livetime_counter.

Return type:

xarray.Dataset