![Smile :-)](./images/smilies/icon_e_smile.gif)
I have also sent this to NOAA. I don't know whether it is a problem with zyGrib or NOAA or me or a combination of all.
But we shall figure it out.
After several days of climbing the the learning curve on GRIB formats and downloading I am left with a fundamental problem:
zyGrib seems only to be able to read files provided by third parties, not files provided by
http://www.cpc.ncep.noaa.gov
It can read its own downloads from https://www.zygrib.org and those from saildocs.org in both .grb and compressed .grb.bz2 formats, but not any that I have figured out how to download from NOAA.
Extensive googling has not resolved this, so if you have any insights, please share.
Details below.
I'll be glad to share a rather complete script (except that the executable line isn't working...
![Sad :-(](./images/smilies/icon_e_sad.gif)
Easy when you know how, I"m sure, but not easy now.
Thanks in advance.
Best regards, Andy
=====
http://www.cpc.ncep.noaa.gov/products/w ... _grib.html
zyGrib needs GRIB1 formatted files, not GRIB2.
http://www.hpc.ncep.noaa.gov/grib/hpcgrib.shtml
says it does these:
ftp://ftp.hpc.ncep.noaa.gov/grib/
But zyGrib cannot read the files.
=====
Next we try GRIB2 files:
http://tinyurl.com/pmzql44
lets you set the parameters and area for download for one time only.
You have to repeat this for each time you wish, at three hour intervals, easily scripted
URL=
http://nomads.ncep.noaa.gov/cgi-bin/fil ... 6%2Fmaster
Going there directly results in a permissions violation.
Downloading a file from the website results in
gfs.t06z.mastergrb2f99
but zyGrib can't read that either. Tacking on a .grb suffix doesn't help.
=====
Next we try the straight stick approach using:
http://www.cpc.ncep.noaa.gov/products/w ... _grib.html
get_inv.pl http://nomad3.ncep.noaa.gov/pub/gfs/rot ... rbf180.inv| egrep '(:PRMSL:|:TMP:|:WDIR:|:WIND:|:APCP:|:HTSGW:)'|get_grib.pl http://nomad3.ncep.noaa.gov/pub/gfs/rot ... z.pgrbf180 /home/andy/.zygrib/grib/131005_test.grb
This succeeds in downloading a binary file but again zygrib can't read it.
Yes we have all the prerequisites (.pl files, perl, cURL, etc. They all seem to execute correctly, it's just that zyGrib cannnot read the result.