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

Polar stereographic coordinates #6

Open
bschroeter opened this issue Oct 29, 2021 · 2 comments
Open

Polar stereographic coordinates #6

bschroeter opened this issue Oct 29, 2021 · 2 comments

Comments

@bschroeter
Copy link

At the moment, there is a check in this code that looks to see if longitudes fall within the ERA5 domain. However, when running a polar simulation there doesn't need to be a check on this.

The following error is raised:

IndexError: ERROR: Target area is outside the ERA5 archive domain
    Longitudes: Target (0.38:360.00), ERA5 (0.0:359.75)

I've made a hack version of the era5grib scripts that just comments out the longitude check, but it would be good to have this as an option to your utility - so that I can take advantage of the bug fixes as they roll out.

Perhaps this could be implemented as a command-line argument --polar, or just detected from the namelist.wps?

@ScottWales
Copy link

Thanks @bschroeter, I've added a --polar option to handle this case. It should be installed in unstable conda later today

@bschroeter
Copy link
Author

@ScottWales , you are a champion. Thanks mate. I have a few other suggestions which I will raise in other issues to keep things clean.

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

No branches or pull requests

2 participants