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

dcgrib2 fails on ECMWF’s WMO Essential grib2 #138

Open
akrherz opened this issue Jul 5, 2023 · 0 comments
Open

dcgrib2 fails on ECMWF’s WMO Essential grib2 #138

akrherz opened this issue Jul 5, 2023 · 0 comments
Labels

Comments

@akrherz
Copy link
Collaborator

akrherz commented Jul 5, 2023

As reported on gembud, dcgrib2/nagrib fails to decoded updated ECMWF grib2 data

$ dcgrib2 -d temp.log -v 100 test.grd < test.grb2  
[27248] 230628/1520[DCINIT 3] Version 7.14.0.1
[27248] 230628/1520[DC 2]  read 102399/102399 bytes strt 0 newstrt 102399
[27248] 230628/1520[DC 2]  read 1/1 bytes strt 102399 newstrt 102400
[27248] 230628/1520[DC 2]  read 83204/102397 bytes strt 0 newstrt 83204
[27248] 230628/1520[CED_GNUM -1] No GID KXKY [900 451] LL [90.000000 
180.000000] UR [-90.000000 179.600006]
[27248] 230628/1520[CED_GNUM -1] No GID KXKY [900 451] LL [90.000000 
180.000000] UR [-90.000000 179.600006]
[27248] 230628/1520[DC 2]  read 0/19196 bytes strt 83204 newstrt 83204
[27248] 230628/1520[DCGRIB -9] End of Data
[27248] 230628/1520[DC 5]  Normal termination.
[27248] 230628/1520[DC 2]  Number of bulletins read and processed: 1
[27248] 230628/1520[DC 6]  Shutting down.
  • A gradsusr post detailing what is happening.

The work around is to get a version of wgrib2 that was built with AEC support. The default build doesn't include AEC support because it requires a recent version of CMake to build. Once you get a version of wgrib2 with AEC support,you convert the file from AEC compression to something that GrADS supports.

$ wgrib2 IN.grb -set_grib_type c3 -grib_out OUT.grb

@akrherz akrherz added the bug label Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant