12.6.0 • Published 6 months ago
@opengeoweb/soundings v12.6.0
Soundings
This library was generated with Nx.
Configuration for soundings EDR services
The sources that are available in the soundings sources menu are specified in the initialPresets.json file.
There, you can specify the required details for each source under the soundingsCollections property:
"soundingsCollections": [
{
"name": "Harmonie scandinavia hybrid",
"id": "harmonie_scandinavia_hybrid",
"url": "https://opendata.fmi.fi/edr",
"description": "MEPS/vertical coordinate model level",
"parameterMappings": {
"temperature": "temperature",
"windDirection": "winddirection",
"windSpeed": "windspeedms",
"pressure": "pressure",
"dewpoint": "dewpoint"
}
},
{
"name": "Harmonie scandinavia pressure",
"id": "harmonie_scandinavia_pressure",
"url": "https://opendata.fmi.fi/edr",
"description": "MEPS/vertical coordinate pressure",
"parameterMappings": {
"temperature": "temperature",
"windDirection": "winddirection",
"windSpeed": "windspeedms",
"pressure": "pressure",
"dewpoint": "dewpoint"
}
}
]Each source should have a name, id, source url and description and include parameter mappings telling the soundings API which EDR parameters to assign to which physical property.
The following mappings are needed:
- pressure
- temperature
- dewpoint (OR specificHumidity OR relativeHumidity, from which we can derive dewpoint in case it is not available)
- (windSpeed AND windDirection) OR (windU AND windV), either one of the two can be used
If your EDR parameter is called windSpeedInMS the mapping would be as follows: windSpeed: windSpeedInMS
Running unit tests
Run nx test soundings to execute the unit tests via Jest.