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