cf.Data.cfa_get_aggregated_data

Data.cfa_get_aggregated_data()[source]

Return the CFA-netCDF aggregation instruction terms.

The aggregation instructions are stored in the aggregation_data attribute of a CFA-netCDF aggregation variable.

New in version 3.15.0.

Returns
dict

The aggregation instruction terms and their corresponding netCDF variable names in a dictionary whose key/value pairs are the aggregation instruction terms and their corresponding variable names.

Examples

>>> f.cfa_set_aggregated_data(
...     {'location': 'cfa_location',
...      'file': 'cfa_file',
...      'address': 'cfa_address',
...      'format': 'cfa_format',
...      'tracking_id': 'tracking_id'}
... )
>>> f.cfa_has_aggregated_data()
True
>>> f.cfa_get_aggregated_data()
{'location': 'cfa_location',
 'file': 'cfa_file',
 'address': 'cfa_address',
 'format': 'cfa_format',
 'tracking_id': 'tracking_id'}
>>> f.cfa_del_aggregated_data()
{'location': 'cfa_location',
 'file': 'cfa_file',
 'address': 'cfa_address',
 'format': 'cfa_format',
 'tracking_id': 'tracking_id'}
>>> f.cfa_has_aggregated_data()
False
>>> f.cfa_del_aggregated_data()
{}
>>> f.cfa_get_aggregated_data()
{}