Useful functions
|
Drop values corrresponding to NaN (marthe convention, eg. |
|
Replace real nan (np.nan) value in dataset[varname], edge case of |
|
Subset dataset based on variable name and value. |
|
Replace a value in xr.Dataset for a variable |
|
Assign coordinates from variables to dimensions |
|
Transform a 3 or 4D aray into 1 or 2D array inverse of |
|
Read simulation timesteps from a .pastp file |
Get Marthe grid dimensions from Dataset attributes |
|
|
Filter a 1D flattened xarray Dataset by spatial (x, y) and/or z ranges. |
|
grid needs geom infos and to have x,y as dimension. |