Commit 5fcdd6d1 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

FIX: stack naming corrected.

Showing with 1 addition and 1 deletion
+1 -1
...@@ -245,7 +245,7 @@ def S2_THEIA_preprocess(fld, cmask=False, ref=None, bandlist=None): ...@@ -245,7 +245,7 @@ def S2_THEIA_preprocess(fld, cmask=False, ref=None, bandlist=None):
''' '''
# new stack generation # new stack generation
stack_fn = glob.glob(fld + '/*_FRE_B2*.tif')[0].replace('B2', 'STACK') stack_fn = bnd_ref[0].replace(ref, 'STACK')
cmd = ['otbcli_ConcatenateImages','-il'] + bnd_tomerge + ['-out', stack_fn, 'uint16'] cmd = ['otbcli_ConcatenateImages','-il'] + bnd_tomerge + ['-out', stack_fn, 'uint16']
subprocess.call(cmd, shell=sh) subprocess.call(cmd, shell=sh)
setNoDataValue(stack_fn, 0) setNoDataValue(stack_fn, 0)
......
Supports Markdown
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