| title | Weather Stations | Python Library |
|---|---|
| sidebar_label | Overview |
| id | python-stations-overview |
| slug | /python/stations |
| sidebar_position | 1 |
import DocCardList from '@theme/DocCardList'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Weather stations are the primary source of meteorological data for Meteostat. The Meteostat Python library provides access to a comprehensive database of weather stations worldwide, allowing users to retrieve station metadata and search for stations based on various criteria.
:::info
All meteostat.stations.* methods are using the Meteostat weather stations SQLite database. While this database can be loaded into memory, it is recommended to use the default on-disk database for most applications to conserve system memory.
:::
```python
import meteostat as ms
station = ms.stations.meta('72503') # LaGuardia Airport
print(station)
```
Learn more about station metadata in the [Meta Data](meta.md) chapter.
```python
import meteostat as ms
POINT = ms.Point(50.1155, 8.6842, 113) # Try with your location
# Get nearby weather stations
stations = ms.stations.nearby(POINT, limit=4)
print(stations)
```
Learn more about finding nearby stations in the [Nearby Stations](nearby.md) chapter.
```python
import meteostat as ms
STATION = '71624' # Toronto Pearson International Airport
# Get station inventory
inventory = ms.stations.inventory(STATION)
print(f"Data available from {inventory.start} to {inventory.end}.")
```
Learn more about station inventory in the [Inventory](inventory.md) chapter.