print.ncdf4 | R Documentation |
Prints information about a netCDF file, including the variables and dimensions it contains.
## S3 method for class 'ncdf4'
print( x, ... )
x |
An object of class "ncdf4". |
... |
Extra arguments are passed to the generic print function. |
NetCDF files contain variables, which themselves have dimensions.
This routine prints out useful information about a netCDF file's
variables and dimensions. It is overloaded on the regular print
function, so if "nc" is an object of class "ncdf4", then just
calling print(nc)
will suffice. Objects of class
"ncdf4" are returned from nc_open
and nc_create
.
David W. Pierce dpierce@ucsd.edu
http://dwpierce.com/software
ncvar_def
## Not run:
# Open a netCDF file, print information about it
nc <- nc_open( "salinity.nc" )
print(nc)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.