Commit 1b46a606 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

FIX: problem with date ordering in feature stack.

parent fe2e24bd
......@@ -478,8 +478,8 @@ def createS1Features(fld, base_name='S1series', out_fld=None, features=None, con
if out_fld is None:
out_fld = fld
lst_vh = sorted(glob.glob(fld + os.sep + '*iw-grd-vh*.tiff'), key=lambda x: x[14:22])
lst_vv = sorted(glob.glob(fld + os.sep + '*iw-grd-vv*.tiff'), key=lambda x: x[14:22])
lst_vh = sorted(glob.glob(fld + os.sep + '*iw-grd-vh*.tiff'), key=lambda x: os.path.basename(x)[14:22])
lst_vv = sorted(glob.glob(fld + os.sep + '*iw-grd-vv*.tiff'), key=lambda x: os.path.basename(x)[14:22])
# Check date correspondance
dates_vh = [os.path.basename(l)[14:22] for l in lst_vh]
......
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