bczernecki / climate

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

plot error #26

Closed fipoucat closed 4 years ago

fipoucat commented 4 years ago

Thank for this useful package, trying to replicate your example station from UK on my country but get error and wonder why?: nearest_stations_ogimet(country = "Senegal",

Another question, is it possible to add another country like Gambia which is within Senegal?

bczernecki commented 4 years ago

Thanks for the feedback! The error is caused by too many stations chosen. Please change the argument add_map = FALSE to see how many stations are available. I will add this improvement in the next package release.

This code below show work if you decrease number of stations to e.g. 10:

nearest_stations_ogimet(country = "Senegal", date = Sys.Date(), add_map = T, point = c(-16, 15), no_of_stations = 10)

If you want to retrieve data for Gambia you can use one of those stations:

nearest_stations_ogimet(country = "Gamb", date = Sys.Date(), add_map = F, point = c(-16, 15), no_of_stations = 4 )

fipoucat commented 4 years ago

Thank you,worked. Really great.

bczernecki commented 4 years ago

bug fixed in climate 0.9.2.