def PM_ds_control_3d_full(): """To MPI Perfect-model-framework corresponding control global maps xr.Dataset.""" return load_dataset("MPI-control-3D")
def PM_da_control1d(): da = load_dataset('MPI-control-1D') da = da['tos'] return da
def hindcast_S2S_Germany(): """S2S ECMWF on-the-fly hindcasts with daily leads and weekly inits and related observations from CPC (t2m, pr) and ERA5 (gh_500).""" init = load_dataset("ECMWF_S2S_Germany") obs = load_dataset("Observations_Germany") return HindcastEnsemble(init).add_observations(obs)
def PM_ds_initialized_3d_full(): """MPI Perfect-model-framework initialized global maps xr.Dataset.""" return load_dataset("MPI-PM-DP-3D")
def observations_ds_1d(): """Historical timeseries from observations matching `hind_da_initialized_1d` and `hind_da_uninitialized_1d` mean removed xr.Dataset.""" da = load_dataset("ERSST") return da - da.mean("time")
def hind_ds_initialized_3d_full(): """CESM-DPLE initialized hindcast Pacific maps mean removed xr.Dataset.""" ds = load_dataset("CESM-DP-SST-3D") return ds - ds.mean("init")
def test_load_dataset_cache(cache): load_dataset(cache=cache)
def hist_ds_uninitialized_1d(): """CESM-LE uninitialized historical timeseries members mean removed xr.Dataset.""" da = load_dataset("CESM-LE") # add member coordinate da["member"] = range(1, 1 + da.member.size) return da - da.mean("time")
def dple_3d(): ds = load_dataset('CESM-DP-SST-3D') return ds
def test_load_datasets_empty(): actual = load_dataset() assert actual is None
def fosi_3d(): ds = load_dataset('FOSI-SST-3D') return ds
def pm_da_ds3d(): da = load_dataset('MPI-PM-DP-3D') da = da['tos'] return da
def pm_da_control3d(): da = load_dataset('MPI-control-3D') da = da['tos'] return da
def reconstruction_da(): da = load_dataset('FOSI-SST')['SST'] da = da - da.mean('time') return da
def test_open_dataset_locally(filepath): """Opens all files listed in file_alias_dict.""" print(filepath) d = load_dataset(filepath) assert d.nbytes > 0
def uninitialized_da(): da = load_dataset('CESM-LE')['SST'] # add member coordinate da['member'] = np.arange(1, 1 + da.member.size) da = da - da.mean('time') return da
def pm_da_ds1d(): da = load_dataset('MPI-PM-DP-1D') da = da['tos'].isel(area=1, period=-1) return da
def reconstruction_ds_1d(): """CESM-FOSI historical reconstruction timeseries members mean removed xr.Dataset.""" da = load_dataset("FOSI-SST") return da - da.mean("time")
def pm_da_control1d(): da = load_dataset('MPI-control-1D') da = da['tos'].isel(area=1, period=-1) return da
def hind_ds_initialized_1d(): """CESM-DPLE initialized hindcast timeseries mean removed xr.Dataset.""" ds = load_dataset("CESM-DP-SST") ds["SST"].attrs["units"] = "C" ds["init"] = ds.init.astype("int") return ds
def pm_ds_ds1d(): ds = load_dataset('MPI-PM-DP-1D').isel(area=1, period=-1) return ds
def reconstruction_ds_3d_full(): """CESM-FOSI historical Pacific reconstruction maps members mean removed xr.Dataset.""" ds = load_dataset("FOSI-SST-3D") return ds - ds.mean("time")
def pm_ds_control1d(): ds = load_dataset('MPI-control-1D').isel(area=1, period=-1) return ds
def PM_ds3v_initialized_1d(): """MPI Perfect-model-framework initialized timeseries xr.Dataset with three variables.""" return load_dataset("MPI-PM-DP-1D").isel(area=1, period=-1, drop=True)
def initialized_da(): da = load_dataset('CESM-DP-SST')['SST'] da = da - da.mean('init') return da
def PM_ds3v_control_1d(): """To MPI Perfect-model-framework corresponding control timeseries xr.Dataset with three variables.""" return load_dataset("MPI-control-1D").isel(area=1, period=-1, drop=True)
def observations_da(): da = load_dataset('ERSST')['SST'] da = da - da.mean('time') return da
def initialized_da(): da = load_dataset('CESM-DP-SST')['SST'] da = da.sel(init=slice(1955, 2015)) da = da - da.mean('init') return da
def PM_da_ds1d(): da = load_dataset('MPI-PM-DP-1D') da = da['tos'] return da