Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot error #26

Closed
fipoucat opened this issue Feb 13, 2020 · 3 comments
Closed

plot error #26

fipoucat opened this issue Feb 13, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@fipoucat
Copy link

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",

  •                     date = Sys.Date(),
    
  •                     add_map = TRUE,
    
  •                     point = c(-16, 15),
    
  •                     no_of_stations = 100
    
  • )
    Error in plot.window(...) : need finite 'xlim' values

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

@bczernecki
Copy link
Owner

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 )

@bczernecki bczernecki added the bug Something isn't working label Feb 13, 2020
@fipoucat
Copy link
Author

Thank you,worked.
Really great.

@bczernecki
Copy link
Owner

bug fixed in climate 0.9.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants