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

Temporal smoothing (Savitzky Golay) script (pre).

parent 5580b801
......@@ -28,7 +28,7 @@ def temporalSmoothing(fld,
cmd += [f]
cmd += ['-dates',fld+'/dates.txt','-out',fld+'/SmoothedSeries.tif','uint16','-interp','sg','-interp.sg.deg',str(sgdeg),'-interp.sg.rad',str(sgrad)]
#subprocess.call(cmd)
subprocess.call(cmd)
if clip_valid > 0:
cmd = ['otbcli_BandMathX', '-il', fld+'/SmoothedSeries.tif', '-out', 'ClippedSmoothedSeries.tif','uint16','-exp']
......@@ -43,5 +43,4 @@ def temporalSmoothing(fld,
expr.append('im1b'+str(n+1))
cdf.write(dts[n])
cmd += ['{' + ';'.join(expr) + '}']
print cmd
subprocess.call(cmd)
\ No newline at end of file
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