Use the evaluate.py script to perform deterministic evaluations of weather models against observations (e.g., ERA5). The script supports multiple resolutions (64x32, 240x121, 1440x721) and allows for comparing forecasts against observations, climatology, or persistence.
Key parameters include:
--forecast_path: Path to the model forecast Zarr dataset.--obs_path: Path to the observation Zarr dataset.--climatology_path: Path to the climatology Zarr dataset.--eval_configs: Specifies evaluation types, such as deterministic or deterministic_temporal.--variables: A comma-separated list of weather variables to evaluate.--time_start / --time_stop: The temporal range for the evaluation.--output_dir: Directory where results will be stored.--output_file_prefix: Prefix for the generated output files.
python evaluate.py \
--forecast_path=gs://weatherbench2/datasets/hres/2016-2022-0012-64x32_equiangular_conservative.zarr \
--obs_path=gs://weatherbench2/datasets/era5/1959-2022-6h-64x32_equiangular_conservative.zarr \
--climatology_path=gs://weatherbench2/datasets/era5-hourly-climatology/1990-2019_6h_64x32_equiangular_conservative.zarr \
--output_dir=$OUTDIR/64x32/deterministic/ \
--output_file_prefix=hres_vs_era_2020_ \
--input_chunks=init_time=1 \
--fanout=27 \
--regions=all \
--eval_configs=deterministic,deterministic_temporal \
--evaluate_climatology=False \
--evaluate_persistence=False \
--time_start=2020-01-01 \
--time_stop=2020-12-31 \
--variables=geopotential,temperature,u_component_of_wind,v_component_of_wind,specific_humidity,2m_temperature,10m_u_component_of_wind,10m_v_component_of_wind,mean_sea_level_pressure,total_precipitation_6hr,total_precipitation_24hr,10m_wind_speed,wind_speed \
--compute_seeps=True \
--use_beam=True