01_nc_create_par: Create a parallel NetCDF File

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Creates a new parallel NetCDF file on a parallel file system, given the variables the new file is to contain.

Usage

1
2
  nc_create_par(filename, vars, force_v4 = TRUE, verbose = FALSE,
                comm = 0L, info = 0L)

Arguments

filename

Name of the NetCDF file to be created.

vars

Either an object of class ncvar4 describing the variable to be created, or a vector (or list) of such objects to be created.

force_v4

If TRUE, then the created output file will always be in parallel netcdf-4 format which supports more features, but cannot be read by version 3 of the netcdf library. FALSE is not allowed.

verbose

If TRUE, then information is printed while the file is being created.

comm

a communicator number from pbdMPI.

info

a info number from pbdMPI.

Details

See nc_create for details. The parallel version is able to coordinate with other nc_create_par instances for more efficient operation in parallel.

Value

An object of class ncdf4, which has the fields described in nc_open.

Author(s)

George Ostrouchov, Pragneshkumar Patel pragnesh@utk.edu, Wei-Chen Chen, and Drew Schmidt.

References

Programming with Big Data in R Website: http://r-pbd.org/

See Also

nc_open_par, nc_var_par_access, ncdim_def, ncvar_def.

Examples

1
2
3
4
5
6
7
## Not run: 
### Under command mode, run the demo with 2 processors by
### (Use Rscript.exe for windows system)
mpiexec -np 2 Rscript -e "demo(ncwrite,'pbdNCDF4',ask=F,echo=F)"
mpiexec -np 2 Rscript -e "demo(ncread,'pbdNCDF4',ask=F,echo=F)"

## End(Not run)

snoweye/pbdNCDF4 documentation built on July 15, 2019, 2:01 p.m.