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

Undefined values problem #200

Open
jimmyc42 opened this issue Mar 17, 2022 · 1 comment
Open

Undefined values problem #200

jimmyc42 opened this issue Mar 17, 2022 · 1 comment

Comments

@jimmyc42
Copy link

We are working on the EMC FV3 member that is in the High Res window slot.
The grid is a cut out so there is missing/undefined values on the edges of the domain.
the problem is that the missing value when read in via pygrib is 9999. The 250hpa geopotential has data that range 9700-10800 or so, which overlaps with the missing value, resulting in missing grid points not on the domain edge.
we realized this and ran wgrib2 to change the missing value:
wgrib2 hiresw.t00z.fv3_5km.f01.conus.grib2 -rpn "-999:swap:merge" -grib_out OUT.grib2

and this got us a clean geopotential height field.
Is this a pygrib issue or grib2 issue or both?

Thanks
jimmyc

@jswhit
Copy link
Owner

jswhit commented Mar 27, 2022

It's a grib2 issue - the missing value is encoded in the grib file

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