Commit 4c746cdd authored by Pierre Tysebaert's avatar Pierre Tysebaert
Browse files

Add DOI in snow products metadata

parent 864fec3d
......@@ -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(
......
......@@ -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))
......
Supports Markdown
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