-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mask_2 #189
mask_2 #189
Conversation
In the NCL example, the contours appear over lakes. I have played around with |
I did something semi-similar in my mask_5 example, but I was only drawing over land which covered the lakes so it may not work the same because I think you will be drawing over 2 separate objects. I believe I used this stack overflow question as a basis for my line of code, so It may be of use to you |
I think the issue stems from the |
The rest of the script looks good! Here's an interesting thread: https://stackoverflow.com/questions/13796315/plot-only-on-continent-in-matplotlib Maybe you could tweak this solution to plot contour data on the lakes? |
Thank you for the suggestions, but that stack overflow thread uses |
Co-authored-by: michaelavs <43652875+michaelavs@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Terrific. Nice work!
Here is an example of creating a custom cartopy shape feature: You might need to make a new land file that excludes area in the lake feature. |
I will look into that and see what I can do. Thanks for the link |
@jukent I've been having issues trying to mask only the land masses and not the lakes using cartopy and natural earth shape files. I tried looking for a shape file that already had what I wanted, but I couldn't find one. We may want to merge this PR as is and work on creating an appropriate shape file later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating a shape file for land sans lakes seems like appropriate for a separate geocat-viz issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Closes #188