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

Getting data for a list of N closest stations #25

Closed
antjefitzner opened this issue Apr 27, 2020 · 3 comments
Closed

Getting data for a list of N closest stations #25

antjefitzner opened this issue Apr 27, 2020 · 3 comments

Comments

@antjefitzner
Copy link

antjefitzner commented Apr 27, 2020

Hi,

I want to get a list of the x nearest stations (and not just the closest). How can I do this? It seems in the command line this is possible, but I am using the library. Am I missing it or is it not possible yet?

Just some context: I want to get the e.g. 3 closest stations that have data for e.g. wind speed around a given point.

TIA
Antje

@amotl amotl changed the title Getting station list Getting data for a list of N closest stations Jun 3, 2020
@amotl
Copy link
Member

amotl commented Jun 3, 2020

Dear Antje,

thanks for writing in. Your request sounds familiar. See also #3, #14 and #16 which might help you along. Please let me know about the outcome for you.

With kind regards,
Andreas.

@antjefitzner
Copy link
Author

antjefitzner commented Jun 3, 2020

Hi Andreas,

my colleague actually looked it up in your code. Adding "surrounding" worked like:

closest_stations = dwd.nearest_station(lon=longitude, lat=latitude, surrounding=radius)

@amotl
Copy link
Member

amotl commented Jul 5, 2020

Dear Antje,

thanks! I also would like to note that Wetterdienst also provides this feature through both earthobservations/wetterdienst#23 and earthobservations/wetterdienst#99.

With kind regards,
Andreas.

cc @JohannesRol, @stianchris, @ugur175, @meteoDaniel, @gutzbenj

@amotl amotl closed this as completed Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants