EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 10e9a4cf authored by Fabian Schindler's avatar Fabian Schindler
Browse files

bands re is dependent on S2 level

parent 2a797807
No related branches found
No related tags found
1 merge request!61Staging to master 1.3.0
......@@ -99,6 +99,7 @@ class Sentinel2RegistrationScheme(RegistrationScheme):
mtd_namespaces = self.MTD_NAMESPACES['MSIL2A']
mtd_tl_schema = self.MTD_TL_SCHEMAS['MSIL2A']
mtd_tl_namespaces = self.MTD_TL_NAMESPACES['MSIL2A']
band_re = re.compile(r'.*([A-Z0-9]{3}_[0-9]{2}m)$')
except Exception:
metadata_file = join(path, 'MTD_MSIL1C.xml')
......@@ -107,11 +108,10 @@ class Sentinel2RegistrationScheme(RegistrationScheme):
mtd_namespaces = self.MTD_NAMESPACES['MSIL1C']
mtd_tl_schema = self.MTD_TL_SCHEMAS['MSIL1C']
mtd_tl_namespaces = self.MTD_TL_NAMESPACES['MSIL1C']
band_re = re.compile(r'.*([A-Z0-9]{3})$')
# get product metadata
metadata = parse_metadata_schema(tree, mtd_schema, mtd_namespaces)
band_re = re.compile(r'.*([A-Z0-9]{3}_[0-9]{2}m)$')
raster_files = {
band_re.match(image_file_path).groups()[0]: f'{join(path, image_file_path)}.jp2'
for image_file_path in metadata['image_file_paths']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment