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() function returns information about all weather stations in the ISD network:

import weathervault as wv

# Get metadata for all stations
stations = wv.get_station_metadata()
stations
shape: (29_661, 14)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"007018-99999""007018""99999""WXPOD 7018"nullnull""""0.00.07018.02011-03-092013-07-30"Etc/GMT"
"007026-99999""007026""99999""WXPOD 7026""AF""Afghanistan"""""0.00.07026.02012-07-132017-08-22"Etc/GMT"
"007070-99999""007070""99999""WXPOD 7070""AF""Afghanistan"""""0.00.07070.02014-09-232015-09-26"Etc/GMT"
"008260-99999""008260""99999""WXPOD8270"nullnull""""0.00.00.02005-01-012012-07-31"Etc/GMT"
"008268-99999""008268""99999""WXPOD8278""AF""Afghanistan"""""32.9565.5671156.72010-05-192012-03-23"Asia/Kabul"
……………………………………
"A07355-00241""A07355""00241""VIROQUA MUNICIPAL AIRPORT""US""United States""WI""KY51"43.579-90.913394.12014-07-312025-08-25"America/Chicago"
"A07357-00182""A07357""00182""ELBOW LAKE MUNICIPAL PRIDE OF …"US""United States""MN""KY63"45.986-95.992367.32014-07-312025-08-25"America/Chicago"
"A07359-00240""A07359""00240""IONIA COUNTY AIRPORT""US""United States""MI""KY70"42.938-85.061249.02014-07-312025-08-25"America/Detroit"
"A51255-00445""A51255""00445""DEMOPOLIS MUNICIPAL AIRPORT""US""United States""AL""KDYA"32.464-87.95434.12014-07-312025-08-26"America/Chicago"
"A51256-00451""A51256""00451""BRANSON WEST MUNICIPAL EMERSON…"US""United States""MO""KFWB"36.699-93.402411.22014-07-312025-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 – Country name
  • 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() function lets you filter stations by various criteria:

By Country

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

# Find all stations in Germany
de_stations = wv.search_stations(country_code=wv.country.DE)
de_stations
shape: (503, 14)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"090910-99999""090910""99999""ARKONA (CAPE)     &""DE""Germany"""""54.68313.43342.01975-07-012002-07-29"Europe/Berlin"
"090930-99999""090930""99999""BOGUS GERMAN""DE""Germany"""""nullnullnull1990-12-031991-10-31null
"091610-99999""091610""99999""BOLTENHAGEN       &""DE""Germany"""""54.011.215.01975-07-011991-10-31"Europe/Berlin"
"091620-99999""091620""99999""SCHWERIN          &""DE""Germany"""""53.63311.41759.01975-07-011992-05-17"Europe/Berlin"
"091680-99999""091680""99999""BOGUS GERMAN""DE""Germany"""""nullnullnull1990-12-031991-10-30null
……………………………………
"119060-99999""119060""99999""LEST""DE""Germany"""""48.3519.317720.01952-11-061953-12-31"Europe/Bratislava"
"693664-99999""693664""99999""COTTBUS DREWITZ""DE""Germany""""EDCD"51.88914.53283.51981-01-151990-12-14"Europe/Berlin"
"749520-99999""749520""99999""SOSSENHEIM""DE""Germany"""""50.1338.583130.01946-08-311947-02-14"Europe/Berlin"
"749538-99999""749538""99999""OBERPFAFFENHOFEN GERMANY AD""DE""Germany"""""48.08311.266580.01946-08-141949-07-31"Europe/Berlin"
"999999-34196""999999""34196""GABLINGEN""DE""Germany""""EDOX"48.4510.867466.01963-09-101967-12-29"Europe/Berlin"

You can also search by country name:

# Find stations in Japan
japan_stations = wv.search_stations(country="Japan")
japan_stations
shape: (424, 14)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"472020-99999""472020""99999""NAYORO-ON-HOKKAIDO""JP""Japan"""""44.367142.46789.01973-01-011978-08-04"Asia/Tokyo"
"472025-99999""472025""99999""RISHIRI""JP""Japan""""RJER"45.242141.18634.11975-05-211997-12-31"Asia/Tokyo"
"472050-99999""472050""99999""ISHIKARINUMATA""JP""Japan"""""43.8141.9563.01973-01-012002-06-02"Asia/Tokyo"
"472070-99999""472070""99999""TAKIKAWA""JP""Japan"""""43.567141.9548.01973-01-022001-10-01"Asia/Tokyo"
"472130-99999""472130""99999""FURANO-ON-HOKKAIDO""JP""Japan"""""43.333142.4174.01973-01-011978-04-22"Asia/Tokyo"
……………………………………
"999999-43321""999999""43321""KISARAZU""JP""Japan""""RJTK"35.383139.9176.11952-07-251959-03-31"Asia/Tokyo"
"999999-43322""999999""43322""IWAKUNI""JP""Japan""""RIWA"34.15132.2333.01952-10-311954-09-15"Asia/Tokyo"
"999999-43323""999999""43323""YOKOSUKA""JP""Japan""""RJTX"35.283139.66753.01953-02-281976-12-31"Asia/Tokyo"
"999999-43324""999999""43324""IWAKUNI""JP""Japan""""RJOI"34.15132.2333.01952-10-311972-12-31"Asia/Tokyo"
"999999-43325""999999""43325""KASTNER AAF""JP""Japan""""RJTW"35.517139.4107.01954-12-301970-12-31"Asia/Tokyo"

By US State

For US stations, use the wv.state shorthand:

# Find stations in California
ca_stations = wv.search_stations(state=wv.state.CA)
ca_stations
shape: (499, 14)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"690020-93218""690020""93218""JOLON HUNTER LIGGETT MIL RES""US""United States""CA""KHGT"36.0-121.233317.01964-07-151997-04-01"America/Los_Angeles"
"690020-99999""690020""99999""JOLON HUNTER LIGGETT MIL RES""US""United States""CA""KHGT"36.0-121.233317.02003-07-022003-08-01"America/Los_Angeles"
"690070-93217""690070""93217""FRITZSCHE AAF""US""United States""CA""KOAR"36.683-121.76743.01960-04-041993-08-31"America/Los_Angeles"
"690080-99999""690080""99999""TARIN KOWT""AF""Afghanistan""CA""KQA7"32.665.871380.02003-06-162003-06-24"Asia/Kabul"
"690140-93101""690140""93101""EL TORO MCAS""US""United States""CA""KNZJ"33.667-117.733116.71989-01-011997-12-31"America/Los_Angeles"
……………………………………
"999999-93243""999999""93243""MERCED 23 WSW""US""United States""CA"""37.238-120.88323.82004-03-252025-08-28"America/Los_Angeles"
"999999-93245""999999""93245""BODEGA 6 WSW""US""United States""CA"""38.321-123.07519.22008-06-142025-08-28"America/Los_Angeles"
"A06854-00115""A06854""00115""BIG BEAR CITY AIRPORT""US""United States""CA""KL35"34.264-116.8542057.12014-07-312025-08-25"America/Los_Angeles"
"A07049-00320""A07049""00320""PETALUMA MUNICIPAL AIRPORT""US""United States""CA""KO69"38.25-122.627.12014-07-312025-08-25"America/Los_Angeles"
"A07053-00346""A07053""00346""TRINITY CENTER AIRPORT""US""United States""CA""KO86"40.983-122.694728.22014-07-312025-08-25"America/Los_Angeles"

