Add rotated_ll to supported CF CRS grid types - #459
Conversation
|
Thanks for the PR! I really appreciate it. Sorry it's taken some time to get to. I'd like to try this out myself before merging. Or, would you mind adding a test for this case?
|
I'm not aware of any other rotated_ll models asside from HRDPS, or is there? |
This is probably due to not updating all my notebooks at each release. It could be a separate issue if you don't want to fix them in this PR. |
Added a couple tests based on the structure you have set up. Please take a careful look.
Agree pygrib is sometimes problematic. I can move everything to extras, is that where you normally put testing dependencies? I had to add netcdf into dev as well in order get my tests passing locally (running
Yes can we track that separately please? |
| from herbie import Herbie, config | ||
|
|
||
| now = datetime.now() | ||
| latest = pd.Timestamp("now").floor("6h") - pd.Timedelta("6h") |
There was a problem hiding this comment.
DRAGONS:
At approx midnight UTC the HRDPS servers get cleared of the previous day's forecasts. However there is no new forecast available yet until 06Z. During that time these tests will fail.
What do you think is the right way to handle this in the Herbie package?
There was a problem hiding this comment.
Added this info to the module docstring
I'm hitting this when trying to monkey-patch a fix for the RRFS plugin... so seems to be in use there. |
I should specify, I think this is specific to the full-domain RRFS's projection ( |
|
I see some tests are failing because of pygrib, however that dependency is needed to run the notebook. Is there another dependency group I can put it in @blaylockbk? |
|
What if we just kept it out of a dependency group and left it only in an extra dependency by itself. |
|
Pygrib is already an optional dependency. Maybe just keep it there and not in a group for now. |
|
Done! |
|
I followed the steps here https://github.com/blaylockbk/Herbie/blob/main/.github/workflows/tests-python.yml and the tests I've added are passing! |
|
Great! I think the error on Windows is related to cfgrib and eccodes. This can be addressed in a separate issue. The rest is good to merge. Thanks for this contribution. I really appreciate it. 😃 |
Should solve #458 and gives a matching result to pygrib in the notebook.
📝: I also added jupyter and pygrib as dev dependencies but that should be easy to remove if unwanted.