Esempio n. 1
0
def PM_ds_control_3d_full():
    """To MPI Perfect-model-framework corresponding control global maps xr.Dataset."""
    return load_dataset("MPI-control-3D")
Esempio n. 2
0
def PM_da_control1d():
    da = load_dataset('MPI-control-1D')
    da = da['tos']
    return da
Esempio n. 3
0
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)
Esempio n. 4
0
def PM_ds_initialized_3d_full():
    """MPI Perfect-model-framework initialized global maps xr.Dataset."""
    return load_dataset("MPI-PM-DP-3D")
Esempio n. 5
0
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")
Esempio n. 6
0
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")
Esempio n. 7
0
def test_load_dataset_cache(cache):
    load_dataset(cache=cache)
Esempio n. 8
0
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")
Esempio n. 9
0
def dple_3d():
    ds = load_dataset('CESM-DP-SST-3D')
    return ds
Esempio n. 10
0
def test_load_datasets_empty():
    actual = load_dataset()
    assert actual is None
Esempio n. 11
0
def fosi_3d():
    ds = load_dataset('FOSI-SST-3D')
    return ds
Esempio n. 12
0
def pm_da_ds3d():
    da = load_dataset('MPI-PM-DP-3D')
    da = da['tos']
    return da
Esempio n. 13
0
def pm_da_control3d():
    da = load_dataset('MPI-control-3D')
    da = da['tos']
    return da
Esempio n. 14
0
def reconstruction_da():
    da = load_dataset('FOSI-SST')['SST']
    da = da - da.mean('time')
    return da
Esempio n. 15
0
def test_open_dataset_locally(filepath):
    """Opens all files listed in file_alias_dict."""
    print(filepath)
    d = load_dataset(filepath)
    assert d.nbytes > 0
Esempio n. 16
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
Esempio n. 18
0
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
Esempio n. 20
0
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
Esempio n. 22
0
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
Esempio n. 24
0
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)
Esempio n. 25
0
def initialized_da():
    da = load_dataset('CESM-DP-SST')['SST']
    da = da - da.mean('init')
    return da
Esempio n. 26
0
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)
Esempio n. 27
0
def observations_da():
    da = load_dataset('ERSST')['SST']
    da = da - da.mean('time')
    return da
Esempio n. 28
0
def initialized_da():
    da = load_dataset('CESM-DP-SST')['SST']
    da = da.sel(init=slice(1955, 2015))
    da = da - da.mean('init')
    return da
Esempio n. 29
0
def PM_da_ds1d():
    da = load_dataset('MPI-PM-DP-1D')
    da = da['tos']
    return da