File tree Expand file tree Collapse file tree
src/climatebenchpress/data_loader/datasets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from .abc import Dataset
1414from .ifs_uncompressed import load_hplp_data , regrid_to_regular
1515
16- BASE_URL = "https://object-store.os-api.cci1.ecmwf.int/esiwacebucket"
17-
1816
1917class IFSHumidityDataset (Dataset ):
2018 """Dataset for the humidity field of the uncompressed IFS data.
@@ -48,7 +46,15 @@ def download(download_path: Path, progress: bool = True):
4846 @staticmethod
4947 def open (download_path : Path ) -> xr .Dataset :
5048 ds = xr .open_dataset (download_path / "ifs_humidity.zarr" )
51- ds = ds .isel (time = slice (0 , 1 )).chunk (- 1 )
49+ num_levels = ds ["level" ].size
50+ ds = ds .isel (time = slice (0 , 1 )).chunk (
51+ {
52+ "latitude" : - 1 ,
53+ "longitude" : - 1 ,
54+ "time" : - 1 ,
55+ "level" : (num_levels // 2 ) + 1 ,
56+ }
57+ )
5258
5359 # Needed to make the dataset CF-compliant.
5460 ds .longitude .attrs ["axis" ] = "X"
You can’t perform that action at this time.
0 commit comments