arviz.InferenceData.to_netcdf#
- InferenceData.to_netcdf(filename: str, compress: bool = True, groups: Optional[List[str]] = None) str [source]#
Write InferenceData to file using netcdf4.
- 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.
- Returns
- str
Location of netcdf file