-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort station observations at lower layer; Add latest observation (#72)
* Sort station observations to work around bug weather-gov/api#474 * Fix exception with invalid data * Add method to retrieve the latest station observation * Added missing file and fixed black complaints * Sort observations in descending order * Remove duplicate sort of observation values * Merge debugging logic into raw_stations_observations_latest
- Loading branch information
Showing
9 changed files
with
213 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
{ | ||
"@context": [ | ||
"https://geojson.org/geojson-ld/geojson-context.jsonld", | ||
{ | ||
"@version": "1.1", | ||
"wx": "https://api.weather.gov/ontology#", | ||
"s": "https://schema.org/", | ||
"geo": "http://www.opengis.net/ont/geosparql#", | ||
"unit": "http://codes.wmo.int/common/unit/", | ||
"@vocab": "https://api.weather.gov/ontology#", | ||
"geometry": { | ||
"@id": "s:GeoCoordinates", | ||
"@type": "geo:wktLiteral" | ||
}, | ||
"city": "s:addressLocality", | ||
"state": "s:addressRegion", | ||
"distance": { | ||
"@id": "s:Distance", | ||
"@type": "s:QuantitativeValue" | ||
}, | ||
"bearing": { | ||
"@type": "s:QuantitativeValue" | ||
}, | ||
"value": { | ||
"@id": "s:value" | ||
}, | ||
"unitCode": { | ||
"@id": "s:unitCode", | ||
"@type": "@id" | ||
}, | ||
"forecastOffice": { | ||
"@type": "@id" | ||
}, | ||
"forecastGridData": { | ||
"@type": "@id" | ||
}, | ||
"publicZone": { | ||
"@type": "@id" | ||
}, | ||
"county": { | ||
"@type": "@id" | ||
} | ||
} | ||
], | ||
"id": "https://api.weather.gov/stations/KFLL/observations/2022-03-02T23:53:00+00:00", | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-80.150000000000006, | ||
26.07 | ||
] | ||
}, | ||
"properties": { | ||
"@id": "https://api.weather.gov/stations/KFLL/observations/2022-03-02T23:53:00+00:00", | ||
"@type": "wx:ObservationStation", | ||
"elevation": { | ||
"unitCode": "wmoUnit:m", | ||
"value": 3 | ||
}, | ||
"station": "https://api.weather.gov/stations/KFLL", | ||
"timestamp": "2022-03-02T23:53:00+00:00", | ||
"rawMessage": "KFLL 022353Z 02004KT 10SM FEW026 BKN055 23/18 A3008 RMK AO2 SLP187 60000 T02280183 10244 20228 53008 $", | ||
"textDescription": "Mostly Cloudy", | ||
"icon": "https://api.weather.gov/icons/land/night/bkn?size=medium", | ||
"presentWeather": [], | ||
"temperature": { | ||
"unitCode": "wmoUnit:degC", | ||
"value": 22.800000000000001, | ||
"qualityControl": "V" | ||
}, | ||
"dewpoint": { | ||
"unitCode": "wmoUnit:degC", | ||
"value": 18.300000000000001, | ||
"qualityControl": "V" | ||
}, | ||
"windDirection": { | ||
"unitCode": "wmoUnit:degree_(angle)", | ||
"value": 20, | ||
"qualityControl": "V" | ||
}, | ||
"windSpeed": { | ||
"unitCode": "wmoUnit:km_h-1", | ||
"value": 7.5599999999999996, | ||
"qualityControl": "V" | ||
}, | ||
"windGust": { | ||
"unitCode": "wmoUnit:km_h-1", | ||
"value": null, | ||
"qualityControl": "Z" | ||
}, | ||
"barometricPressure": { | ||
"unitCode": "wmoUnit:Pa", | ||
"value": 101860, | ||
"qualityControl": "V" | ||
}, | ||
"seaLevelPressure": { | ||
"unitCode": "wmoUnit:Pa", | ||
"value": 101870, | ||
"qualityControl": "V" | ||
}, | ||
"visibility": { | ||
"unitCode": "wmoUnit:m", | ||
"value": 16090, | ||
"qualityControl": "C" | ||
}, | ||
"maxTemperatureLast24Hours": { | ||
"unitCode": "wmoUnit:degC", | ||
"value": null | ||
}, | ||
"minTemperatureLast24Hours": { | ||
"unitCode": "wmoUnit:degC", | ||
"value": null | ||
}, | ||
"precipitationLastHour": { | ||
"unitCode": "wmoUnit:m", | ||
"value": null, | ||
"qualityControl": "Z" | ||
}, | ||
"precipitationLast3Hours": { | ||
"unitCode": "wmoUnit:m", | ||
"value": null, | ||
"qualityControl": "Z" | ||
}, | ||
"precipitationLast6Hours": { | ||
"unitCode": "wmoUnit:m", | ||
"value": 0, | ||
"qualityControl": "C" | ||
}, | ||
"relativeHumidity": { | ||
"unitCode": "wmoUnit:percent", | ||
"value": 75.770935807607003, | ||
"qualityControl": "V" | ||
}, | ||
"windChill": { | ||
"unitCode": "wmoUnit:degC", | ||
"value": null, | ||
"qualityControl": "V" | ||
}, | ||
"heatIndex": { | ||
"unitCode": "wmoUnit:degC", | ||
"value": 23.11401887942111, | ||
"qualityControl": "V" | ||
}, | ||
"cloudLayers": [ | ||
{ | ||
"base": { | ||
"unitCode": "wmoUnit:m", | ||
"value": 790 | ||
}, | ||
"amount": "FEW" | ||
}, | ||
{ | ||
"base": { | ||
"unitCode": "wmoUnit:m", | ||
"value": 1680 | ||
}, | ||
"amount": "BKN" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters