Commit 8d0b94c3 authored by Julie Brossard's avatar Julie Brossard
Browse files

Merge branch '23-replace-gdal_calc-py-with-bandmath-3' into 'develop'

Resolve "Replace gdal_calc.py with BandMath"

See merge request !28
parents d4f44abd 48332a7b
Pipeline #10890 passed with stages
in 24 minutes and 47 seconds
......@@ -945,8 +945,7 @@ class TemporalSynthesis():
args = f"gdalwarp -tr 60 60 -q -r {interpolation_type} {in_name} {out_name.parent / 'tmp.tif'} " \
f"-srcnodata -10000 -dstnodata -10000"
else:
args = f"gdalwarp -tr 60 60 -q -r {interpolation_type} {in_name} {out_name} -srcnodata -10000 " \
f"-dstnodata -10000"
args = f"gdalwarp -tr 60 60 -q -r {interpolation_type} {in_name} {out_name}"
subprocess.run(args.split())
if interpolation_type=="cubic":
args = f'otbcli_BandMath -il {out_name.parent / "tmp.tif"} -out {out_name} -exp ' \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment