bczernecki / climate

The R climate package: an interface for downloading in-situ meteorological (and hydrological) dataset
https://bczernecki.github.io/climate/
Other
71 stars 19 forks source link

Error occurs Downloading OGIMet Stations for Luxembourg #93

Closed BGWKlein closed 2 months ago

BGWKlein commented 3 months ago

When I try to download the OGIMET Stations of Luxembourg climate::stations_ogimet(country = "Luxembourg") an error occurs. The reason is that only one station is available in Luxembourg.

Possible solution for this problem: https://github.com/bczernecki/climate/blob/master/R/stations_ogimet.R line 90 res1 = res[, c(1, 3, 5:7), drop = FALSE] instead of res1 = res[, c(1, 3, 5:7)]

bczernecki commented 3 months ago

Thanks for the feedback! Indeed, for Luxembourg there's only 1 station and thus metadata are converted from matrix into vector. It is now addressed in https://github.com/bczernecki/climate/pull/86 and should merged onto master branch soon