wenn ich für die Luftqualität eine UBA Station verwende, kann es zu folgendem Verhalten kommen. Voraussetzung für meine Rückmeldung ist hier, dass ich dwd-mosmix Zeile 1765 richtig interpretiert habe und immer das letzte Element aus data für die jeweilige Station im UBA JSON benutzt wird.
Es ist tatsächlich so, dass der data Teil nicht (immer) aufsteigend nach Messdatum sortiert ist. Unten ein konkretes Beispiel von heute. Es werden dann durch dwd-mosmix "falsche" Ergebnisse erzeugt.
Hallo,
wenn ich für die Luftqualität eine UBA Station verwende, kann es zu folgendem Verhalten kommen. Voraussetzung für meine Rückmeldung ist hier, dass ich
dwd-mosmix
Zeile1765
richtig interpretiert habe und immer das letzte Element ausdata
für die jeweilige Station im UBA JSON benutzt wird.Es ist tatsächlich so, dass der
data
Teil nicht (immer) aufsteigend nach Messdatum sortiert ist. Unten ein konkretes Beispiel von heute. Es werden dann durchdwd-mosmix
"falsche" Ergebnisse erzeugt.Abfrage:
https://www.umweltbundesamt.de/api/air_data/v2/airquality/json?date_from=2023-02-06&date_to=2023-02-07&lang=de&station=509
Result (erst aufsteigend, im unteren Teil jedoch 2 Elemente mit vorhergehendem Zeitstempel):