gridmarthe.dropna

gridmarthe.dropna(ds, varname, nanval)[source]

Drop values corrresponding to NaN (marthe convention, eg. code 9999.) for 1D (or 2D (time, zone)) array zone must me a coordinate dimension.

Parameters:
  • ds (xr.Dataset) – dataset of marthe variable(s)

  • varname (str) – variable name in dataset to treat

  • nanval (list or float) – value to consider as NaN

Returns:

dataset where variable != nanval