Commit 7e2c1401 authored by Crespin-Boucaud Arthur's avatar Crespin-Boucaud Arthur
Browse files

Update part of venus_theia_xs launchChain.py

parent d3f89f79
......@@ -376,7 +376,7 @@ def main(argv):
if ref_VenusTHEIAXS is None:
# Build reference for S2 time series
ref_VenusTHEIAXS = f + '/../coreg_ref_VenusTHEIA_XS.tif'
if not os.path.exists(ref_S2THEIA) or force_coreg:
if not os.path.exists(ref_VenusTHEIAXS) or force_coreg:
cmd = ['otbcli_Superimpose', '-inr', refl, '-inm', ms_file, '-out', ref_VenusTHEIAXS,
'uint16']
subprocess.call(cmd, shell=sh)
......@@ -567,13 +567,13 @@ def main(argv):
for f in n_feat_VenusTHEIA_XS:
# Check presence of current feature
fn = glob.glob(base_fld + '/FEAT/Venus_THEIA_XS_FEAT/*_' + f + '_GAPF.tif')
if len(fn) == 1 and cfg_VenusTHEIA['gapfillingmode'] != 'NO':
if len(fn) == 1 and cfg_VenusTHEIA_XS['gapfillingmode'] != 'NO':
feat_VenusTHEIA_XS_check.append(fn[0])
[feat_to_vars.append('VENUS-XS-L2A-THEIA_' + f + '_' + x + '_GAPF') for x in dates_VenusTHEIA_XS]
else:
fn = glob.glob(base_fld + '/FEAT/Venus_THEIA_XS_FEAT/*_' + f + '.tif')
if len(fn) == 1:
if cfg_VenusTHEIA['gapfillingmode'] != 'NO':
if cfg_VenusTHEIA_XS['gapfillingmode'] != 'NO':
warnings.warn("VENUS_THEIA_XS: Feature " + f + " requested with GAPF, found without. Taking NOGAPF.")
feat_VenusTHEIA_XS_check.append(fn[0])
[feat_to_vars.append('VENUS-XS-L2A-THEIA_' + f + '_' + x + '_NOGAPF') for x in dates_VenusTHEIA_XS]
......
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