EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESA
PRISM
VS
Commits
10e9a4cf
Commit
10e9a4cf
authored
4 years ago
by
Fabian Schindler
Browse files
Options
Downloads
Patches
Plain Diff
bands re is dependent on S2 level
parent
2a797807
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!61
Staging to master 1.3.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/registrar/scheme.py
+2
-2
2 additions, 2 deletions
core/registrar/scheme.py
with
2 additions
and
2 deletions
core/registrar/scheme.py
+
2
−
2
View file @
10e9a4cf
...
...
@@ -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
'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment