# Finding Weather Stations

Before you can download weather data, you need to know the station ID. weathervault provides several functions to help you discover weather stations.


# Station Metadata

The [get_station_metadata()](../reference/get_station_metadata.md#weathervault.get_station_metadata) function returns information about all weather stations in the ISD network:


``` python
import weathervault as wv

# Get metadata for all stations
stations = wv.get_station_metadata()
stations
```


shape: (29_661, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "007018-99999" | "007018" | "99999" | "WXPOD 7018" | null | null | "" | "" | 0.0 | 0.0 | 7018.0 | 2011-03-09 | 2013-07-30 | "Etc/GMT" |
| "007026-99999" | "007026" | "99999" | "WXPOD 7026" | "AF" | "Afghanistan" | "" | "" | 0.0 | 0.0 | 7026.0 | 2012-07-13 | 2017-08-22 | "Etc/GMT" |
| "007070-99999" | "007070" | "99999" | "WXPOD 7070" | "AF" | "Afghanistan" | "" | "" | 0.0 | 0.0 | 7070.0 | 2014-09-23 | 2015-09-26 | "Etc/GMT" |
| "008260-99999" | "008260" | "99999" | "WXPOD8270" | null | null | "" | "" | 0.0 | 0.0 | 0.0 | 2005-01-01 | 2012-07-31 | "Etc/GMT" |
| "008268-99999" | "008268" | "99999" | "WXPOD8278" | "AF" | "Afghanistan" | "" | "" | 32.95 | 65.567 | 1156.7 | 2010-05-19 | 2012-03-23 | "Asia/Kabul" |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| "A07355-00241" | "A07355" | "00241" | "VIROQUA MUNICIPAL AIRPORT" | "US" | "United States" | "WI" | "KY51" | 43.579 | -90.913 | 394.1 | 2014-07-31 | 2025-08-25 | "America/Chicago" |
| "A07357-00182" | "A07357" | "00182" | "ELBOW LAKE MUNICIPAL PRIDE OF … | "US" | "United States" | "MN" | "KY63" | 45.986 | -95.992 | 367.3 | 2014-07-31 | 2025-08-25 | "America/Chicago" |
| "A07359-00240" | "A07359" | "00240" | "IONIA COUNTY AIRPORT" | "US" | "United States" | "MI" | "KY70" | 42.938 | -85.061 | 249.0 | 2014-07-31 | 2025-08-25 | "America/Detroit" |
| "A51255-00445" | "A51255" | "00445" | "DEMOPOLIS MUNICIPAL AIRPORT" | "US" | "United States" | "AL" | "KDYA" | 32.464 | -87.954 | 34.1 | 2014-07-31 | 2025-08-26 | "America/Chicago" |
| "A51256-00451" | "A51256" | "00451" | "BRANSON WEST MUNICIPAL EMERSON… | "US" | "United States" | "MO" | "KFWB" | 36.699 | -93.402 | 411.2 | 2014-07-31 | 2025-08-25 | "America/Chicago" |


The returned DataFrame contains:

- `id` - Station identifier in USAF-WBAN format
- `usaf` - USAF station number
- `wban` - WBAN station number
- `name` - Station name
- `country_code` - FIPS country code
- [country](../reference/country.md#weathervault.country) - Country name
- [state](../reference/state.md#weathervault.state) - State/province (US/CA stations)
- `icao` - ICAO airport code (if applicable)
- `lat`, `lon` - Station coordinates
- `elev` - Elevation in meters
- `begin_date`, `end_date` - Period of record
- `tz_name` - IANA timezone name


# Searching for Stations

The [search_stations()](../reference/search_stations.md#weathervault.search_stations) function lets you filter stations by various criteria:


## By Country

Use the convenient `wv.country` shorthand for clean, readable code with IDE autocomplete:


``` python
# Find all stations in Germany
de_stations = wv.search_stations(country_code=wv.country.DE)
de_stations
```


shape: (503, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "090910-99999" | "090910" | "99999" | "ARKONA (CAPE)     &" | "DE" | "Germany" | "" | "" | 54.683 | 13.433 | 42.0 | 1975-07-01 | 2002-07-29 | "Europe/Berlin" |
| "090930-99999" | "090930" | "99999" | "BOGUS GERMAN" | "DE" | "Germany" | "" | "" | null | null | null | 1990-12-03 | 1991-10-31 | null |
| "091610-99999" | "091610" | "99999" | "BOLTENHAGEN       &" | "DE" | "Germany" | "" | "" | 54.0 | 11.2 | 15.0 | 1975-07-01 | 1991-10-31 | "Europe/Berlin" |
| "091620-99999" | "091620" | "99999" | "SCHWERIN          &" | "DE" | "Germany" | "" | "" | 53.633 | 11.417 | 59.0 | 1975-07-01 | 1992-05-17 | "Europe/Berlin" |
| "091680-99999" | "091680" | "99999" | "BOGUS GERMAN" | "DE" | "Germany" | "" | "" | null | null | null | 1990-12-03 | 1991-10-30 | null |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| "119060-99999" | "119060" | "99999" | "LEST" | "DE" | "Germany" | "" | "" | 48.35 | 19.317 | 720.0 | 1952-11-06 | 1953-12-31 | "Europe/Bratislava" |
| "693664-99999" | "693664" | "99999" | "COTTBUS DREWITZ" | "DE" | "Germany" | "" | "EDCD" | 51.889 | 14.532 | 83.5 | 1981-01-15 | 1990-12-14 | "Europe/Berlin" |
| "749520-99999" | "749520" | "99999" | "SOSSENHEIM" | "DE" | "Germany" | "" | "" | 50.133 | 8.583 | 130.0 | 1946-08-31 | 1947-02-14 | "Europe/Berlin" |
| "749538-99999" | "749538" | "99999" | "OBERPFAFFENHOFEN GERMANY AD" | "DE" | "Germany" | "" | "" | 48.083 | 11.266 | 580.0 | 1946-08-14 | 1949-07-31 | "Europe/Berlin" |
| "999999-34196" | "999999" | "34196" | "GABLINGEN" | "DE" | "Germany" | "" | "EDOX" | 48.45 | 10.867 | 466.0 | 1963-09-10 | 1967-12-29 | "Europe/Berlin" |


You can also search by country name:


``` python
# Find stations in Japan
japan_stations = wv.search_stations(country="Japan")
japan_stations
```


shape: (424, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "472020-99999" | "472020" | "99999" | "NAYORO-ON-HOKKAIDO" | "JP" | "Japan" | "" | "" | 44.367 | 142.467 | 89.0 | 1973-01-01 | 1978-08-04 | "Asia/Tokyo" |
| "472025-99999" | "472025" | "99999" | "RISHIRI" | "JP" | "Japan" | "" | "RJER" | 45.242 | 141.186 | 34.1 | 1975-05-21 | 1997-12-31 | "Asia/Tokyo" |
| "472050-99999" | "472050" | "99999" | "ISHIKARINUMATA" | "JP" | "Japan" | "" | "" | 43.8 | 141.95 | 63.0 | 1973-01-01 | 2002-06-02 | "Asia/Tokyo" |
| "472070-99999" | "472070" | "99999" | "TAKIKAWA" | "JP" | "Japan" | "" | "" | 43.567 | 141.95 | 48.0 | 1973-01-02 | 2001-10-01 | "Asia/Tokyo" |
| "472130-99999" | "472130" | "99999" | "FURANO-ON-HOKKAIDO" | "JP" | "Japan" | "" | "" | 43.333 | 142.4 | 174.0 | 1973-01-01 | 1978-04-22 | "Asia/Tokyo" |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| "999999-43321" | "999999" | "43321" | "KISARAZU" | "JP" | "Japan" | "" | "RJTK" | 35.383 | 139.917 | 6.1 | 1952-07-25 | 1959-03-31 | "Asia/Tokyo" |
| "999999-43322" | "999999" | "43322" | "IWAKUNI" | "JP" | "Japan" | "" | "RIWA" | 34.15 | 132.233 | 3.0 | 1952-10-31 | 1954-09-15 | "Asia/Tokyo" |
| "999999-43323" | "999999" | "43323" | "YOKOSUKA" | "JP" | "Japan" | "" | "RJTX" | 35.283 | 139.667 | 53.0 | 1953-02-28 | 1976-12-31 | "Asia/Tokyo" |
| "999999-43324" | "999999" | "43324" | "IWAKUNI" | "JP" | "Japan" | "" | "RJOI" | 34.15 | 132.233 | 3.0 | 1952-10-31 | 1972-12-31 | "Asia/Tokyo" |
| "999999-43325" | "999999" | "43325" | "KASTNER AAF" | "JP" | "Japan" | "" | "RJTW" | 35.517 | 139.4 | 107.0 | 1954-12-30 | 1970-12-31 | "Asia/Tokyo" |


## By US State

For US stations, use the `wv.state` shorthand:


``` python
# Find stations in California
ca_stations = wv.search_stations(state=wv.state.CA)
ca_stations
```


shape: (499, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "690020-93218" | "690020" | "93218" | "JOLON HUNTER LIGGETT MIL RES" | "US" | "United States" | "CA" | "KHGT" | 36.0 | -121.233 | 317.0 | 1964-07-15 | 1997-04-01 | "America/Los_Angeles" |
| "690020-99999" | "690020" | "99999" | "JOLON HUNTER LIGGETT MIL RES" | "US" | "United States" | "CA" | "KHGT" | 36.0 | -121.233 | 317.0 | 2003-07-02 | 2003-08-01 | "America/Los_Angeles" |
| "690070-93217" | "690070" | "93217" | "FRITZSCHE AAF" | "US" | "United States" | "CA" | "KOAR" | 36.683 | -121.767 | 43.0 | 1960-04-04 | 1993-08-31 | "America/Los_Angeles" |
| "690080-99999" | "690080" | "99999" | "TARIN KOWT" | "AF" | "Afghanistan" | "CA" | "KQA7" | 32.6 | 65.87 | 1380.0 | 2003-06-16 | 2003-06-24 | "Asia/Kabul" |
| "690140-93101" | "690140" | "93101" | "EL TORO MCAS" | "US" | "United States" | "CA" | "KNZJ" | 33.667 | -117.733 | 116.7 | 1989-01-01 | 1997-12-31 | "America/Los_Angeles" |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| "999999-93243" | "999999" | "93243" | "MERCED 23 WSW" | "US" | "United States" | "CA" | "" | 37.238 | -120.883 | 23.8 | 2004-03-25 | 2025-08-28 | "America/Los_Angeles" |
| "999999-93245" | "999999" | "93245" | "BODEGA 6 WSW" | "US" | "United States" | "CA" | "" | 38.321 | -123.075 | 19.2 | 2008-06-14 | 2025-08-28 | "America/Los_Angeles" |
| "A06854-00115" | "A06854" | "00115" | "BIG BEAR CITY AIRPORT" | "US" | "United States" | "CA" | "KL35" | 34.264 | -116.854 | 2057.1 | 2014-07-31 | 2025-08-25 | "America/Los_Angeles" |
| "A07049-00320" | "A07049" | "00320" | "PETALUMA MUNICIPAL AIRPORT" | "US" | "United States" | "CA" | "KO69" | 38.25 | -122.6 | 27.1 | 2014-07-31 | 2025-08-25 | "America/Los_Angeles" |
| "A07053-00346" | "A07053" | "00346" | "TRINITY CENTER AIRPORT" | "US" | "United States" | "CA" | "KO86" | 40.983 | -122.694 | 728.2 | 2014-07-31 | 2025-08-25 | "America/Los_Angeles" |


Multiple states can be searched at once:


``` python
# Find stations in California
california = wv.search_stations(state=wv.state.CA)
california
```


shape: (499, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "690020-93218" | "690020" | "93218" | "JOLON HUNTER LIGGETT MIL RES" | "US" | "United States" | "CA" | "KHGT" | 36.0 | -121.233 | 317.0 | 1964-07-15 | 1997-04-01 | "America/Los_Angeles" |
| "690020-99999" | "690020" | "99999" | "JOLON HUNTER LIGGETT MIL RES" | "US" | "United States" | "CA" | "KHGT" | 36.0 | -121.233 | 317.0 | 2003-07-02 | 2003-08-01 | "America/Los_Angeles" |
| "690070-93217" | "690070" | "93217" | "FRITZSCHE AAF" | "US" | "United States" | "CA" | "KOAR" | 36.683 | -121.767 | 43.0 | 1960-04-04 | 1993-08-31 | "America/Los_Angeles" |
| "690080-99999" | "690080" | "99999" | "TARIN KOWT" | "AF" | "Afghanistan" | "CA" | "KQA7" | 32.6 | 65.87 | 1380.0 | 2003-06-16 | 2003-06-24 | "Asia/Kabul" |
| "690140-93101" | "690140" | "93101" | "EL TORO MCAS" | "US" | "United States" | "CA" | "KNZJ" | 33.667 | -117.733 | 116.7 | 1989-01-01 | 1997-12-31 | "America/Los_Angeles" |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| "999999-93243" | "999999" | "93243" | "MERCED 23 WSW" | "US" | "United States" | "CA" | "" | 37.238 | -120.883 | 23.8 | 2004-03-25 | 2025-08-28 | "America/Los_Angeles" |
| "999999-93245" | "999999" | "93245" | "BODEGA 6 WSW" | "US" | "United States" | "CA" | "" | 38.321 | -123.075 | 19.2 | 2008-06-14 | 2025-08-28 | "America/Los_Angeles" |
| "A06854-00115" | "A06854" | "00115" | "BIG BEAR CITY AIRPORT" | "US" | "United States" | "CA" | "KL35" | 34.264 | -116.854 | 2057.1 | 2014-07-31 | 2025-08-25 | "America/Los_Angeles" |
| "A07049-00320" | "A07049" | "00320" | "PETALUMA MUNICIPAL AIRPORT" | "US" | "United States" | "CA" | "KO69" | 38.25 | -122.6 | 27.1 | 2014-07-31 | 2025-08-25 | "America/Los_Angeles" |
| "A07053-00346" | "A07053" | "00346" | "TRINITY CENTER AIRPORT" | "US" | "United States" | "CA" | "KO86" | 40.983 | -122.694 | 728.2 | 2014-07-31 | 2025-08-25 | "America/Los_Angeles" |


## By Geographic Bounding Box

Search for stations within a latitude/longitude range:


``` python
# Find stations in the New York City area
nyc_stations = wv.search_stations(
    lat_range=(40.5, 41.0),
    lon_range=(-74.5, -73.5)
)
nyc_stations
```


shape: (34, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "720553-99999" | "720553" | "99999" | "PORT AUTH DOWNTN MANHATTAN WAL… | "US" | "United States" | "NY" | "KJRB" | 40.701 | -74.009 | 2.1 | 2016-07-20 | 2025-08-24 | "America/New_York" |
| "720581-00178" | "720581" | "00178" | "LINDEN AIRPORT" | "US" | "United States" | "NJ" | "KLDJ" | 40.617 | -74.25 | 7.0 | 2017-01-01 | 2025-08-25 | "America/New_York" |
| "720581-99999" | "720581" | "99999" | "LINDEN" | "US" | "United States" | "NJ" | "KLDJ" | 40.617 | -74.245 | 7.0 | 2008-07-21 | 2016-12-31 | "America/New_York" |
| "724094-54743" | "724094" | "54743" | "ESSEX COUNTY AIRPORT" | "US" | "United States" | "NJ" | "KCDW" | 40.876 | -74.283 | 52.0 | 2006-01-01 | 2025-08-27 | "America/New_York" |
| "724094-99999" | "724094" | "99999" | "ESSEX CO" | "US" | "United States" | "NJ" | "KCDW" | 40.883 | -74.283 | 53.0 | 1981-08-05 | 1997-12-31 | "America/New_York" |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| "999999-14734" | "999999" | "14734" | "NEWARK INTERNATIONAL ARPT" | "US" | "United States" | "NJ" | "KEWR" | 40.683 | -74.169 | 9.1 | 1948-01-01 | 1972-12-31 | "America/New_York" |
| "999999-14786" | "999999" | "14786" | "NEW YORK FLOYD BENNE" | "US" | "United States" | "NY" | "NSC" | 40.583 | -73.883 | 4.9 | 1945-04-01 | 1970-11-01 | "America/New_York" |
| "999999-94728" | "999999" | "94728" | "NEW YORK CENTRAL PARK" | "US" | "United States" | "NY" | "KNYC" | 40.779 | -73.969 | 47.5 | 1965-01-01 | 1997-12-31 | "America/New_York" |
| "999999-94741" | "999999" | "94741" | "TETERBORO AIRPORT" | "US" | "United States" | "NJ" | "KTEB" | 40.85 | -74.061 | 2.1 | 1947-01-01 | 1961-10-01 | "America/New_York" |
| "999999-94789" | "999999" | "94789" | "NEW YORK FORT TOTTEN" | "US" | "United States" | "NY" | "KJFK" | 40.639 | -73.762 | 6.7 | 1948-07-01 | 1972-12-31 | "America/New_York" |


This is useful for: - Finding all stations in a specific region - Identifying nearby stations for spatial analysis - Creating regional datasets


## By Station Name

Search by station name (case-insensitive, partial matching):


``` python
# Find Tokyo International Airport
tokyo_airports = wv.search_stations(name="tokyo international")
tokyo_airports
```


shape: (0, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |


``` python
# Find all "LaGuardia" stations
lga = wv.search_stations(name="laguardia")
lga
```


shape: (1, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "999999-14732" | "999999" | "14732" | "NEW YORK LAGUARDIA ARPT" | "US" | "United States" | "NY" | "KLGA" | 40.779 | -73.88 | 9.4 | 1948-07-01 | 1972-12-31 | "America/New_York" |


## Combined Searches

You can combine multiple search criteria:


``` python
# Find California airports with "international" in the name
ca_intl_airports = wv.search_stations(
    state=wv.state.CA,
    name="international"
)
ca_intl_airports
```


shape: (7, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "722866-23122" | "722866" | "23122" | "SAN BERNARDINO INTERNATIONAL A… | "US" | "United States" | "CA" | "KSBD" | 34.095 | -117.235 | 353.3 | 1943-01-06 | 1993-10-30 | "America/Los_Angeles" |
| "722900-23188" | "722900" | "23188" | "SAN DIEGO INTERNATIONAL AIRPOR… | "US" | "United States" | "CA" | "KSAN" | 32.734 | -117.183 | 4.6 | 1942-01-01 | 2025-08-27 | "America/Los_Angeles" |
| "722950-23174" | "722950" | "23174" | "LOS ANGELES INTERNATIONAL AIRP… | "US" | "United States" | "CA" | "KLAX" | 33.938 | -118.387 | 29.7 | 1944-01-01 | 2025-08-27 | "America/Los_Angeles" |
| "723890-93193" | "723890" | "93193" | "FRESNO YOSEMITE INTERNATIONAL … | "US" | "United States" | "CA" | "KFAT" | 36.78 | -119.72 | 101.9 | 1941-12-04 | 2025-08-27 | "America/Los_Angeles" |
| "724940-23234" | "724940" | "23234" | "SAN FRANCISCO INTERNATIONAL AI… | "US" | "United States" | "CA" | "KSFO" | 37.62 | -122.366 | 3.2 | 1973-01-01 | 2025-08-27 | "America/Los_Angeles" |
| "747040-03102" | "747040" | "03102" | "ONTARIO INTERNATIONAL ARPT" | "US" | "United States" | "CA" | "KONT" | 34.053 | -117.577 | 281.6 | 2005-01-01 | 2025-08-27 | "America/Los_Angeles" |
| "999999-03102" | "999999" | "03102" | "ONTARIO INTERNATIONAL ARPT" | "US" | "United States" | "CA" | "KONT" | 34.056 | -117.6 | 275.8 | 1968-01-01 | 2004-12-31 | "America/Los_Angeles" |


``` python
# Find German stations in a specific region
region_de = wv.search_stations(
    country_code=wv.country.DE,
    lat_range=(50.0, 52.0),
    lon_range=(8.0, 10.0)
)
region_de
```


shape: (41, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "103193-99999" | "103193" | "99999" | "PADERBORN/LIPPSTAD&" | "DE" | "Germany" | "" | "" | 51.617 | 8.617 | 217.0 | 1987-03-02 | 1988-10-26 | "Europe/Berlin" |
| "103200-99999" | "103200" | "99999" | "GUTERSLOH" | "DE" | "Germany" | "" | "ETUO" | 51.923 | 8.306 | 71.9 | 1937-05-03 | 1997-12-19 | "Europe/Berlin" |
| "103280-99999" | "103280" | "99999" | "DETMOLD (UK-ARMY)" | "DE" | "Germany" | "" | "" | 51.95 | 8.9 | 189.0 | 1936-03-02 | 2001-07-07 | "Europe/Berlin" |
| "104260-99999" | "104260" | "99999" | "PADERBORN LIPPSTADT" | "DE" | "Germany" | "" | "EDLP" | 51.614 | 8.616 | 213.1 | 1938-11-04 | 2025-08-24 | "Europe/Berlin" |
| "104264-99999" | "104264" | "99999" | "SOEST (UK-ARMY)" | "DE" | "Germany" | "" | "" | 51.583 | 8.217 | 125.0 | 1983-04-06 | 1990-04-03 | "Europe/Berlin" |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| "106405-99999" | "106405" | "99999" | "MAURICE ROSE(USAHP)" | "DE" | "Germany" | "" | "EDEN" | 50.183 | 8.667 | 104.0 | 1965-05-01 | 1986-03-30 | "Europe/Berlin" |
| "106410-99999" | "106410" | "99999" | "OFFENBACH WETTERPAR" | "DE" | "Germany" | "" | "" | 50.083 | 8.783 | 119.0 | 1941-04-01 | 1943-12-31 | "Europe/Berlin" |
| "106420-99999" | "106420" | "99999" | "HANAU AAF" | "DE" | "Germany" | "" | "ETID" | 50.169 | 8.962 | 112.2 | 1938-11-04 | 1997-12-31 | "Europe/Berlin" |
| "106460-99999" | "106460" | "99999" | "NEUHUTTEN-SPESSART" | "DE" | "Germany" | "" | "" | 50.017 | 9.417 | 339.0 | 1941-01-01 | 1941-07-31 | "Europe/Berlin" |
| "749520-99999" | "749520" | "99999" | "SOSSENHEIM" | "DE" | "Germany" | "" | "" | 50.133 | 8.583 | 130.0 | 1946-08-31 | 1947-02-14 | "Europe/Berlin" |


# Checking Available Years

Once you've found a station, use [get_years_for_station()](../reference/get_years_for_station.md#weathervault.get_years_for_station) to see what years have data:


``` python
# Check available years for LaGuardia Airport
years = wv.get_years_for_station("725030-14732")
print(f"Data available: {min(years)} to {max(years)}")
print(f"Total years: {len(years)}")
```


    Data available: 1973 to 2025
    Total years: 53


# Station Inventory Details

For more detailed information about data availability, use [get_inventory()](../reference/get_inventory.md#weathervault.get_inventory):


``` python
import polars as pl

# Get detailed inventory for a station
inventory = wv.get_inventory()
station_inv = inventory.filter(pl.col("id") == "725030-14732")
station_inv
```


shape: (53, 17)

| id | usaf | wban | year | jan | feb | mar | apr | may | jun | jul | aug | sep | oct | nov | dec | total |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | i64 | i64 | i64 | i64 | i64 | i64 | i64 | i64 | i64 | i64 | i64 | i64 | i64 | i64 |
| "725030-14732" | "725030" | "14732" | 1973 | 766 | 680 | 848 | 748 | 788 | 779 | 773 | 747 | 715 | 752 | 725 | 798 | 9119 |
| "725030-14732" | "725030" | "14732" | 1974 | 793 | 719 | 798 | 732 | 792 | 749 | 756 | 789 | 750 | 760 | 765 | 757 | 9160 |
| "725030-14732" | "725030" | "14732" | 1975 | 812 | 736 | 786 | 725 | 762 | 783 | 784 | 758 | 752 | 788 | 758 | 811 | 9255 |
| "725030-14732" | "725030" | "14732" | 1976 | 816 | 724 | 800 | 747 | 796 | 778 | 823 | 813 | 768 | 809 | 747 | 786 | 9407 |
| "725030-14732" | "725030" | "14732" | 1977 | 794 | 743 | 822 | 784 | 777 | 780 | 780 | 805 | 808 | 804 | 850 | 807 | 9554 |
| … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … |
| "725030-14732" | "725030" | "14732" | 2021 | 1123 | 1083 | 1149 | 1086 | 1126 | 1083 | 1239 | 1170 | 1114 | 1179 | 1031 | 1182 | 13565 |
| "725030-14732" | "725030" | "14732" | 2022 | 1179 | 1099 | 1195 | 1092 | 1269 | 1122 | 1090 | 1090 | 1079 | 1163 | 1103 | 1172 | 13653 |
| "725030-14732" | "725030" | "14732" | 2023 | 1207 | 1049 | 1180 | 1144 | 1071 | 1117 | 1148 | 1194 | 1161 | 1135 | 1027 | 1214 | 13647 |
| "725030-14732" | "725030" | "14732" | 2024 | 1236 | 1053 | 1145 | 1145 | 1186 | 1063 | 1125 | 1160 | 1088 | 1057 | 1013 | 1143 | 13414 |
| "725030-14732" | "725030" | "14732" | 2025 | 1092 | 1050 | 1157 | 1099 | 1262 | 1128 | 1124 | 901 | 0 | 0 | 0 | 0 | 8813 |


This returns monthly observation counts, useful for assessing data completeness before downloading.


# Using the Station Registry

weathervault includes a convenient registry for accessing commonly used stations hierarchically:


``` python
# Access US stations by state and name
laguardia = wv.station.us.ny.la_guardia_airport
print(f"Station ID: {laguardia}")
```


    Station ID: 725030-14732


``` python
# Access international stations
# For non-US stations, use search_stations to find them
munich = wv.search_stations(name="MUNICH", country="Germany").head(1)
munich
```


shape: (1, 14)

| id | usaf | wban | name | country_code | country | state | icao | lat | lon | elev | begin_date | end_date | tz_name |
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
| str | str | str | str | str | str | str | str | f64 | f64 | f64 | date | date | str |
| "108645-99999" | "108645" | "99999" | "MUNICH/PERLACHER" | "DE" | "Germany" | "" | "EDEM" | 48.083 | 11.6 | 567.0 | 1973-11-08 | 1986-07-25 | "Europe/Berlin" |


The registry provides:

- IDE autocomplete for easy station discovery
- hierarchical organization (country -\> state/region -\> station)
- sanitized names (spaces replaced with underscores, lowercased)

To explore available stations in the registry:

``` python
# See available countries
dir(wv.station)
```

``` python
# See US states
dir(wv.station.us)
```

``` python
# See stations in New York
dir(wv.station.us.ny)
```


# Country and State Codes

weathervault provides convenient access to country and US state codes:


## Country Codes


``` python
# List all available countries
countries = wv.get_countries()
countries
```


shape: (251, 2)

| country_code | country          |
|--------------|------------------|
| str          | str              |
| "AF"         | "Afghanistan"    |
| "AL"         | "Albania"        |
| "DZ"         | "Algeria"        |
| "AS"         | "American Samoa" |
| "AD"         | "Andorra"        |
| …            | …                |
| "WS"         | "Western Samoa"  |
| "YE"         | "Yemen"          |
| "CD"         | "Zaire"          |
| "ZM"         | "Zambia"         |
| "ZW"         | "Zimbabwe"       |


## Access Country Codes


``` python
# Get code for a country
wv.country.FR  # France
wv.country.JP  # Japan
wv.country.GB  # United Kingdom
```


    'GB'


## US State Codes


``` python
# Access US state codes
wv.state.NY  # New York
wv.state.TX  # Texas
wv.state.HI  # Hawaii
```


    'HI'


These shorthands make your code more readable and provide IDE autocomplete support.


# Tips for Finding Stations

When searching for weather stations, start broad, then narrow your search (begin with a geographic search or country filter, then refine by name). Always check data availability by verifying years and data completeness before large downloads. Keep in mind that many airports have multiple station IDs representing different time periods, and stations at similar locations may have overlapping coverage. Generally, newer stations often have more complete data than historical ones.


# Next Steps

Now that you know how to find stations, learn how to [get weather data](03-getting-data.md).
