cfdm.NetCDF4Array.get_missing_values¶
-
NetCDF4Array.
get_missing_values
(default=ValueError())[source]¶ The missing value indicators from the netCDF variable.
Deprecated at version 1.11.2.0. Use
get_attributes
instead.New in version (cfdm): 1.10.0.3
- Parameters
- default: optional
Return the value of the default parameter if no missing values have yet been defined.
If set to an
Exception
instance then it will be raised instead.
- Returns
Examples
>>> a.get_missing_values(None) None
>>> b.get_missing_values({}) {}
>>> b.get_missing_values() {}
>>> c.get_missing_values() {'missing_value': 1e20, 'valid_range': (-10, 20)}
>>> d.get_missing_values() {'valid_min': -999}