Skip to content

Instantly share code, notes, and snippets.

@ethanwhite
Created November 20, 2014 01:37
Show Gist options
  • Save ethanwhite/71e24e387b10732510e5 to your computer and use it in GitHub Desktop.
Save ethanwhite/71e24e387b10732510e5 to your computer and use it in GitHub Desktop.
Minimal case for issue with netcdf files and gdal on Anaconda
from osgeo import gdal
gdal.AllRegister()
driver = gdal.GetDriverByName("netCDF")
gdal.Open("test.nc")
@ethanwhite
Copy link
Author

This returns:

ERROR 4: `test.nc' not recognised as a supported file format.

and driver == None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment