nctoolkit.DataSet.as_missing

nctoolkit.DataSet.as_missing#

DataSet.as_missing(value=None)#

Change a range or individual value to missing.

Parameters:

value (2 variable list or int/float) – If int/float is provided, the missing value will be set to that. If a list is provided, values between the two values (inclusive) of the list are set to missing.

Examples

Set all zeros to missing: >>> ds.as_missing(0)

Set all values between 0 and 1 to missing: >>> ds.as_missing([0, 1])