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

Pulling data from NOAA #32

Closed
jtippman opened this issue Jul 14, 2015 · 3 comments
Closed

Pulling data from NOAA #32

jtippman opened this issue Jul 14, 2015 · 3 comments

Comments

@jtippman
Copy link

Hi

I am trying to pull new data. I execute this command:

curl "http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs.pl?file=gfs.t00z.pgrbf00.grib2&lev_10_m_above_ground=on&var_UGRD=on&var_VGRD=on&dir=%2Fgfs.2015071200" -o gfs.t00z.pgrbf00.grib2

The file I am retrieving contains this:

<title>data file is not present; /common/data/model/com/gfs/prod/gfs.2015071200/gfs.t00z.pgrbf00.grib2</title>

Data file is not present: /common/data/model/com/gfs/prod/gfs.2015071200/gfs.t00z.pgrbf00.grib2

g2sub 1.1.0.beta-6 and comments: Wesley.Ebisuzaki@noaa.gov, Jun.Wang@noaa.gov

Am I doing something wrong in the link?

Further, when I go to the directory http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs.pl and click on a file link with the July 12th date it says no file or directory is available.

This one works: http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl, but just changing this in the above command still does not download an appropriate file.

It seems there are new links but I am not sure what file is appropriate (it seems there is a whole list of new files to choose from).

Any guidance or feedback would be great!

Thanks,
Jeff

@cambecc
Copy link
Owner

cambecc commented Jul 14, 2015

The NWS changed the file name format back in January. What if you try gfs.t00z.pgrb2.1p00.f000 instead of gfs.t00z.pgrbf00.grib2?

@jtippman
Copy link
Author

That worked. Thanks!

curl "http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t00z.pgrb2.1p00.f000&lev_10_m_above_ground=on&var_UGRD=on&var_VGRD=on&dir=%2Fgfs.2015071200" -o gfs.t00z.pgrb2.1p00.f000
grib2json -d -n -o current-wind-surface-level-gfs-1.0.json gfs.t00z.pgrb2.1p00.f000 

@AndreaAstronaut
Copy link

Hi,

did the file name change again?
With the following url:
http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs.pl?file=gfs.t00z.pgrb2.1p00.f000&lev_10_m_above_ground=on&var_UGRD=on&var_VGRD=on&dir=%2Fgfs.2016091300

I get the following:

<title>Error</title>

Error

Filename does not match legal pattern: gfs.t\d{2}z.pgrbf\d{2,3}.grib2$

g2sub 1.1.0.beta-6 and comments: Wesley.Ebisuzaki@noaa.gov, Jun.Wang@noaa.gov

However, the following link does seem to work, so the file name seems ok:
http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs.2016091300/gfs.t00z.pgrb2.1p00.f000

If I follow the legal file name suggested:
http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs.pl?file=gfs.t18z.pgrbf00.grib2&lev_500_mb=on&lev_700_mb=on&lev_1000_mb=on&var_HGT=on&dir=%2Fgfs.2013091300

Then i get:
Data file is not present: /common/data/model/com/gfs/prod/gfs.2013091300/gfs.t18z.pgrbf00.grib2

Am I doing something wrong?

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

3 participants