No project description provided
Project description
OceanBench
OceanBench is a benchmarking tool to evaluate ocean forecasting systems against reference ocean analysis datasets (such as 2024 GLORYS reanalysis and GLO12 analysis) as well as observations.
Citation
OceanBench's scientific paper is published in NeurIPS 2025 and is accessible at https://openreview.net/forum?id=wZGe1Kqs8G.
@inproceedings{
aouni2025oceanbench,
title={OceanBench: A Benchmark for Data-Driven Global Ocean Forecasting systems},
author={Anass El Aouni and Quentin Gaudel and Juan Emmanuel Johnson and REGNIER Charly and Julien Le Sommer and van Gennip and Ronan Fablet and Marie Drevillon and Yann DRILLET and Pierre Yves Le Traon},
booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
year={2025},
url={https://openreview.net/forum?id=wZGe1Kqs8G}
}
Score table and system comparison
The official score table is available on the OceanBench website.
Open GLORYS dataset to train your ocean forecasting system
You can train your model with GLORYS reanalysis. From an environment with OceanBench installed, run:
import oceanbench
oceanbench.datasets.reference.glorys_reanalysis()
to open GLORYS dataset as a xarray.Dataset:
<xarray.Dataset> Size: 5TB
Dimensions: (depth: 50, latitude: 2041, longitude: 4320, time: 366)
Coordinates:
* depth (depth) float32 200B 0.494 1.541 2.646 ... 5.275e+03 5.728e+03
* latitude (latitude) float32 8kB -80.0 -79.92 -79.83 ... 89.83 89.92 90.0
* longitude (longitude) float32 17kB -180.0 -179.9 -179.8 ... 179.8 179.9
* time (time) datetime64[ns] 3kB 2024-01-01 2024-01-02 ... 2024-12-31
Data variables:
thetao (time, depth, latitude, longitude) float64 1TB dask.array<chunksize=(28, 1, 512, 2048), meta=np.ndarray>
so (time, depth, latitude, longitude) float64 1TB dask.array<chunksize=(28, 1, 512, 2048), meta=np.ndarray>
uo (time, depth, latitude, longitude) float64 1TB dask.array<chunksize=(28, 1, 512, 2048), meta=np.ndarray>
vo (time, depth, latitude, longitude) float64 1TB dask.array<chunksize=(28, 1, 512, 2048), meta=np.ndarray>
zos (time, latitude, longitude) float64 26GB dask.array<chunksize=(28, 512, 2048), meta=np.ndarray>
Attributes:
source: MERCATOR GLORYS12V1
institution: MERCATOR OCEAN
comment: CMEMS product
title: daily mean fields from Global Ocean Physics Analysis and Fo...
references: http://www.mercator-ocean.fr
history: 2023/06/01 16:20:05 MERCATOR OCEAN Netcdf creation
Conventions: CF-1.4
Evaluate your system with OceanBench
The evaluation of a system consists of the sequential execution of a Python notebook that runs several evaluation methods against a set of forecasts (produced by the system), namely the challenger dataset, opened as an xarray Dataset.
The OceanBench documentation describes the shape a challenger dataset must have, as well as the definitions of the methods used to evaluate systems.
Official evaluation
All official challenger notebooks are maintained and remain executable in order to update the scores with new OceanBench versions (all official challengers are re-evaluated with each new version).
To officially submit your system to OceanBench, please open an issue on this repository attaching one of the following:
- The executed notebook resulting from an interactive or programmatic evaluation.
- A way to access the system output data in a standard format (e.g. Zarr or NetCDF).
- A way to execute the system code or container along with clear instructions for how to run it (e.g., input/output format, required dependencies, etc.).
In addition, please provide the following metadata:
- The organization that leads the construction or operation of the system.
- A link to the reference paper of the system.
- The system method. For example, "Physics-based", "ML-based" or "Hybrid".
- The system type. For example, "Forecast (deterministic)" or "Forecast (ensemble)".
- The system initial conditions. For example, "GLO12/IFS".
- The approximate horizontal resolution of the system. For example, "1/12°" or "1/4°".
Interactive evaluation
Checkout this notebook that evaluates a sample (two forecasts) of the GLONET system on OceanBench. The resulting executed notebook is used as the evaluation report of the system, and its content is used to fulfill the OceanBench score table.
You can replace the cell that opens the challenger datasets with your code and execute the notebook.
Execute on your own resources
You will need to install OceanBench manually in your environment.
Installation
Using pip via PyPI
pip install oceanbench
From sources
git clone git@github.com:mercator-ocean/oceanbench.git && cd oceanbench/ && pip install --editable .
Execute on EDITO
You can open and manually execute the example notebook in EDITO datalab by clicking here:
Programmatic evaluation
Once installed, you can evaluate your system from the command line or using python.
CLI
oceanbench evaluate path/to/challenger.py
To evaluate multiple challengers in parallel:
oceanbench evaluate challenger_a.py challenger_b.py
By default, OceanBench evaluates the global domain. To evaluate an official region, pass its identifier:
oceanbench evaluate path/to/challenger.py --region ibi
To evaluate a custom region, write its bounding box in a JSON file:
{
"id": "western_med",
"display_name": "Western Mediterranean",
"bounds": {
"minimum_latitude": 34.0,
"maximum_latitude": 44.5,
"minimum_longitude": -1.0,
"maximum_longitude": 18.0
}
}
Then pass it to the CLI:
oceanbench evaluate path/to/challenger.py --region-file path/to/region.json
To upload the resulting notebooks to an S3 bucket:
oceanbench evaluate path/to/challenger.py --output-bucket my-bucket --output-prefix results/
The output notebook name is automatically derived from the challenger file name and region (e.g. challenger.py produces challenger.global.report.ipynb for the global benchmark and challenger.ibi.report.ipynb for the IBI benchmark).
Python
import oceanbench
oceanbench.evaluate_challenger("path/to/file/opening/the/challenger/datasets.py")
More details in the documentation.
Dependency on the Copernicus Marine Service
Running OceanBench to evaluate systems with 1/12° resolution uses the Copernicus Marine Toolbox and therefore requires authentication with the Copernicus Marine Service.
If you're running OceanBench in a non-interactive way, please follow the Copernicus Marine Toolbox documentation to login to the Copernicus Marine Service before running the bench.
Contribution
Your help to improve OceanBench is welcome. Please first read contribution instructions here.
License
Licensed under the EUPL-1.2 license.
About
Implemented by:
As part of a fruitful collaboration with:
Powered by:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oceanbench-0.1.2.tar.gz.
File metadata
- Download URL: oceanbench-0.1.2.tar.gz
- Upload date:
- Size: 49.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39a417f13781e8f18d7b3bc5ffe59168ffb4872e17e46bf4ea7023a7c6388557
|
|
| MD5 |
f90928099aee471602e58d0705bc2296
|
|
| BLAKE2b-256 |
0b02c9471c685493f615f7c2e15229c0128307777de9820c166bbd6f71831b91
|
Provenance
The following attestation bundles were made for oceanbench-0.1.2.tar.gz:
Publisher:
publish.yml on mercator-ocean/oceanbench
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oceanbench-0.1.2.tar.gz -
Subject digest:
39a417f13781e8f18d7b3bc5ffe59168ffb4872e17e46bf4ea7023a7c6388557 - Sigstore transparency entry: 1519191533
- Sigstore integration time:
-
Permalink:
mercator-ocean/oceanbench@7d8272f0570d455718479e1389c3fe4177f27378 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mercator-ocean
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7d8272f0570d455718479e1389c3fe4177f27378 -
Trigger Event:
push
-
Statement type:
File details
Details for the file oceanbench-0.1.2-py3-none-any.whl.
File metadata
- Download URL: oceanbench-0.1.2-py3-none-any.whl
- Upload date:
- Size: 67.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae2936f019d86a1b8b027b103205a4989f44be8e132bed666d075de494b8982f
|
|
| MD5 |
9aa0c76330ad0334fafe7a432cdeb211
|
|
| BLAKE2b-256 |
4935dcb3db223a65a21b51631fb78b898f96709edb9b585ac45c3225bc26ecb7
|
Provenance
The following attestation bundles were made for oceanbench-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on mercator-ocean/oceanbench
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oceanbench-0.1.2-py3-none-any.whl -
Subject digest:
ae2936f019d86a1b8b027b103205a4989f44be8e132bed666d075de494b8982f - Sigstore transparency entry: 1519191541
- Sigstore integration time:
-
Permalink:
mercator-ocean/oceanbench@7d8272f0570d455718479e1389c3fe4177f27378 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mercator-ocean
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7d8272f0570d455718479e1389c3fe4177f27378 -
Trigger Event:
push
-
Statement type: