gdal
ImportError: No module named gdal
There are two parts to GDAL: the GDAL utilities (gdalinfo, gdalwarp, etc.) and the GDAL Python Bindings (when you call from osgeo import gdal from within a Python script.). The two can be (or could be in the past) installed separately. The fact that you “see” gdalwarp on the command line means that you have … Read more
Numpy – Replace a number with NaN
A[A==NDV]=numpy.nan A==NDV will produce a boolean array that can be used as an index for A
Unable to install Python and GDAL (DLL load failed)
To successfully load GDAL from python in Windows 7, I follow these steps, which should be quite generic: Install python of your choosing, I used v2.7.2 x64 downloaded from the official website Run python from command line to determine the compiler version used to build python (mine shows this message: Python 2.7.2 (default, Jun 12 … Read more