arviz.InferenceData.from_netcdf

static InferenceData.from_netcdf(filename, group_kwargs=None, regex=False) arviz.data.inference_data.InferenceData[source]

Initialize object from a netcdf file.

Expects that the file will have groups, each of which can be loaded by xarray. By default, the datasets of the InferenceData object will be lazily loaded instead of being loaded into memory. This behaviour is regulated by the value of az.rcParams["data.load"].

Parameters
filenamestr

location of netcdf file

group_kwargsdict of {str: dict}, optional

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.

regexbool, default False

Specifies where regex search should be used to extend the keyword arguments. This feature is currently experimental.

Returns
InferenceData object