Closed ian29 closed 9 years ago
occurrs with and without the --grib2
flag
gdalinfo gfs.t12z.mastergrb2f00.grib2
ERROR 4: `/vsimem/work.jpc' not recognised as a supported file format.
dec_jpeg2000: Unable to open JPEG2000 image within GRIB file.
Is the JPEG2000 driver available?Driver: GRIB/GRIdded Binary (.grb)
Files: gfs.t12z.mastergrb2f00.grib2
Ugh. I see what's happening. GDAL throws an error and continues. Rasterio catches that error and stops. Go home GDAL, you're drunk :(
Yuck. I'll come up with something toute de suite.
This runs fine for me - it looks as if rasterio on my system uses gdal 1.10.1* (where @ian29's uses 1.11.0).
I also have 1.11.0, but ... anaconda?
I downloaded that .grib2 file from the API and get the same error as @ian29 did. Here it looks like the problem is a lack of JPEG2000 support in my GDAL (from Homebrew).
I'm going to try this on an ec3 environment where hopefully we have more control / python setups are less messy
not seeing this error in ec2land, so i guess i'll just never experience the joy of running makesurface
on my computer.
@dnomadb up to you to close or if you want to support rogue/mystery gdal versions
No real idea of what to do with this - it is more of a rasterio issue, in any event. Moving the specific error there.
but it's a perfectly good lil
.grib2
file: opens nicely in QGIS and gdal handles it well (after adding the.grib2
suffix)test grib2
http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_hd.pl?file=gfs.t12z.mastergrb2f00&lev_2_m_above_ground=on&var_TMP=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.2014112012%2Fmaster
makesurface output:
gdalinfo output