Multiple states can be searched at once:

# Find stations in California
california = wv.search_stations(state=wv.state.CA)
california
shape: (499, 14)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"690020-93218""690020""93218""JOLON HUNTER LIGGETT MIL RES""US""United States""CA""KHGT"36.0-121.233317.01964-07-151997-04-01"America/Los_Angeles"
"690020-99999""690020""99999""JOLON HUNTER LIGGETT MIL RES""US""United States""CA""KHGT"36.0-121.233317.02003-07-022003-08-01"America/Los_Angeles"
"690070-93217""690070""93217""FRITZSCHE AAF""US""United States""CA""KOAR"36.683-121.76743.01960-04-041993-08-31"America/Los_Angeles"
"690080-99999""690080""99999""TARIN KOWT""AF""Afghanistan""CA""KQA7"32.665.871380.02003-06-162003-06-24"Asia/Kabul"
"690140-93101""690140""93101""EL TORO MCAS""US""United States""CA""KNZJ"33.667-117.733116.71989-01-011997-12-31"America/Los_Angeles"
……………………………………
"999999-93243""999999""93243""MERCED 23 WSW""US""United States""CA"""37.238-120.88323.82004-03-252025-08-28"America/Los_Angeles"
"999999-93245""999999""93245""BODEGA 6 WSW""US""United States""CA"""38.321-123.07519.22008-06-142025-08-28"America/Los_Angeles"
"A06854-00115""A06854""00115""BIG BEAR CITY AIRPORT""US""United States""CA""KL35"34.264-116.8542057.12014-07-312025-08-25"America/Los_Angeles"
"A07049-00320""A07049""00320""PETALUMA MUNICIPAL AIRPORT""US""United States""CA""KO69"38.25-122.627.12014-07-312025-08-25"America/Los_Angeles"
"A07053-00346""A07053""00346""TRINITY CENTER AIRPORT""US""United States""CA""KO86"40.983-122.694728.22014-07-312025-08-25"America/Los_Angeles"

