Closed GoogleCodeExporter closed 8 years ago
Just a couple of Notes:
1. Just a note that the code sample above doesn't run as is. Make sure to
substitute a dummy string in for the 'title' variable.
2. I've fetched the file using curl. Just a note for that it takes a while as
the file is 217MB and the FTP connection is a bit slow:
curl http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs.2015012100/gfs.t00z.pgrb2.0p25.f096 -o gfs.t00z.pgrb2.0p25.f096
3. The message you're seeing is a WARNING not an ERROR. When you look at the
data read into 'tempdata' do you notice that anything is wrong with it?
(missing data, wrong size, etc.)
Original comment by bschlin...@gmail.com
on 21 Jan 2015 at 7:08
OK, I ran a test using nctoolbox's 1.0.x branch and didn't see any warning. I
suspect that warning may be from an older version of grib.
>> xx = ncdataset('/Users/brian/Downloads/gfs.t00z.pgrb2.0p25.f096')
xx =
ncdataset with properties:
location: '/Users/brian/Downloads/gfs.t00z.pgrb2.0p25.f096'
netcdf: [1x1 ucar.nc2.dataset.NetcdfDataset]
variables: {167x1 cell}
>> tempdata = xx.data(xx.variables{40});
As a workaround, I temporarily posted a snapshot of nctoolbox-1.0.x for you at:
https://drive.google.com/file/d/0B8RHIr7J8XHoTWhxbUEzejVDR0U/view?usp=sharing
Original comment by bschlin...@gmail.com
on 21 Jan 2015 at 7:14
Thanks bschlin... I'm downloading the .zip right now. Since the file is so
large... think there is a way to pull the variable I want directly from the
server instead of downloading all 217MB before doing so?
Original comment by packatta...@hotmail.com
on 21 Jan 2015 at 7:27
If the grib file was served via OpenDAP or Thredds than yes, you could use the
opendap url with nctoolbox. Then only the parts of the data you actually
requested would be fetched across the network. You might want to browse through
the servers listed at http://nomads.ncdc.noaa.gov/data.php or contact someone
at who manages the data to find an opendap url for the datasets that you're
interested in.
Good Luck!
Original comment by bschlin...@gmail.com
on 21 Jan 2015 at 7:37
[deleted comment]
Original comment by bschlin...@gmail.com
on 21 Jan 2015 at 7:41
Original issue reported on code.google.com by
packatta...@hotmail.com
on 21 Jan 2015 at 6:07