Skip to content

Commit

Permalink
add daycli template to wis2box-webapp (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper authored Oct 1, 2024
1 parent d533a4f commit 66fc587
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/plugins/plugin-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
45 changes: 45 additions & 0 deletions src/templates/daycli-template.json
Original file line number Diff line number Diff line change
@@ -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$"
}
]
}
}
}
}

0 comments on commit 66fc587

Please sign in to comment.