I am trying to extract data from a geotiff file in the Ubuntu terminal. My professor used the command "gdal NDVI.tif" and was able to write the data to a text file. When I use that command, I get the error "gdal: command not found."

I type in "gdalinfo --version" and it gives me the version number. I type in "whereis gdal" and it shows me what directories it's in. I used the command "sudo apt-get install python-gdal" to install and already have python 2.7.

Does anyone have any idea why I am getting this error? Google searches have been fruitless.

Best, Sean


There is no command GDAL.

GDAL is a library with many different tools within it.

For a full list see: http://www.gdal.org/gdal_utilities.html

If you just want the raster info, try:

gdalinfo NDVI.tif

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.