Skip to content
Discussion options

You must be logged in to vote

Hey @dylanschlichting! Thanks for using mosaic and putting it through it's paces.

Yes, mosaic is capable of doing the regional plotting you're looking for but, it does not per se support regional masks. Instead it supports regionally masked datasets. In short, you'll need to make the Descriptor object from a masked dataset, so that the descriptor and the data array being plotted have the same dimensions (i.e. same nVertices).

So, all you'd need to change is the reading in of the dataset bloc of code to be something like:

#GoM regional mask
pathm = '/usr/projects/climate/dschlichting/repos/analysis_notebooks/gom1pt5/gom1pt5_gom_mask.nc'
mask = xr.open_dataset(pathm)
iGoM = mask.regionCellM…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by andrewdnolan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #20 on January 13, 2025 18:06.