Skip to content

Commit

Permalink
testing wis2box metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
amilan17 committed Mar 1, 2024
1 parent 2048cb4 commit 98ed4f6
Show file tree
Hide file tree
Showing 2 changed files with 219 additions and 0 deletions.
109 changes: 109 additions & 0 deletions examples/wis2box-temp-invalid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"id": "urn:x-wmo:md:md-qc:surface-based-observations.temp",
"conformsTo": [
"http://wis.wmo.int/spec/wcmp/2.0"
],
"type": "Feature",
"wis2box": {
"topic_hierarchy": "md-qc.data.core.weather.surface-based-observations.temp",
"country": "CHE",
"centre_id": "md-qc"
},
"time": {
"interval": [
"2024-2-29",
"2024-3-2"
],
"resolution": "P12H"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-76.0033466,
1.3654691
],
[
-75.7569629,
1.3654691
],
[
-75.7569629,
1.0977792
],
[
-76.0033466,
1.0977792
],
[
-76.0033466,
1.3654691
]
]
]
},
"properties": {
"title": "Upper-level temperature/humidity/wind reports from fixed-land stations (TEMP) (md-qc)",
"description": "This is a test of the metadata editor for temp data. ",
"keywords": [
"upper air",
"humidity",
"wind",
"observations",
"test data"
],
"themes": [
{
"concepts": [
{
"title": "weather"
}
],
"scheme": [
"https://github.com/wmo-im/wis2-topic-hierarchy/blob/main/topic-hierarchy/earth-system-discipline/index.csv"
]
}
],
"contacts": [
{
"organization": "WMO",
"phones": [
{}
],
"emails": [
{
"value": "amilan@wmo.int"
}
],
"addresses": [
{
"country": "CHE"
}
],
"links": [
{}
],
"hoursOfService": "Hours: Mo-Fr 9am-5pm Sa 10am-5pm Su 10am-4pm",
"contactInstructions": "Email",
"roles": [
"host"
]
}
],
"updated": "2024-03-01T09:40:45.840Z",
"wmo:dataPolicy": "core"
},
"links": [
{
"rel": "collection",
"href": "undefined/oapi/collections/urn:x-wmo:md:md-qc:surface-based-observations.temp",
"title": "urn:x-wmo:md:md-qc:surface-based-observations.temp"
},
{
"rel": "canonical",
"href": "undefined/oapi/collections/discovery-metadata/items/urn:x-wmo:md:md-qc:surface-based-observations.temp",
"title": "urn:x-wmo:md:md-qc:surface-based-observations.temp"
}
]
}
110 changes: 110 additions & 0 deletions examples/wis2box-temp-valid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"id": "urn:x-wmo:md:md-qc:surface-based-observations.temp",
"conformsTo": [
"http://wis.wmo.int/spec/wcmp/2.0"
],
"type": "Feature",
"wis2box": {
"topic_hierarchy": "md-qc.data.core.weather.surface-based-observations.temp",
"country": "CHE",
"centre_id": "md-qc"
},
"time": {
"interval": [
"2024-02-29",
"2024-03-02"
],
"resolution": "P12H"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-76.0033466,
1.3654691
],
[
-75.7569629,
1.3654691
],
[
-75.7569629,
1.0977792
],
[
-76.0033466,
1.0977792
],
[
-76.0033466,
1.3654691
]
]
]
},
"properties": {
"type":"dataset",
"title": "Upper-level temperature/humidity/wind reports from fixed-land stations (TEMP) (md-qc)",
"description": "This is a test of the metadata editor for temp data. ",
"keywords": [
"upper air",
"humidity",
"wind",
"observations",
"test data"
],
"themes": [
{
"concepts": [
{
"title": "weather"
}
],
"scheme": [
"https://github.com/wmo-im/wis2-topic-hierarchy/blob/main/topic-hierarchy/earth-system-discipline/index.csv"
]
}
],
"contacts": [
{
"organization": "WMO",
"phones": [
{}
],
"emails": [
{
"value": "amilan@wmo.int"
}
],
"addresses": [
{
"country": "CHE"
}
],
"links": [
{}
],
"hoursOfService": "Hours: Mo-Fr 9am-5pm Sa 10am-5pm Su 10am-4pm",
"contactInstructions": "Email",
"roles": [
"host"
]
}
],
"created": "2024-03-01T09:40:45.840Z",
"wmo:dataPolicy": "core"
},
"links": [
{
"rel": "collection",
"href": "undefined/oapi/collections/urn:x-wmo:md:md-qc:surface-based-observations.temp",
"title": "urn:x-wmo:md:md-qc:surface-based-observations.temp"
},
{
"rel": "canonical",
"href": "undefined/oapi/collections/discovery-metadata/items/urn:x-wmo:md:md-qc:surface-based-observations.temp",
"title": "urn:x-wmo:md:md-qc:surface-based-observations.temp"
}
]
}

0 comments on commit 98ed4f6

Please sign in to comment.