climpred.preprocessing.shared.load_hindcast#
- climpred.preprocessing.shared.load_hindcast(inits=range(1961, 1965), members=range(1, 3), preprocess: ~typing.Optional[~typing.Callable] = None, lead_offset: int = 1, parallel: bool = True, engine: ~typing.Optional[str] = None, get_path: ~typing.Callable = <function get_path>, **get_path_kwargs: ~typing.Any) → Union[DataArray, Dataset][source]#
Concat multi-member, multi-initialization hindcast experiment.
Into one
xarray.Dataset
compatible with climpred.- Parameters:
inits (list, array) – List of initializations to be loaded. Defaults to
range(1961, 1965)
.members (list, array) – List of initializations to be loaded. Defaults to
range(1, 3)
.preprocess (Callable) –
preprocess
function accepting and returningxarray.Dataset
only. To be passed toxarray.open_dataset()
. Defaults to None.parallel (bool) – passed to xr.open_mfdataset. Defaults to
True
.engine (str) – passed to xr.open_mfdataset. Defaults to
None
.get_path (callable) –
get_path
function specific to modelling center output format. Defaults toget_path()
.**get_path_kwargs (dict) – parameters passed to
**get_path
.
- Returns:
climpred
compatible dataset with dims –member
,init
,lead
.