gridmarthe.dropna
- gridmarthe.dropna(ds, nanval, varname=None)[source]
Drop values corrresponding to NaN (marthe convention, eg. code 9999.) for 1D (or 2D (time, zone)) array zone must be a coordinate dimension.
- Parameters:
- dsxarray.Dataset
dataset of marthe variable(s)
- nanvallist or float
value to consider as NaN
- varnamestr, optional
variable name in dataset to treat
- Returns:
- dataset where variable != nanval