xoa.geo.get_valid_mask#
- xoa.geo.get_valid_mask(obj, dims)[source]#
Get the mask of the points where an array or a dataset has data
- Parameters:
obj (xarray.DataArray, xarray.Dataset) – With a dataset, the data variables that have all the dims are used
dims (tuple(str)) – Horizontal dimensions, like
GeoSelector.dims
- Returns:
xarray.DataArray – Points where at least one value is not missing along the other dimensions, like the time or the depth, and in at least one data variable