1

I want to perform raster calculation from GDAL tool. I am using the formula as,

 gdal_calc.py -A Input_File.tif --outfile=yourOutput.tif -- calc="(A>=2200)*A" --NoDataValue=0 --type='Float32'

But the above statement gives an Error

ImportError : numpy.core.multiarray failed to import.

3
  • -- calc="(A>=2200)*A" should be --calc="(A>=2200)*A" (without space) – Antonio Falciano Aug 5 '17 at 10:54
  • did this too. but same error – rish18 Aug 5 '17 at 11:37
  • 1
    try to update numpy: pip install -U numpy – Antonio Falciano Aug 5 '17 at 16:22

Your Answer

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

Browse other questions tagged or ask your own question.