Skip to content
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

Add in MM Reader Scripts for WRF-Chem, CMAQ, RRFS-CMAQ, and CESM-FV #52

Merged
merged 4 commits into from
Mar 3, 2022

Conversation

rschwant
Copy link
Contributor

@rschwant rschwant commented Mar 2, 2022

This updates adds the Melodies Monet Reader Scripts for WRF-Chem, CMAQ, and RRFS-CMAQ into monetio

@rschwant
Copy link
Contributor Author

rschwant commented Mar 2, 2022

Oh I just realized I point to monetio in these scripts and I should update how this is done now that these scripts are in the monetio package. Let me fix this. This may be why these checks are failing.

@zmoon
Copy link
Member

zmoon commented Mar 2, 2022

@rschwant the failure I saw was because you are trying to use something from monet. Is it possible to avoid that? I'm not sure but it looks like it is unused?

@zmoon zmoon self-requested a review March 2, 2022 16:51
@zmoon
Copy link
Member

zmoon commented Mar 2, 2022

Also would you be able to run the pre-commit hooks on your branch? (https://pre-commit.com/#quick-start) and fix the few things flake8 would like? I can do it if you are too busy.

@zmoon
Copy link
Member

zmoon commented Mar 2, 2022

I just realized I point to monetio in these scripts

I don't think it will cause problems to leave them as absolute imports instead of relative

@rschwant
Copy link
Contributor Author

rschwant commented Mar 3, 2022

I'm still working on this. I need to make some updates to the CESM reader. The plots don't look correct. Probably just some relabeling and converting the longitude from 0 to 360 to -180 to 180. I'll try to get this done tonight.

@rschwant
Copy link
Contributor Author

rschwant commented Mar 3, 2022

I updated the CESM reader to be more similar in structure to the other readers, but it did not correct the contour plot problem. I realized that we need to set roll_dateline=True in the quick_contourf plot in plotting routines in MELODIES MONET to fix this. I can add this to the list of things to update, but it can be next week.

@zmoon
Copy link
Member

zmoon commented Mar 3, 2022

@rschwant test failing because of pyresample not being in the test conda env. Could you move imports of pyresample inside function(s) that need it instead of module scope (there are examples of this elsewhere in monetio)? and for wrf-python (wrf) as well? currently these are not monetio required deps

and I can do if you are too busy

@rschwant
Copy link
Contributor Author

rschwant commented Mar 3, 2022

I ran the pre-commit @zmoon , which is a very cool tool by the way. Does this exist in MELODIES MONET too?

The other checks look like they are failing because I added a function from pyresample

Can we not use pyresample in monetio?

Can I call MONET in these scripts? This seemed to not be allowed either. I can also comment this line out for now, but eventually I want these reader scripts to put the model output in a consistent format including longitude on -180 to 180 instead of 0 to 360.

@rschwant
Copy link
Contributor Author

rschwant commented Mar 3, 2022

Oh sorry just realized you emailed me the exact same thing. Yes I will update this.

@zmoon
Copy link
Member

zmoon commented Mar 3, 2022

I ran the pre-commit @zmoon , which is a very cool tool by the way. Does this exist in MELODIES MONET too?

not yet, I have been meaning to ask you if you were interested! I can set it up for sure.

@rschwant
Copy link
Contributor Author

rschwant commented Mar 3, 2022

I ran the pre-commit @zmoon , which is a very cool tool by the way. Does this exist in MELODIES MONET too?

not yet, I have been meaning to ask you if you were interested! I can set it up for sure.

Yes, definitely interested, but let's do it after we get a stable version working, so maybe later March early April.

@zmoon
Copy link
Member

zmoon commented Mar 3, 2022

Can I call MONET in these scripts? This seemed to not be allowed either. I can also comment this line out for now, but eventually I want these reader scripts to put the model output in a consistent format including longitude on -180 to 180 instead of 0 to 360.

yeah, maybe we can address this later. Ideally monetio should not require monet; the idea is more that a monet workflow would most likely require monetio, but monetio is independent. It sounds like maybe this functionality you want could be moved into monetio

Copy link
Member

@zmoon zmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're passing now and you have tested that these work, so let's merge this. I'll try to add some tests for these readers when we make them "official"

@zmoon zmoon changed the title Add in MM Reader Scripts for WRF-Chem, CMAQ, and RRFS-CMAQ Add in MM Reader Scripts for WRF-Chem, CMAQ, RRFS-CMAQ, and CESM-FV Mar 3, 2022
@zmoon zmoon merged commit 3758a23 into noaa-oar-arl:develop Mar 3, 2022
@zmoon zmoon mentioned this pull request Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants