PolarGeospatialCenter / imagery_utils

Other
34 stars 10 forks source link

Patch for running pansharpen in mamba env on windows #81

Closed bakkerbakker closed 3 months ago

bakkerbakker commented 3 months ago

Since migrating to using mamba/conda on Windows machines instead of OSGeo4W, the gdal_pansharpen.py command required a patch to run as expected in the pgc env.

power720 commented 3 months ago

I tests the changes on:

05-31-2024 13:29:36 ERROR- Error found - Return Code = 2:  python %CONDA_PREFIX%\scripts\gdal_pansharpen.py -of GTiff  -co "PHOTOMETRIC=MINISBLACK" ...
05-31-2024 13:29:36 DEBUG- STDOUT:  b''
05-31-2024 13:29:36 DEBUG- STDERR:  b"python: can't open file 'C:\\ ... \\%CONDA_PREFIX%\\\\scripts\\\\gdal_pansharpen.py': [Errno 2] No such file or directory\r\n"