예제 #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")
예제 #2
0
def PM_da_control1d():
    da = load_dataset('MPI-control-1D')
    da = da['tos']
    return da
예제 #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)
예제 #4
0
def PM_ds_initialized_3d_full():
    """MPI Perfect-model-framework initialized global maps xr.Dataset."""
    return load_dataset("MPI-PM-DP-3D")
예제 #5
0
파일: conftest.py 프로젝트: kthyng/climpred
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")
예제 #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")
예제 #7
0
def test_load_dataset_cache(cache):
    load_dataset(cache=cache)
예제 #8
0
파일: conftest.py 프로젝트: kthyng/climpred
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")
예제 #9
0
def dple_3d():
    ds = load_dataset('CESM-DP-SST-3D')
    return ds
예제 #10
0
def test_load_datasets_empty():
    actual = load_dataset()
    assert actual is None
예제 #11
0
def fosi_3d():
    ds = load_dataset('FOSI-SST-3D')
    return ds
예제 #12
0
def pm_da_ds3d():
    da = load_dataset('MPI-PM-DP-3D')
    da = da['tos']
    return da
예제 #13
0
def pm_da_control3d():
    da = load_dataset('MPI-control-3D')
    da = da['tos']
    return da
예제 #14
0
def reconstruction_da():
    da = load_dataset('FOSI-SST')['SST']
    da = da - da.mean('time')
    return da
예제 #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
예제 #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
예제 #17
0
def pm_da_ds1d():
    da = load_dataset('MPI-PM-DP-1D')
    da = da['tos'].isel(area=1, period=-1)
    return da
예제 #18
0
파일: conftest.py 프로젝트: kthyng/climpred
def reconstruction_ds_1d():
    """CESM-FOSI historical reconstruction timeseries members mean removed
    xr.Dataset."""
    da = load_dataset("FOSI-SST")
    return da - da.mean("time")
예제 #19
0
def pm_da_control1d():
    da = load_dataset('MPI-control-1D')
    da = da['tos'].isel(area=1, period=-1)
    return da
예제 #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
예제 #21
0
def pm_ds_ds1d():
    ds = load_dataset('MPI-PM-DP-1D').isel(area=1, period=-1)
    return ds
예제 #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")
예제 #23
0
def pm_ds_control1d():
    ds = load_dataset('MPI-control-1D').isel(area=1, period=-1)
    return ds
예제 #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)
예제 #25
0
def initialized_da():
    da = load_dataset('CESM-DP-SST')['SST']
    da = da - da.mean('init')
    return da
예제 #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)
예제 #27
0
def observations_da():
    da = load_dataset('ERSST')['SST']
    da = da - da.mean('time')
    return da
예제 #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
예제 #29
0
def PM_da_ds1d():
    da = load_dataset('MPI-PM-DP-1D')
    da = da['tos']
    return da