API Reference

Complete reference for weathervault functions, objects, and constants.

Core Functions

Primary functions for retrieving weather data and station information.

get_weather_data()

Get weather data for a meteorological station.

get_station_metadata()

Get metadata for all weather stations.

search_stations()

Search for weather stations matching specified criteria.

Station Discovery

Functions for exploring available stations and their data coverage.

get_inventory()

Get the data inventory for all stations and years.

get_years_for_station()

Get the list of years for which a station has data.

get_countries()

Get a DataFrame of country codes and names.

Helper Objects

Convenience objects for station and location lookups with autocomplete support.

station
country
state

Constants

Data constants and URL configurations used by the package.

BASE_URL

Base URL for NCEI NOAA Integrated Surface Database (ISD).

COUNTRY_CODES

FIPS country code to country name mapping.

ISO_COUNTRY_NAMES

ISO 3166-1 alpha-2 country code to display-friendly country name mapping.

US_STATE_NAMES

US state and territory code to name mapping.