imap_processing.hi.hi_l1a.hi_packet_file_to_datasets#

imap_processing.hi.hi_l1a.hi_packet_file_to_datasets(packet_file_path: str | Path, use_derived_value: bool = False) dict[int, Dataset]#

Extract hi datasets from packet file.

Parameters:
  • packet_file_path (str) – L0 packet file path.

  • use_derived_value (bool) – Whether to use the derived value from the XTCE definition. Default is False.

Returns:

datasets – Dictionary of xarray datasets keyed by APID.

Return type:

dict[int, xarray.Dataset]