imap_processing.hit.l1a.hit_l1a.add_cdf_attributes#
- imap_processing.hit.l1a.hit_l1a.add_cdf_attributes(dataset: Dataset, logical_source: str, attr_mgr: ImapCdfAttributes) Dataset#
Add attributes to the dataset.
This function adds attributes to the dataset variables and dimensions. It also adds dimension labels as coordinates to the dataset.The attributes are defined in a YAML file and retrieved by the attribute manager.
- Parameters:
dataset (xarray.Dataset) – The dataset to update.
logical_source (str) – The logical source of the dataset.
attr_mgr (ImapCdfAttributes) – The attribute manager to retrieve attributes.
- Returns:
The updated dataset with attributes and dimension labels.
- Return type: