I'm passing a simple gdal_calc.py command line argument to os.system() in a python script. However when I run the script, nothing is generated and the gdal_calc.py source script opens automatically:
I have gdal installed in my conda environment, and the gdal command line call works from the terminal when called directly. My python code looks like this:
command_str = 'gdal_calc.py -A data/raster1.tif -B data/raster2.tif -- outfile="test.tif" --calc="A/B"' os.system(command_str) I'm new to working on a windows machine and this pattern worked reliably on my mac, so wondering if this is an operating system issue? I also have this added to my PATH environment variables:
'C:\Users<firstname.lastname>\Miniconda3'
