Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

print.ncdf4

Print Information About a netCDF File


Description

Prints information about a netCDF file, including the variables and dimensions it contains.

Usage

## S3 method for class 'ncdf4'
print( x, ... )

Arguments

x

An object of class "ncdf4".

...

Extra arguments are passed to the generic print function.

Details

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.

Author(s)

David W. Pierce dpierce@ucsd.edu

References

http://dwpierce.com/software

See Also

Examples

# Open a netCDF file, print information about it
nc <- nc_open( "salinity.nc" )
print(nc)

ncdf4

Interface to Unidata netCDF (Version 4 or Earlier) Format Data Files

v1.17
GPL (>= 3)
Authors
David Pierce <dpierce@ucsd.edu>
Initial release
2019-10-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.