cfdm.Data.nc_get_aggregated_data

Data.nc_get_aggregated_data()[source]

Return the netCDF aggregated data terms.

The aggregated data terms define the names of the fragment array variables, and are stored in a netCDF file in an “aggregated_data” attribute.

New in version (cfdm): 1.12.0.0

Returns
dict

The netCDF aggregated_data terms in a dictionary whose key/value pairs are the feature names and their corresponding fragment array variable names.

Examples

>>>
>>> f.nc_set_aggregated_data(
...     {'shape': 'shape',
...      'location': 'location',
...      'address': 'address'}
... )
>>> f.nc_has_aggregated_data()
True
>>> f.nc_get_aggregated_data()
{'shape': 'shape',
 'location': 'location',
 'address': 'address'}
>>> f.nc_del_aggregated_data()
{'shape': 'shape',
 'location': 'location',
 'address': 'address'}
>>> f.nc_has_aggregated_data()
False
>>> f.nc_del_aggregated_data()
{}
>>> f.nc_get_aggregated_data()
{}
>>> f.nc_set_aggregated_data(
...     'shape: shape, location: location address: address'
... )