Replies: 1 comment
-
Hey there, From the documentation:
This means, you need to write a routine, that generates the mask from your given shape def get_mask_from_grid(x, y, shp):
mask = np.zeros((x.size, y.size), dtype=bool)
xx, yy = np.meshgrid(x, y, indexing="ij")
print(mask.shape, xx.shape, yy.shape)
mask = points_in_shape(shp, xx, yy) # some special routine form geopandas
return mask This In summary you need to provide an array with bools that state which point in the grid is masked (outside of your domain). Does this help? |
Beta Was this translation helpful? Give feedback.
-
Hello and Thanks for your tool,
I am trying to use the style 'masked' for a basin but i don't understand how i can use the Parameters mask.
so the objectif is to calculate the uk just inside the basin.
Beta Was this translation helpful? Give feedback.
All reactions