Skip to content

Commit

Permalink
Auto-chunking for ERA5 loading
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait committed Nov 15, 2024
1 parent 4c29fdf commit f69fdb5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/geospatial/workloads/atmospheric_circulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def atmospheric_circulation(
) -> Delayed:
ds = xr.open_zarr(
"gs://weatherbench2/datasets/era5/1959-2023_01_10-full_37-1h-0p25deg-chunk-1.zarr",
chunks={},
chunks={"time": "auto"},
)
if scale == "small":
# 852.56 GiB (small)
Expand Down
2 changes: 2 additions & 0 deletions tests/geospatial/workloads/climatology.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def rechunk_map_blocks(
# Load dataset
ds = xr.open_zarr(
"gs://weatherbench2/datasets/era5/1959-2023_01_10-wb13-6h-1440x721.zarr",
chunks={"time": "auto"},
)

if scale == "small":
Expand Down Expand Up @@ -122,6 +123,7 @@ def highlevel_api(
# Load dataset
ds = xr.open_zarr(
"gs://weatherbench2/datasets/era5/1959-2023_01_10-wb13-6h-1440x721.zarr",
chunks={"time": "auto"},
)

if scale == "small":
Expand Down
1 change: 1 addition & 0 deletions tests/geospatial/workloads/rechunking.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def era5_rechunking(
) -> Delayed:
ds = xr.open_zarr(
"gs://weatherbench2/datasets/era5/1959-2023_01_10-full_37-1h-0p25deg-chunk-1.zarr",
chunks={"time": "auto"},
).drop_encoding()

if scale == "small":
Expand Down
1 change: 1 addition & 0 deletions tests/geospatial/workloads/regridding.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def xesmf(
) -> Delayed:
ds = xr.open_zarr(
"gs://weatherbench2/datasets/era5/1959-2023_01_10-full_37-1h-0p25deg-chunk-1.zarr",
chunks={"time": "auto"},
)
# Fixed time range and variable as the interesting part of this benchmark scales with the
# regridding matrix
Expand Down

0 comments on commit f69fdb5

Please sign in to comment.