Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/climatebenchpress/data_loader/datasets/nextgems.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
# Allowed values: "P1D" (daily), "PT3H" (3-hourly), "PT15M" (15-minute).
TIME_RESOLUTION = "PT3H"

PRECIP_KEY = "pr"
OLR_KEY = "rlut"

NUM_LON = 2880
NUM_LAT = 1440

Expand All @@ -41,7 +44,7 @@ def download(download_path: Path, progress: bool = True):
zoom=ZOOM, time=TIME_RESOLUTION, chunks=dict()
).to_dask()

ds = icon[["rlut"]].sel(time=slice("2020-03-01", "2020-03-07"))
ds = icon[[PRECIP_KEY, OLR_KEY]].sel(time=slice("2020-03-01", "2020-03-07"))
# Regrid the data to 0.125 degree resolution.
# NOTE: This is using nearest neighbour interpolation. We need to do some
# quality checks to ensure we don't get any significant aliasing
Expand Down
Loading