Skip to content

Commit

Permalink
Change parameter to covjson.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey-Vervoort-KNMI committed Mar 4, 2024
1 parent 8a3b259 commit 1e7f965
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/edr_pydantic/edr_feature_collection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Dict

from covjson_pydantic.parameter import Parameter # type: ignore
from edr_pydantic.base_model import EdrBaseModel
from edr_pydantic.parameter import Parameter
from geojson_pydantic import FeatureCollection # type: ignore


Expand Down
72 changes: 48 additions & 24 deletions tests/test_data/edr-geojson-feature-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,62 +26,86 @@
"parameters": {
"tx_dryb_10": {
"type": "Parameter",
"description": "Temperature, air, maximum, 10",
"description": {
"en": "Temperature, air, maximum, 10"
},
"observedProperty": {
"id": "https://vocab.nerc.ac.uk/standard_name/air_temperature",
"label": {
"en": "Air temperature maximum"
}
},
"unit": {
"label": "degree Celsius",
"label": {
"en": "degree Celsius"
},
"symbol": {
"value": "°C",
"type": "http://www.opengis.net/def/uom/UCUM/"
}
},
"observedProperty": {
"id": "https://vocab.nerc.ac.uk/standard_name/air_temperature",
"label": "Air temperature maximum"
}
},
"t_dewp_10": {
"type": "Parameter",
"description": "Temperature air dewpoint 10",
"description": {
"en": "Temperature air dewpoint 10"
},
"observedProperty": {
"id": "https://vocab.nerc.ac.uk/standard_name/dew_point_temperature",
"label": {
"en": "Dew Point Temperature"
}
},
"unit": {
"label": "degree Celsius",
"label": {
"en": "degree Celsius"
},
"symbol": {
"value": "°C",
"type": "http://www.opengis.net/def/uom/UCUM/"
}
},
"observedProperty": {
"id": "https://vocab.nerc.ac.uk/standard_name/dew_point_temperature",
"label": "Dew Point Temperature"
}
},
"sq_10": {
"type": "Parameter",
"description": "Sunshine duration, duration derived from radiation, 10",
"description": {
"en": "Sunshine duration, duration derived from radiation, 10"
},
"observedProperty": {
"id": "https://vocab.nerc.ac.uk/standard_name/duration_of_sunshine",
"label": {
"en": "Sunshine duration"
}
},
"unit": {
"label": "minute",
"label": {
"en": "minute"
},
"symbol": {
"value": "min",
"type": "http://www.opengis.net/def/uom/UCUM/"
}
},
"observedProperty": {
"id": "https://vocab.nerc.ac.uk/standard_name/duration_of_sunshine",
"label": "Sunshine duration"
}
},
"ff_10m_10": {
"type": "Parameter",
"description": "Wind, speed, average, converted to 10 metres, 10",
"description": {
"en": "Wind, speed, average, converted to 10 metres, 10"
},
"observedProperty": {
"id": "https://vocab.nerc.ac.uk/standard_name/wind_speed",
"label": {
"en": "wind_speed_10_mean_PT10M"
}
},
"unit": {
"label": "metre per second",
"label": {
"en": "metre per second"
},
"symbol": {
"value": "m/s",
"type": "http://www.opengis.net/def/uom/UCUM/"
}
},
"observedProperty": {
"id": "https://vocab.nerc.ac.uk/standard_name/wind_speed",
"label": "wind_speed_10_mean_PT10M"
}
}
}
Expand Down

0 comments on commit 1e7f965

Please sign in to comment.