diff --git a/public/plugins/plugin-list.json b/public/plugins/plugin-list.json index a8c7ff2..49e3c8a 100644 --- a/public/plugins/plugin-list.json +++ b/public/plugins/plugin-list.json @@ -52,7 +52,8 @@ ], "templates": [ { "title": "AWS", "id": "aws-template" }, - { "title": "WIS2-pilot-template-2021", "id": "CampbellAfrica-v1-template" } + { "title": "WIS2-pilot-template-2021", "id": "CampbellAfrica-v1-template" }, + { "title": "DayCLI", "id": "daycli-template" } ], "buckets": [ { "title": "Incoming", "id": "wis2box-incoming" }, diff --git a/src/templates/daycli-template.json b/src/templates/daycli-template.json new file mode 100644 index 0000000..faaf563 --- /dev/null +++ b/src/templates/daycli-template.json @@ -0,0 +1,45 @@ +{ + "label": "climate/surface-based-observations/daily", + "title": "Daily values from land stations (DAYCLI) ($CENTRE_ID)", + "identifier": "urn:wmo:md:$CENTRE_ID:$DATA_POLICY.climate.surface.daily", + "topicHierarchy": "$CENTRE_ID/data/$DATA_POLICY/climate/surface-based-observations/daily", + "language": "en", + "resolution": "P1H", + "keywords": [ + "climate", + "temperature", + "precipitation", + "snow depth", + "daycli" + ], + "themes": [ + { + "concepts": [{ "id": "climate", "label": "climate" }], + "scheme": "http://codes.wmo.int/wis/topic-hierarchy/earth-system-discipline" + } + ], + "wis2box": { + "retention": "P30D", + "topic_hierarchy": "$CENTRE_ID.data.core.climate.surface-based-observations.daycli", + "data_mappings": { + "plugins": { + "csv": [ + { + "plugin": "wis2box.data.csv2bufr.ObservationDataCSV2BUFR", + "template": "daycli-template", + "notify": true, + "buckets": ["wis2box-incoming"], + "file-pattern": "^.*\\.csv$" + } + ], + "bufr4": [ + { + "plugin": "wis2box.data.bufr2geojson.ObservationDataBUFR2GeoJSON", + "buckets": ["wis2box-public"], + "file-pattern": "^WIGOS_(\\d-\\d+-\\d+-\\w+)_.*\\.bufr4$" + } + ] + } + } + } +}