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

Missing ECMWF variables from grib tables? #291

Open
weathermon83 opened this issue Nov 15, 2024 · 2 comments
Open

Missing ECMWF variables from grib tables? #291

weathermon83 opened this issue Nov 15, 2024 · 2 comments

Comments

@weathermon83
Copy link

weathermon83 commented Nov 15, 2024

Hi guys,

I'm using wgrib2 3.4.0 on the latest ECMWF IFS data and noticed that there are several variables that appear to be not matching up correctly:

wgrib2 -ncpu 8 /data/metcentre//data/grib/ec_ifs/2024111318/ecv2_090.grb2 -s | grep disc
4:4672668:d=2024111318:var discipline=0 center=98 local_table=1 parmcat=1 parm=193:surface:0-90 hour acc@(fcst,dt=450 sec),missing=0:
52:88201140:d=2024111318:var discipline=0 center=98 local_table=1 parmcat=19 parm=192:surface:90 hour fcst:
59:100142296:d=2024111318:var discipline=0 master_table=33 parmcat=2 parm=62:surface:0-90 hour acc@(fcst,dt=450 sec),missing=0:
65:110525896:d=2024111318:var discipline=0 master_table=33 parmcat=2 parm=63:surface:0-90 hour acc@(fcst,dt=450 sec),missing=0:
78:131293268:d=2024111318:var discipline=2 center=98 local_table=1 parmcat=0 parm=201:surface:0-90 hour acc@(fcst,dt=450 sec),missing=0:

I did a wgrib2 -gribtable_used to find out these variables and had a quick look on the EC grib parameters page here https://codes.ecmwf.int/grib/param-db/?ordering=id&encoding=grib2

The first one (message 4, parameter 193) is the Total Precipitation variable, so I made a quick user table, exported it in my shell environment and it now shows up:

export grib2table=/data/metcentre/grads2/wgrib2_tables/grib2table
wgrib2 -ncpu 8 /data/metcentre//data/grib/ec_ifs/2024111318/ecv2_090.grb2 -s | grep disc
52:88201140:d=2024111318:var discipline=0 center=98 local_table=1 parmcat=19 parm=192:surface:90 hour fcst:
59:100142296:d=2024111318:var discipline=0 master_table=33 parmcat=2 parm=62:surface:0-90 hour acc@(fcst,dt=450 sec),missing=0:
65:110525896:d=2024111318:var discipline=0 master_table=33 parmcat=2 parm=63:surface:0-90 hour acc@(fcst,dt=450 sec),missing=0:
78:131293268:d=2024111318:var discipline=2 center=98 local_table=1 parmcat=0 parm=201:surface:0-90 hour acc@(fcst,dt=450 sec),missing=0

wgrib2 -ncpu 8 /data/metcentre//data/grib/ec_ifs/2024111318/ecv2_090.grb2 -s | grep -i tp
4:4672668:d=2024111318:TP:surface:0-90 hour acc@(fcst,dt=450 sec),missing=0:
45:74702624:d=2024111318:TPRATE:surface:90 hour fcst:

cat /data/metcentre/grads2/wgrib2_tables/grib2table
0:0:0:255:98:1:1:193:TP:Total Precipitation:m

Are there plans to include the updated ECMWF variable names in version 3.5 at all? I use all the default NCEP names for my variables to keep things consistent across scripts. I did have a quick look at the wgrib2/gribtables/ecmwf/create_ecmwf_gribtable.sh script however it appears to be hitting an old url that no longer exists (https://codes.ecmwf.int/grib/json/?discipline=All&category=All&filter=grib2:) so assuming it needs to be updated to hit https://codes.ecmwf.int/parameter-database/api/v1/param/?encoding=grib2&format=json&limit=20&offset=0&ordering=id&regex=false instead

Cheers, Mike

@webisu
Copy link
Collaborator

webisu commented Nov 15, 2024 via email

@weathermon83
Copy link
Author

weathermon83 commented Nov 19, 2024 via email

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