Commit dda43d880b010310ecc3947df1a6de5baa410915

Authored by Jordi Inglada
1 parent 1cb789b9

ENH: update parameters has to be called for new Python API

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
scripts/common/LandsatShift.py
... ... @@ -43,6 +43,7 @@ def getLandsatRedBand(l8ImageIn, l8RedBandOut, channel=4):
43 43 extractApp.SetParameterString("in",l8ImageIn)
44 44 extractApp.SetParameterString("out",l8RedBandOut)
45 45 extractApp.SetParameterOutputImagePixelType("out", otb.ImagePixelType_int16)
  46 + extractApp.UpdateParameters()
46 47 extractApp.SetParameterStringList("cl",["Channel"+str(channel)])
47 48 extractApp.ExecuteAndWriteOutput()
48 49  
... ...