grib-doctor icon indicating copy to clipboard operation
grib-doctor copied to clipboard

Update grib doctor to Rasterio 1.0

Open abu034004 opened this issue 8 years ago • 1 comments

I am using Python 2.7.13 (64 bit) in windows 7 and I have successfully installed gdal, rasterio (following https://mapbox.github.io/rasterio/installation.html) and gribdoctor (using pip). So, whenever I am using gribdoctor smoosh -dev -uw raw.grib2 unwrap.tif command, I am getting the error- "with rasterio.drivers(): TypeError: 'module' object is not callable." How can I fix this problem so that I can get converted output? Please note that raw.grib2 is the input GRIB file and unwrap.tif will be the output file.

error_screenshot

abu034004 avatar Jul 16 '17 22:07 abu034004

:wave: @abu034004 https://github.com/mapbox/grib-doctor is not up-to-date with latest raster version. rasterio.drivers() has been replaced by rasterio.env() since version 1.0a1.

Please feel free to fork and submit a PR if you want to help us, that will be really appreciated

note, this could help: https://github.com/mapbox/rasterio/blob/master/docs/topics/migrating-to-v1.rst

cc @dnomadb

vincentsarago avatar Jul 17 '17 20:07 vincentsarago