View source: R/nctools-auxiliar.R
ncatt_put_all | R Documentation |
Put several attributes to a ncdf object
ncatt_put_all( nc, varid, attname, attval, prec = NA, verbose = FALSE, definemode = FALSE )
nc |
An open connection to a netCDF file as in nc_open(file). |
varid |
The variable whose attribute is to be written. Can be a character string with the variable's name, an object of class ncvar4, or an id contained in the "id" field of a ncvar object. As a special case, if varid==0, then a global attribute is written instead of a variable's attribute. |
attname |
The names of the attributes. |
attval |
The values of the attributes. |
prec |
Precision to write the attribute. |
verbose |
Can be set to TRUE if additional information is desired while the attribute is being created. |
definemode |
See 'definemode' in ncatt_put for details. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.