flush scipy.io.netcdf_file. netcdf_file.flush() Perform a sync-to-disk flush if the netcdf_file object is in write mode.