Skip to content

Bias Adjustment: Localize WRF to Weather Stations

Use historical weather station observations to correct WRF model bias locally. Historical weather station data has gone through quality assurance (QA) and quality control (QC) protocols. More details about the data itself can be found at the Historical Data Platform (HDP) repository.

Basic Localization

# ⚠️  Currently WRF + hourly temperature or dewpoint only
data = (cd
    .activity_id("WRF")
    .institution_id("UCLA")      # Specify WRF producer
    .variable_id("t2")             # Hourly temperature
    .table_id("1hr")             # Must be hourly
    .processes({
        "bias_adjust_model_to_station": {
            "stations": ["KSAC"]
        }
    })
    .get())

# Data now bias-adjusted to observations

Available Weather Stations

# Browse the HDP catalog for available network_id/station_id combinations
from climakitae.new_core.data_access.data_access import DataCatalog
DataCatalog().hdp.df[["network_id", "station_id"]]

# Stations passed to bias_adjust_model_to_station in one call may span
# multiple network_ids.
data = (cd
    .processes({
        "bias_adjust_model_to_station": {
            "stations": ["KSAC", "ASOSAWOS_69007093217"]
        }
    })
    .get()
)

How Bias Adjustment Works

  • Training: Uses each station's actual historical observational overlap with the model's historical period (coverage varies per HDP station)
  • Method: Quantile delta mapping (preserves model trends while matching observations)
  • Result: WRF temperature distribution matches local observations
  • Benefit: Reduces systematic bias for climate projections

Limitations

Currently available for:
- ✅ WRF data only (not LOCA2 statistical downscaling)
- ✅ Hourly temperature (t2) or dewpoint (dew_point)
- ✅ HDP weather stations (not every network provides temperature)

Why these limitations?

Bias adjustment requires:
- High-frequency observations (hourly) to capture temperature variability that drives quantile mapping
- WRF hourly data because WRF's fast-varying dynamics need point-wise calibration
- LOCA2 is already bias-adjusted by design using quantile mapping to observations during downscaling (no bias adjustment needed)
- Weather station coverage — stations are sourced from the HDP catalog, whose per-station time coverage and variable availability varies by network

For other scenarios:
- Use direct model output (LOCA2 is already bias-corrected)
- Implement alternative bias adjustment method for daily/monthly aggregates
- Contact support for custom approaches