imap_processing.codice.codice_l2.add_dataset_attributes#

imap_processing.codice.codice_l2.add_dataset_attributes(dataset: Dataset, dataset_name: str, cdf_attrs: ImapCdfAttributes) Dataset#

Add the global and variable attributes to the dataset.

Parameters:
  • dataset (xarray.Dataset) – The dataset to update.

  • dataset_name (str) – The name of the dataset.

  • cdf_attrs (ImapCdfAttributes) – The attribute manager for CDF attributes.

Returns:

The updated dataset.

Return type:

xarray.Dataset