Search code examples
pythonanacondagdal

gdal_calc.py returns "The system cannot find the path specified." with Anaconda3


when I run the following command:

python gdal_calc.py -A "C:\Users\Username\GDAL\Python\unwrappedPhase\20190118_20190106.vrt" -B "C:\Users\Username\GDAL\Python\connectedComponents\20190118_20190106.vrt" --outfile "C:\Users\Username\GDAL\Python\results\20190118_20190106_defo" --calc='((A*(B>0))/(4*pi)*5.546576)' --format=ENVI --NoDataValue=0 --overwrite

The Shell returns:

The system cannot find the path specified.

I'm using Anaconda3 on Win10 64bit.


Solution

  • Update: I fixed it. I only changed the quotation marks from ' to " and changed the outfile to only defo and it worked!