From 7cb7d08c2e630bb3712c5db423415cebf5d63f6f Mon Sep 17 00:00:00 2001 From: Daniel Santillan Date: Thu, 28 Sep 2023 15:42:29 +0200 Subject: [PATCH] fix: changed some entries from comma separated string to array of string; updated citation to be correct (#53) --- collections/NPPN_net_primary_production.yaml | 8 ++++---- generators/generate_indicators.py | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/collections/NPPN_net_primary_production.yaml b/collections/NPPN_net_primary_production.yaml index d1afaafa..f9a96078 100644 --- a/collections/NPPN_net_primary_production.yaml +++ b/collections/NPPN_net_primary_production.yaml @@ -27,10 +27,10 @@ Provider: Roles: - host Citation: - - Citation: Data from Ocean Productivity site (http://science.oregonstate.edu/ocean.productivity/index.php) - - Publication: - - Citation: "Behrenfeld, MJ, PG Falkowski - Limnology and Oceanography (1997a, Volume 42: 1-20); Photosynthetic rates derived from satellite-based chlorophyll concentration;" - DOI: 10.4319/lo.1997.42.1.0001 + Citation: Data from Ocean Productivity site (http://science.oregonstate.edu/ocean.productivity/index.php) + Publication: + - Citation: "Behrenfeld, MJ, PG Falkowski - Limnology and Oceanography (1997a, Volume 42: 1-20); Photosynthetic rates derived from satellite-based chlorophyll concentration;" + DOI: 10.4319/lo.1997.42.1.0001 Services: - Endpoint: https://services.sentinel-hub.com/api/v1/statistics Name: VEDA Statistics diff --git a/generators/generate_indicators.py b/generators/generate_indicators.py index 6352badf..e5aa42bc 100644 --- a/generators/generate_indicators.py +++ b/generators/generate_indicators.py @@ -638,15 +638,15 @@ def add_collection_information(config, collection, data): # Add extra fields to collection if available if "Themes" in data: - collection.extra_fields["themes"] = ",".join(data["Themes"]) + collection.extra_fields["themes"] = data["Themes"] if "Tags" in data: - collection.extra_fields["keywords"] = ",".join(data["Tags"]) + collection.extra_fields["keywords"] = data["Tags"] if "Satellite" in data: - collection.extra_fields["satellite"] = ",".join(data["Satellite"]) + collection.extra_fields["satellite"] = data["Satellite"] if "Sensor" in data: - collection.extra_fields["sensor"] = ",".join(data["Sensor"]) + collection.extra_fields["sensor"] = data["Sensor"] if "Agency" in data: - collection.extra_fields["agency"] = ",".join(data["Agency"]) + collection.extra_fields["agency"] = data["Agency"] def process_catalogs(folder_path, options):