Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Remote Modules
let-it-snow
Commits
4c746cdd
Commit
4c746cdd
authored
Jul 01, 2022
by
Pierre Tysebaert
Browse files
Add DOI in snow products metadata
parent
864fec3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/s2snow/snow_detector.py
View file @
4c746cdd
...
...
@@ -821,6 +821,7 @@ def create_metadata(final_mask_file, output_dir, product_id, zs):
root
=
etree
.
Element
(
"Source_Product"
)
etree
.
SubElement
(
root
,
"PRODUCT_ID"
).
text
=
product_id
etree
.
SubElement
(
root
,
"DOI"
).
text
=
"https://doi.org/10.24400/329360/F7Q52MNK"
egil
=
etree
.
SubElement
(
root
,
"Global_Index_List"
)
etree
.
SubElement
(
egil
,
"QUALITY_INDEX"
,
name
=
'ZS'
).
text
=
str
(
zs
)
etree
.
SubElement
(
...
...
python/s2snow/snow_synthesis.py
View file @
4c746cdd
...
...
@@ -200,6 +200,7 @@ def create_snow_annual_map_metadata(product_list, output_dir):
metadata_path
=
op
.
join
(
output_dir
,
"LIS_METADATA.XML"
)
logging
.
info
(
"Metadata file: %s"
,
metadata_path
)
root
=
etree
.
Element
(
"INPUTS_LIST"
)
etree
.
SubElement
(
root
,
"DOI"
).
text
=
"https://doi.org/10.24400/329360/F7Q52MNK"
for
product_path
in
product_list
:
logging
.
debug
(
"Product path: {}"
.
format
(
product_path
))
product_name
=
op
.
basename
(
str
(
product_path
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment