-
Notifications
You must be signed in to change notification settings - Fork 52
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
Switch to plotting sea-ice concentration and thickness on projection grids #915
Switch to plotting sea-ice concentration and thickness on projection grids #915
Conversation
b99768d
to
8ba555e
Compare
TestingHere is a set of example plots on the QU240wLI mesh: |
@milenaveneziani, what I'm hoping for in a review is for you to use this branch on some analysis you've already run and to compare the sea-ice plots. Hopefully, they're no worse than before and maybe even a little bit better because of the higher resolution. |
@xylar |
@milenaveneziani, @anirban89 raises a really good point. Options are:
I favor option 1. It seems like the only downsides are that we have a lot of analysis on these tighter plots and that some plots (e.g. melt-rate patterns) are hard to see on the broader grids. |
34306d8
to
146d5dd
Compare
@xylar, @anirban89: I personally don't think that we have to make everything consistent. Melt rates are better visualized on the smaller Antarctic map, and that's fine. With barotropic stream function my feeling is that the larger map would be better, so that we can better see the flows coming into the Arctic as well as the Antarctic Circumpolar current and associated fronts. |
@milenaveneziani, for now, we only have one Antarctic and one Arctic projection map. They are the smaller size. We would have to add support for 2 different projection maps in order to support what you suggest. The only reason the sea-ice plots currently have a large extent is because they aren't using a projection grid at all. They're using a lat-lon grid. But this is very wasteful and leads to coarse resolution plots. The whole point of this PR is to move away from that. But it would be an important an consequential decision to have 2 different Arctic and 2 different Antarctic projection grids (my option 3). If that's what you want, I'm fine with it. But it's not a trivial amount of work so I want to be sure. |
Let's go with the larger map then, at least for now. And if cryosphere thinks that the smaller Antarctic maps are better for visualizing shelf processes, then we can add one more projection at that point. |
@milenaveneziani, I'm working on support for Sorry going back and forth. I thought it would be more work than it looks like it will actually be. |
3a16aad
to
75b1f2c
Compare
@milenaveneziani, I think this is ready for you to take a look at. It's a lot but the main thing I'd appreciate from you is, as before, making sure the analysis isn't too different from before. Here's some SORRM results: |
@xylar, this looks good to me. I compared your plots with the ones that Darin produced for the same simulations and I don't see anything substantially different or suspicious. |
@milenaveneziani, that's a very good point about the extended caxis. So far, we always had an extended caxis for projection plots and never for plots from lat/lon grids, which is pretty arbitrary. The extended axis seems to be ignored when you're using a continuous colormap but it seems like for an indexed colormap, we need a new parameter for that. I'll add it. |
I don't understand it at all but it seems like my last commit broke a bunch of unrelated analysis. The only thing I can come up with to explain it is that some package must have gotten updated (likely xarray) and it caused the problem. I'll verify that by testing on Hopefully, more tomorrow... |
Yep, seeing the errors on
Two steps forward, one step back... |
I'm sorry @xylar, that's frustrating. Let me know if I can help in some way. |
Thanks @milenaveneziani. For now, I don't know enough to ask for help. |
@milenaveneziani, the problems should all be fixed in #918, so we can merge this after that one. |
This is used to mask out a specified value in plots. Such a mask value is useful for fields like sea-ice thickness that aren't actually valid when their values are given as zero.
These are 9,000 km instead of 6,000 km in extent (by default). Also, clean up some documentation and default projection grids in the config files.
This is the new default to many plot functions unless a maximum length is explicitly specified.
Use these to mask sea-ice concentration (with a default min threshold of 0.15) and sea-ice thickness (with a minimum of zero).
Previously, all global and projection plots extended indexed colormaps in both the min and max direction. We don't necessarily want that, for sea-ice variables in particular. With this merge, the `extend` parameter is available for modification and is set to `"neither"` for sea-ice fields.
2bb93d1
to
3ee7152
Compare
@milenaveneziani, I believe the "extend" issue is fixed. Please take a look at: |
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. Thanks Xylar!
Thanks @milenaveneziani! |
This merge moves the class
PlotClimatologyMapSubtask
to the shared infrastructure and generalizes it to handle both ocean and sea-ice climatology plots.Then, it changes all existing ocean and sea-ice climatology-map tasks to use this shared task. The version of
PlotClimatologyMapSubtask
insea_ice
is retained because sea-ice tasks in development still need to use it.