Commit f344478672692a0838af80aaeba1f669766efa96

Authored by Jordi Inglada
1 parent 2b952c28

ENH: create temporary images as UInt16

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
scripts/common/LandsatShift.py
... ... @@ -28,7 +28,7 @@ def subsampleS2(s2ImageIn, s2ImageOut, l8ImageIn):
28 28 rsApp.SetParameterString("inr",l8ImageIn)
29 29 rsApp.SetParameterString("inm",s2ImageIn)
30 30 rsApp.SetParameterString("out",s2ImageOut)
31   - #rsApp.SetParameterOutputImagePixelType("uint16")
  31 + rsApp.SetParameterOutputImagePixelType("out", otb.ImagePixelType_uint16)
32 32 rsApp.SetParameterFloat("lms",100)
33 33 rsApp.ExecuteAndWriteOutput()
34 34  
... ... @@ -37,7 +37,7 @@ def getLandsatRedBand(l8ImageIn, l8RedBandOut, channel=4):
37 37 extractApp = otb.Registry.CreateApplication("ExtractROI")
38 38 extractApp.SetParameterString("in",l8ImageIn)
39 39 extractApp.SetParameterString("out",l8RedBandOut)
40   - #extractApp.SetParameterOutputImagePixelType("uint16")
  40 + extractApp.SetParameterOutputImagePixelType("out", otb.ImagePixelType_uint16)
41 41 extractApp.SetParameterStringList("cl",["Channel"+str(channel)])
42 42 extractApp.ExecuteAndWriteOutput()
43 43  
... ...