meteostat.stations.nearby
Find weather stations near a geographical point.
- Type: Method of
meteostat.stations - Source Code: GitHub
Parameters
| Parameter | Description | Data Type | Default Value |
|---|---|---|---|
point | Geographical point specifying latitude and longitude | Point | Required |
radius | Search radius in meters | int | 50000 (50 km) |
limit | Maximum number of stations to return | int | 100 |
Returns
A DataFrame containing nearby stations sorted by distance.
Example
import meteostat as ms
# Create a geographical point
POINT = ms.Point(50.1155, 8.6842, 113) # Frankfurt, Germany
# Get nearby weather stations
stations = ms.stations.nearby(POINT, limit=4)
print(stations)