meteostat / meteostat-python

Access and analyze historical weather and climate data with Python.
https://dev.meteostat.net/python/
MIT License
425 stars 60 forks source link

stations.region() does not return every station for a specific region #59

Closed FGFischer closed 3 years ago

FGFischer commented 3 years ago

Hello,

I currently am switching from bulkdownloads to meteostat and it makes life much easier. Unfortunately i encountered a small issue by accident.

If i use the .region-Function the state "Nordrhein-Westfalen" has 4 Stations. `from meteostat import Stations

stations = Stations() stations = stations.region('DE', 'NW') print(stations.count()) `

by plotting the stations, combined with a shapefile of the region it looks like this. grafik

In comparison i plotted Germany, again with the data i got via .regions-Function and NW has more than 4 Stations. `from meteostat import Stations

stations = Stations() stations = stations.region('DE', None) print(stations.count()) ` grafik Edit: highlighted the state by removing the other states.

clampr commented 3 years ago

Thanks, good finding @FGFischer! I checked and it seems like most weather stations in NW are labeled with NT for some reason. I will fix this in http://github.com/meteostat/weather-stations ASAP.

clampr commented 3 years ago

I updated the stations. Should be live within a few hours. 😉