By Geographic Bounding Box

Search for stations within a latitude/longitude range:

# 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)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"720553-99999""720553""99999""PORT AUTH DOWNTN MANHATTAN WAL…"US""United States""NY""KJRB"40.701-74.0092.12016-07-202025-08-24"America/New_York"
"720581-00178""720581""00178""LINDEN AIRPORT""US""United States""NJ""KLDJ"40.617-74.257.02017-01-012025-08-25"America/New_York"
"720581-99999""720581""99999""LINDEN""US""United States""NJ""KLDJ"40.617-74.2457.02008-07-212016-12-31"America/New_York"
"724094-54743""724094""54743""ESSEX COUNTY AIRPORT""US""United States""NJ""KCDW"40.876-74.28352.02006-01-012025-08-27"America/New_York"
"724094-99999""724094""99999""ESSEX CO""US""United States""NJ""KCDW"40.883-74.28353.01981-08-051997-12-31"America/New_York"
……………………………………
"999999-14734""999999""14734""NEWARK INTERNATIONAL ARPT""US""United States""NJ""KEWR"40.683-74.1699.11948-01-011972-12-31"America/New_York"
"999999-14786""999999""14786""NEW YORK FLOYD BENNE""US""United States""NY""NSC"40.583-73.8834.91945-04-011970-11-01"America/New_York"
"999999-94728""999999""94728""NEW YORK CENTRAL PARK""US""United States""NY""KNYC"40.779-73.96947.51965-01-011997-12-31"America/New_York"
"999999-94741""999999""94741""TETERBORO AIRPORT""US""United States""NJ""KTEB"40.85-74.0612.11947-01-011961-10-01"America/New_York"
"999999-94789""999999""94789""NEW YORK FORT TOTTEN""US""United States""NY""KJFK"40.639-73.7626.71948-07-011972-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):

# Find Tokyo International Airport
tokyo_airports = wv.search_stations(name="tokyo international")
tokyo_airports
shape: (0, 14)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
# Find all "LaGuardia" stations
lga = wv.search_stations(name="laguardia")
lga
shape: (1, 14)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"999999-14732""999999""14732""NEW YORK LAGUARDIA ARPT""US""United States""NY""KLGA"40.779-73.889.41948-07-011972-12-31"America/New_York"

Combined Searches

You can combine multiple search criteria:

