gridmarthe.operasem
Functions
|
Coarse nested grid to res of main grid only realy valid if nested grid resolution is a multiple of maingrid resolution coords needs to be assign first |
|
Filter dataset on non-nan values, and dissolve results to get a mask shape input ds should be the permh dataset (read from permh file, ie Horizontal hydraulic conductivity) |
|
Compute surface mask of marthe domain |
|
Reset xy with a range from min to max, with res as step |
|
Interpolate on a new grid using xarray.Dataset.interp |
|
Wrapper function that uses get_new_coords() and interp_grid() together |
|
search zone number in marthe grid, based on xy or ij (col, lig) |
|
subset DataArray or Dataset with gpd.GeoDataFrame or bounds TODO: real shp clip |
|
Convert marthegrid.Dataset to a geodataframe fmt must be long or wide, default is long |
|
Write a xr.DataArray to a raster file need xarray with rioxarray installed |