cf.Data.cfa_has_aggregated_data¶
-
Data.
cfa_has_aggregated_data
()[source]¶ Whether any CFA-netCDF aggregation instruction terms have been set.
The aggregation instructions are stored in the
aggregation_data
attribute of a CFA-netCDF aggregation variable.New in version 3.15.0.
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() {}