[gradsusr] ECMWF Data

Wesley Ebisuzaki - NOAA Federal wesley.ebisuzaki at noaa.gov
Thu Feb 3 09:15:05 EST 2022


Stuart,

You are making an inventory by

   wgrib2 ecmwf_grib.grib2 > 1ecmwf.inv

The inventory looks like

1:0:d=2022020200:var discipline=0 master_table=27 parmcat=0 parm=17:surface:anl:
2:609046:d=2022020200:var discipline=2 master_table=27 parmcat=0
parm=2:0-0.07 m below ground:anl:
3:1218092:d=2022020200:var discipline=0 master_table=27 parmcat=3
parm=5:250 mb:anl:
...

Normally "var discipline=X ...parm=Z"  would have a name like SKINT
for the 1st line. TSOIL

for the second name. Not having the variable name is very strange.
Did you get a development

version from https://ftp.cpc.ncep.noaa.gov/wd51we/tmp/?  This version
is for moving files

between developer environments.  Maybe you are using a version when
"-name ECMWF"

was being developed.  Did the wgrib2 source code come from github?
There is more than

one github repository with wgrib2 source code.  Can you send me the
build configuration?

     $ wgrib2 -config

Wesley

On Wed, Feb 2, 2022 at 4:32 PM CW Weather <weatherstu at chorleyweather.com>
wrote:

> Thanks Wesley,
>
>
> I've done as requested and run code as follows to inv the data with wgrib
> (windows user btw):
>
>
> @ECHO Please wait, concentrating grb files...
> cat *.grb > ecmwf_grib.grib2
> @ECHO Please wait, creating ctl file...
> perl g2ctl.pl -verf ecmwf_grib.grib2 > ecmwf_grib.ctl
> @ECHO Please wait, creating idx file...
> gribmap -i ecmwf_grib.ctl -e
>
>
> wgrib2 ecmwf_grib.grib2 > 1ecmwf.inv
> wgrib2 ecmwf_grib.grib2 -set_metadata 1ecmwf.inv -grib 1ecmwf_new.grib2
> @ECHO Please wait, creating ctl file...
> perl g2ctl.pl -verf 1ecmwf_new.grib2 > 1ecmwf_new_grib.ctl
> @ECHO Please wait, creating idx file...
> gribmap -i 1ecmwf_new_grib.ctl -e
>
>
> However i get error creating the new ctl & new.grib2 with the inv, error -
> ***fatal error set_var: could not find var discipline=0 master_table27
> parmcat=0 parm17***
>
>
> Inv attached as a text file, struggling to see why its an error tbh.
>
>
> regards,
>
> stu.
>
>
>
> On 02-02-2022 18:48, Wesley Ebisuzaki - NOAA Federal wrote:
>
> Hi Stuart,
>
> |  but as you can see on the attached image the control file hasn't got
> the variable
> |  names or values correct and TP (total precip) isn't possible to fathom
> on the file.
> |  Ive managed to guess most variable like pressure, t2m wind ect.
>
> You probably are using an old version of wgrib2 which doesn't include a
> copy of the ECMWF grib tables.  Try to get wgrib2 v3.1.0 which includes
> more of the ECMWF table.
>
> Wgrib2 v3.1.0 can use the ECMWF grib names (-names ECMWF) with some
> limitations which are  given in
>
>     https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/names.html
>
> However, g2ctl and alt_g2ctl haven't been updated to use ecmwf or dwd
> names.
> So you will have to use the ncep names or change the .ctl to use other
> names.
>
> Wesley
>
>
> On Wed, Feb 2, 2022 at 11:10 AM CW Weather <weatherstu at chorleyweather.com>
> wrote:
>
> Hi Bill,
>
> Yes i've scrolled through the page and that's where I found out you can
> call for single parameters but through the bytes in the idx file, which is
> useless unless you use python i suspect.
>
>
> Thanks all the same,
>
>
> Stu
>
>
>
>
> On 02-02-2022 15:19, Bill Reilly wrote:
>
> Hello:
>
> I had a look and tried using the data as well but had problems, so I
> checked out the User Documentation page for this data:
>
> https://confluence.ecmwf.int/display/UDOC/ECMWF+Open+Data+-+Real+Time
>
> Maybe something on that page is useful to you.
>
> Bill
>
> --
>
> Bill Reilly
>
> (+34) 686-110-748
>
> bill at passageweather.com
> www.passageweather.com
>
> On 02/02/2022 11:49, CW Weather wrote:
>
>
> Hello all,
>
>
> ECMWF have made some data freely available on top of the WMO data sets.
> The link is here https://data.ecmwf.int/forecasts/. I have downloaded via
> wget for exmaple -
> https://data.ecmwf.int/forecasts/20220202/00z/0p4-beta/oper/20220202000000-6h-oper-fc.grib2
> and then run a simple perl command as follows;
>
> @ECHO Please wait, concetenating grb files...
> cat *.grb > ecmwf_grib.grib2
> @ECHO Please wait, creating ctl file...
> perl g2ctl.pl -verf ecmwf_grib.grib2 > ecmwf_grib.ctl
> @ECHO Please wait, creating idx file...
> gribmap -i ecmwf_grib.ctl -e
>
>
> but as you can see on the attached image the control file hasn't got the
> variable names or values correct and TP (total precip) isn't possible to
> fathom on the file. Ive managed to guess most variable like pressure, t2m
> wind ect.
>
>
> There is a way to download single variable per time step but you would
> have to input the length and/or bytes from the idx file for example - |wget
> https://data.ecmwf.int/forecasts <
> https://data.ecmwf.int/forecasts/20220202/00z/0p4-beta/oper/20220202000000-6h-oper-fc.grib2>/||20220125||/00z/0p4-beta/oper/||20220125000000||-24h-oper-fc.grib2
> --header=||"Range: bytes=17459800-18068845"|
>
> However the range values will change on every time step and every forecast
> and as such wont be viable to run automatically. I know its possible in
> python but like others I dont use python so my question is, is there a way
> to use wgrib or maybe .inv to breakdown the gribs into readable format
> using a perl code?
>
>
> -- Kind regards,
>
> *Stuart Markham*
>
> //
>
> /Founder of CW Weather/
>
> /Website: chorleyweather.com <https://www.chorleyweather.com/>/
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
>
> Kind regards,
>
> *Stuart Markham*
>
> *Founder of CW Weather*
>
> *Website: chorleyweather.com <https://www.chorleyweather.com/>*
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
>
> Kind regards,
>
> *Stuart Markham*
>
> *Founder of CW Weather*
>
> *Website: chorleyweather.com <https://www.chorleyweather.com/>*
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20220203/4ab23755/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6b66f0ed.png
Type: image/png
Size: 11158 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20220203/4ab23755/attachment-0001.png>


More information about the gradsusr mailing list