cf.Bounds.apply_masking¶
-
Bounds.apply_masking(inplace=False)[source]¶ Apply masking as defined by the CF conventions.
Masking is applied according to any of the following criteria that are applicable:
where data elements are equal to the value of the
missing_valueproperty;where data elements are equal to the value of the
_FillValueproperty;where data elements are strictly less than the value of the
valid_minproperty;where data elements are strictly greater than the value of the
valid_maxproperty;where data elements are within the inclusive range specified by the two values of
valid_rangeproperty.
If any of the above properties have not been set the no masking is applied for that method.
Elements that are already masked remain so.
Note
If using the
apply_maskingmethod on a construct that has been read from a dataset with themask=Falseparameter to thereadfunction, then the mask defined in the dataset can only be recreated if themissing_value,_FillValue,valid_min,valid_max, andvalid_rangeproperties have not been updated.New in version 1.8.2.
See also
- Parameters
- Returns
A new instance with masked values, or
Noneif the operation was in-place.
Examples:
TODO DCH