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

Change Dynamic Convert Parameters

parent 262b3474
......@@ -260,7 +260,7 @@ class LandscapeStratificationMetric(QgsProcessingAlgorithm):
to_del.append(LS_Strat_raw)
LS_Strat_norm = os.path.join(tmp_folder, prefix+"LandStrat_metric_norm.tif")
DC_app_parameters={"in":LS_Strat_raw, "out":LS_Strat_norm, "mask":mask, "outmin":0, "outmax":2048, "outputpixeltype":2}
DC_app_parameters={"in":LS_Strat_raw, "out":LS_Strat_norm, "mask":mask, "outmin":1, "outmax":2048, "quantile.low":0, "quantile.high":0, "outputpixeltype":2}
processing.run("otb:DynamicConvert", DC_app_parameters, context=context, feedback=feedback)
to_del.append(LS_Strat_norm)
......
......@@ -126,8 +126,10 @@ def landscape_stratification_metric(fn, output_file, md=[1, 1], duration=365, cb
dyn = otb.Registry.CreateApplication('DynamicConvert')
dyn.SetParameterInputImage('in', pca.GetParameterOutputImage('out'))
dyn.SetParameterInt('outmin', 0)
dyn.SetParameterInt('outmin', 1)
dyn.SetParameterInt('outmax', 2048)
dyn.SetParameterInt('quantile.low', 0)
dyn.SetParameterInt('quantile.high', 0)
dyn.EnableParameter('mask')
dyn.SetParameterInputImage('mask', msk.GetParameterOutputImage('out'))
dyn.SetParameterOutputImagePixelType('out', otb.ImagePixelType_int16)
......
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