Synchronize an open NetCDF dataset to disk.
一个开放的NetCDF数据集同步到磁盘。
用法----------Usage----------
sync.nc(ncfile)
参数----------Arguments----------
参数:ncfile
Object of class "NetCDF" which points to the NetCDF dataset (as returned from open.nc).
类的对象“NetCDF”,这点到NetCDF的数据集(从open.nc返回)。
Details
详细信息----------Details----------
This function offers a way to synchronize the disk copy of a NetCDF dataset with in-memory buffers. There are two reasons one might want to synchronize after writes: To minimize data loss in case of abnormal termination, or to make data available to other processes for reading immediately after it is written.
此功能提供了一个方法来同步磁盘复制的NetCDF的数据集在内存中的缓冲区。有两个原因可能要同步后写道:异常终止的情况下,尽量减少数据丢失或数据提供给其他进程读取后立即书面。