Commit 2e78c0c7 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

WIP: complete refactoring of stratification application.

parent a7c3e62b
......@@ -111,7 +111,6 @@ def landscape_stratification_metric(fn, output_file, md=[1, 1], duration=365, cb
msk.Execute()
periods = get_period_intervals(date_file, md, duration)
[print(p) for p in periods]
mts = otb.Registry.CreateApplication('BandMathX')
mts.SetParameterStringList('il', [fn])
......@@ -129,6 +128,7 @@ def landscape_stratification_metric(fn, output_file, md=[1, 1], duration=365, cb
dyn.SetParameterInputImage('in', pca.GetParameterOutputImage('out'))
dyn.SetParameterInt('outmin', 0)
dyn.SetParameterInt('outmax', 2048)
dyn.EnableParameter('mask')
dyn.SetParameterInputImage('mask', msk.GetParameterOutputImage('out'))
dyn.SetParameterOutputImagePixelType('out', otb.ImagePixelType_int16)
dyn.Execute()
......
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