arviz.InferenceData.to_netcdf#

InferenceData.to_netcdf(filename, compress=True, groups=None, engine='h5netcdf')[source]#

Write InferenceData to netcdf4 file.

Parameters:
filenamestr

Location to write to

compressbool, optional

Whether to compress result. Note this saves disk space, but may make saving and loading somewhat slower (default: True).

groupslist, optional

Write only these groups to netcdf file.

engine{“h5netcdf”, “netcdf4”}, default “h5netcdf”

Library used to read the netcdf file.

Returns:
str

Location of netcdf file