A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Extreme Weather Bench

Builds on the successful work of WeatherBench and introduces a set of high-impact weather events, spanning across multiple spatial and temporal scales and different parts of the weather spectrum.
https://github.com/brightbandtech/extremeweatherbench

Category: Atmosphere
Sub Category: Meteorological Observation and Forecast

Keywords

benchmarking meteorology

Last synced: about 13 hours ago
JSON representation

Repository metadata

Benchmarking of machine learning and numerical weather prediction (MLWP & NWP) models, with a focus on extreme and discrete meteorological cases and event types.

README.md

Extreme Weather Bench (EWB)

Read our blog post here

As AI weather models are growing in popularity, we need a standardized set of community driven tests that evaluate the models across a wide variety of high-impact hazards. Extreme Weather Bench (EWB) builds on the successful work of WeatherBench and introduces a set of high-impact weather events, spanning across multiple spatial and temporal scales and different parts of the weather spectrum. We provide data to use for testing, standard metrics for evaluation by forecasters worldwide for each of the phenomena, as well as impact-based metrics. EWB is a community system and will be adding additional phenomena, test cases and metrics in collaboration with the worldwide weather and forecast verification community.

EWB paper and talks

How do I suggest new data, metrics, or otherwise get involved?

Extreme Weather Bench welcomes your involvement! The success of a benchmark suite rests on community involvement and feedback. There are several ways to get involved:

  • Get involved in community discussion using the discussion board
  • Submit new code requests using the issues
  • Send us email at [email protected]

Installing EWB

Currently, the easiest way to install EWB is using the pip command:

pip install git+https://github.com/brightbandtech/ExtremeWeatherBench.git

How to Run EWB

Running EWB on sample data (included) is straightforward.

from extremeweatherbench import config, events, evaluate
import pickle 

# Select model
model = 'FOUR_v200_GFS'

# Set up path to directory of file - zarr, json, or parquet
forecast_dir = f'assets/data/forecasts/{model}_combined_all.parq'

# Choose the event types you want to include
event_list = [events.HeatWave,
              events.Freeze]

# Set up configuration object that includes events and the forecast directory
heatwave_configuration = config.Config(
    event_types=event_list,
    forecast_dir=forecast_dir,
    )

# Use ForecastSchemaConfig to map forecast variable names to CF convention-based names used in EWB
# the sample forecast kerchunk references to the CIRA MLWP archive are the default configuration
default_forecast_config = config.ForecastSchemaConfig()

# Run the evaluate script which outputs a dict of event results with associated metrics and variables
cases = evaluate.evaluate(eval_config=heatwave_configuration, forecast_schema_config=default_forecast_config)

# Save the results to a pickle file
with open(f'cases_{model}.pkl', 'wb') as f:
    pickle.dump(cases, f)

EWB case studies and categories

EWB case studies are fully documented here.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 438
Total Committers: 3
Avg Commits per committer: 146.0
Development Distribution Score (DDS): 0.03

Commits in past year: 438
Committers in past year: 3
Avg Commits per committer in past year: 146.0
Development Distribution Score (DDS) in past year: 0.03

Name Email Commits
aaTman m****r@g****m 425
Amy McGovern a****n@o****u 12
Daniel Rothenberg d****l@d****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 61
Total pull requests: 56
Average time to close issues: 23 days
Average time to close pull requests: 3 days
Total issue authors: 3
Total pull request authors: 3
Average comments per issue: 1.13
Average comments per pull request: 1.0
Merged pull request: 49
Bot issues: 0
Bot pull requests: 0

Past year issues: 61
Past year pull requests: 56
Past year average time to close issues: 23 days
Past year average time to close pull requests: 3 days
Past year issue authors: 3
Past year pull request authors: 3
Past year average comments per issue: 1.13
Past year average comments per pull request: 1.0
Past year merged pull request: 49
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/brightbandtech/extremeweatherbench

Top Issue Authors

  • aaTman (52)
  • alxmrs (6)
  • amymcgovern (3)

Top Pull Request Authors

  • aaTman (51)
  • amymcgovern (3)
  • gideonite (2)

Top Issue Labels

  • Improvement (11)
  • enhancement (7)
  • documentation (6)
  • bug (3)
  • Feature (2)
  • v1 (1)

Top Pull Request Labels


Dependencies

.github/workflows/ci.yaml actions
  • actions/checkout v4 composite
  • actions/checkout v3 composite
  • actions/setup-python v5 composite
  • actions/setup-python v3 composite
  • astral-sh/setup-uv v4 composite
  • pre-commit/action v3.0.1 composite
pyproject.toml pypi
  • cartopy >=0.24.1
  • cftime >=1.6.4.post1
  • dacite >=1.8.1
  • dask [complete]>=2024.12.1
  • fastparquet >=2024.11.0
  • gcsfs >=2024.12.0
  • geopandas >=1.0.1
  • h5py >=3.12.1
  • ipywidgets >=8.1.5
  • kerchunk >=0.2.7
  • numpy >=2.2.0
  • pandas >=2.2.3
  • pyyaml >=6.0.2
  • regionmask >=0.13.0
  • rioxarray >=0.18.1
  • s3fs >=2024.12.0
  • scikit-learn >=1.6.0
  • scores >=2.0.0
  • seaborn >=0.13.2
  • shapely >=2.0.6
  • tqdm >=4.67.1
  • ujson >=5.10.0
  • virtualizarr >=1.2.0
  • xarray >=2024.11.0
  • zarr >=2.18.4
uv.lock pypi
  • 157 dependencies

Score: 5.159055299214529