def save(self, path: Path):
"""
Writes this data set to the specified path.
Any directories in the path that do not exist are automatically created.
Parameters
----------
path: pathlib.Path
"""
if not path.parent.exists():
path.parent.mkdir(parents=True)
self.log.info("writing data set as netCDF4 to %s", path)
self._data.to_netcdf(path=str(path),
engine="netcdf4",
format="NETCDF4")
评论列表
文章目录