-
Notifications
You must be signed in to change notification settings - Fork 388
Switch COMPASS from basemap to cartopy #441
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 COMPASS from basemap to cartopy #441
Conversation
This currently only affects coastal test cases.
|
@sbrus89, I'll set up a test environment |
|
@xylar, sounds great. Thanks for setting this up! |
|
Okay, an environment should be in place. To activate it, do: |
|
@xylar, I'm running into an error. When |
|
Shoot, that's a tricky one. We've dealt with this in MPAS-Analysis: I'll move the data over from my laptop. |
|
Oh good. I'm glad this has already been sorted out for MPAS-Analysis. Thanks for moving the data. I'll try again once it is place. |
|
@sbrus89, I put the files at |
|
SciTools/cartopy#1325 (comment) gives a suggestion on how to get the directory we need from an environment variable. That variable could be set when COMPASS is activated but we would need to add the relevant check. I'll do this. |
This should let us set $CARTOPY_DIR in a compass activation script on LANL IC
|
@sbrus89, I just added activation/deactivation scripts to the Could you delete your |
|
Make sure you deactivate and reactivate |
|
A couple of updates for this PR. First, the new definition of COMPASS here: Second, regarding the offline data for cartopy, this issue is being addressed by adding a |
|
@sbrus89, I just created a new conda environment for compass 0.1.0 that includes both cartopy and cartopy_offlinedata (a conda package with all of the data cartopy would download). Could you do the following for me as a test before we merge this PR? Then, make sure you can run one of your test cases that now uses cartopy by activating the new environment: I'd like to switch to this new version of COMPASS by early next week. Could you let me know if you'll be able to test by then? I'm only at LANL until Wednesday. |
|
@xylar, this sounds great. I will try to test over the next day or so. Thanks again for taking this on! |
|
@xylar, I tested this on the NAEC60to30cr8 case and it works great. I didn't have any issues with using the offline data. |
|
@pwolfram or @mark-petersen, this is ready to merge at your (earliest) convenience. |
|
I still need to test the |
|
Ah, sorry, then let us know when you're happy. |
|
Sorry about jumping the gun there. |
|
@xylar, Alright, things are looking more reasonable now. I increased the number of plotting levels and had to use different scales for the two plots. Something is definitely buggy because it should work without having to do that. I'll try pushing the changes to your branch and will do a PR if I can't. |
|
@xylar, I opened a PR to your fork. Just so you know, I also tested this with the |
|
Okay, not perfect but I agree we can live with it for now. Sorry this is such a pain. |
Fix cartopy issues with tricontourf
sbrus89
left a comment
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.
I'm happy with things at this point. Thanks again @xylar for your help in getting this switched over.
|
@mark-petersen or @pwolfram, which of you would like to merge this PR into |
|
@xylar and @mark-petersen, I can take care of this later, especially since I'm cranking on coastal right now. Thanks! |
mark-petersen
left a comment
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.
|
Thanks for merging this, @pwolfram! We need to get it into |
|
@xylar is cartopy useful for our work on V2 meshes this week? If so, I think this is an example that justifies a parallel identical PR into ocean/develop, as I won't merge ocean/coastal into ocean/develop for 2-4 more weeks. |
|
Yes, we need this in |
…elop Fix cartopy issues with tricontourf This brings the functionality from MPAS-Dev#441 into ocean/develop without having to merge the full ocean/coastal branch.
…elop Fix cartopy issues with tricontourf This brings the functionality from MPAS-Dev#441 into ocean/develop without having to merge the full ocean/coastal branch.

This currently only affects coastal test cases.
closes #439