[gradsusr] ECMWF Data
CW Weather
weatherstu at chorleyweather.com
Wed Feb 2 16:05:33 EST 2022
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 [1]
>
> 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 [2] -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 [3] <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 [4]_
_______________________________________________
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 [4]_
Links:
------
[1] http://www.passageweather.com
[2] http://g2ctl.pl
[3] http://chorleyweather.com
[4] https://www.chorleyweather.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20220202/56aaf4ac/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/20220202/56aaf4ac/attachment-0001.png>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 1ecmwf.inv
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20220202/56aaf4ac/attachment-0001.ksh>
More information about the gradsusr
mailing list