Commit c35229dd authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

FIX: mosaicking single date scenes using max (avoids artefacts).

parent 5826ba1e
......@@ -495,7 +495,7 @@ def extractROI(infiles, outdir, roi, roiname=None, ncores=12, overwrite=False, v
"""
mbm = otb.Registry.CreateApplication('BandMathX')
mbm.SetParameterStringList('il', l)
mbm.SetParameterString('exp', 'vmax({' + ';'.join(['im%db1' % i for i in len(l)]) + '})')
mbm.SetParameterString('exp', 'vmax({' + ';'.join(['im%db1' % i for i in range(len(l))]) + '})')
mbm.SetParameterString('out', outfile)
mbm.ExecuteAndWriteOutput()
......
Markdown is supported
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