arviz.from_netcdf#

arviz.from_netcdf(filename, group_kwargs=None, regex=False)[source]#

Load netcdf file back into an arviz.InferenceData.

Parameters
filenamestr

name or path of the file to load trace

group_kwargsdict of {str: dict}

Keyword arguments to be passed into each call of xarray.open_dataset(). The keys of the higher level should be group names or regex matching group names, the inner dicts re passed to open_dataset. This feature is currently experimental

regexstr

Specifies where regex search should be used to extend the keyword arguments.

Returns
InferenceData object

Notes

By default, the datasets of the InferenceData object will be lazily loaded instead of loaded into memory. This behaviour is regulated by the value of az.rcParams["data.load"].