# 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)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"722866-23122""722866""23122""SAN BERNARDINO INTERNATIONAL A…"US""United States""CA""KSBD"34.095-117.235353.31943-01-061993-10-30"America/Los_Angeles"
"722900-23188""722900""23188""SAN DIEGO INTERNATIONAL AIRPOR…"US""United States""CA""KSAN"32.734-117.1834.61942-01-012025-08-27"America/Los_Angeles"
"722950-23174""722950""23174""LOS ANGELES INTERNATIONAL AIRP…"US""United States""CA""KLAX"33.938-118.38729.71944-01-012025-08-27"America/Los_Angeles"
"723890-93193""723890""93193""FRESNO YOSEMITE INTERNATIONAL …"US""United States""CA""KFAT"36.78-119.72101.91941-12-042025-08-27"America/Los_Angeles"
"724940-23234""724940""23234""SAN FRANCISCO INTERNATIONAL AI…"US""United States""CA""KSFO"37.62-122.3663.21973-01-012025-08-27"America/Los_Angeles"
"747040-03102""747040""03102""ONTARIO INTERNATIONAL ARPT""US""United States""CA""KONT"34.053-117.577281.62005-01-012025-08-27"America/Los_Angeles"
"999999-03102""999999""03102""ONTARIO INTERNATIONAL ARPT""US""United States""CA""KONT"34.056-117.6275.81968-01-012004-12-31"America/Los_Angeles"
# 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)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"103193-99999""103193""99999""PADERBORN/LIPPSTAD&""DE""Germany"""""51.6178.617217.01987-03-021988-10-26"Europe/Berlin"
"103200-99999""103200""99999""GUTERSLOH""DE""Germany""""ETUO"51.9238.30671.91937-05-031997-12-19"Europe/Berlin"
"103280-99999""103280""99999""DETMOLD (UK-ARMY)""DE""Germany"""""51.958.9189.01936-03-022001-07-07"Europe/Berlin"
"104260-99999""104260""99999""PADERBORN LIPPSTADT""DE""Germany""""EDLP"51.6148.616213.11938-11-042025-08-24"Europe/Berlin"
"104264-99999""104264""99999""SOEST (UK-ARMY)""DE""Germany"""""51.5838.217125.01983-04-061990-04-03"Europe/Berlin"
……………………………………
"106405-99999""106405""99999""MAURICE ROSE(USAHP)""DE""Germany""""EDEN"50.1838.667104.01965-05-011986-03-30"Europe/Berlin"
"106410-99999""106410""99999""OFFENBACH WETTERPAR""DE""Germany"""""50.0838.783119.01941-04-011943-12-31"Europe/Berlin"
"106420-99999""106420""99999""HANAU AAF""DE""Germany""""ETID"50.1698.962112.21938-11-041997-12-31"Europe/Berlin"
"106460-99999""106460""99999""NEUHUTTEN-SPESSART""DE""Germany"""""50.0179.417339.01941-01-011941-07-31"Europe/Berlin"
"749520-99999""749520""99999""SOSSENHEIM""DE""Germany"""""50.1338.583130.01946-08-311947-02-14"Europe/Berlin"

Checking Available Years

Once you’ve found a station, use get_years_for_station() to see what years have data:

# 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():

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)
idusafwbanyearjanfebmaraprmayjunjulaugsepoctnovdectotal
strstrstri64i64i64i64i64i64i64i64i64i64i64i64i64i64
"725030-14732""725030""14732"19737666808487487887797737477157527257989119
"725030-14732""725030""14732"19747937197987327927497567897507607657579160
"725030-14732""725030""14732"19758127367867257627837847587527887588119255
"725030-14732""725030""14732"19768167248007477967788238137688097477869407
"725030-14732""725030""14732"19777947438227847777807808058088048508079554
……………………………………………
"725030-14732""725030""14732"202111231083114910861126108312391170111411791031118213565
"725030-14732""725030""14732"202211791099119510921269112210901090107911631103117213653
"725030-14732""725030""14732"202312071049118011441071111711481194116111351027121413647
"725030-14732""725030""14732"202412361053114511451186106311251160108810571013114313414
"725030-14732""725030""14732"2025109210501157109912621128112490100008813

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:

# Access US stations by state and name
laguardia = wv.station.us.ny.la_guardia_airport
print(f"Station ID: {laguardia}")
Station ID: 725030-14732
# 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)
idusafwbannamecountry_codecountrystateicaolatlonelevbegin_dateend_datetz_name
strstrstrstrstrstrstrstrf64f64f64datedatestr
"108645-99999""108645""99999""MUNICH/PERLACHER""DE""Germany""""EDEM"48.08311.6567.01973-11-081986-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:

# See available countries
dir(wv.station)
# See US states
dir(wv.station.us)
# 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

# List all available countries
countries = wv.get_countries()
countries
shape: (251, 2)
country_codecountry
strstr
"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

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

US State Codes

# 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.