cfdm.NetCDFArray.get_missing_values

NetCDFArray.get_missing_values()[source]

The missing value indicators from the netCDF variable.

New in version (cfdm): 1.10.0.3

Returns
dict or None

The missing value indicators from the netCDF variable, keyed by their netCDF attribute names. An empty dictionary signifies that no missing values are given in the file. None signifies that the missing values have not been set.

Examples

>>> a.get_missing_values()
None
>>> b.get_missing_values()
{}
>>> c.get_missing_values()
{'missing_value': 1e20, 'valid_range': (-10, 20)}
>>> d.get_missing_values()
{'valid_min': -999}