Learn R Programming

ncmeta (version 0.4.0)

nc_inq: File info

Description

Get information about a NetCDF data source, may be a file path, or a RNetCDF file handle, or an OpenDAP/Thredds server address.

Usage

nc_inq(x, ...)

# S3 method for NetCDF nc_inq(x, ...)

# S3 method for character nc_inq(x, ...)

Arguments

x

filename or handle

...

ignored

Examples

Run this code
# \donttest{
if (FALSE) {
 f <- raadfiles:::cmip5_files()$fullname[1]
 nc_inq(f)
 nc_var(f, 0)
 nc_dim(f, 0)
 }
# }
f <- system.file("extdata", "S2008001.L3m_DAY_CHL_chlor_a_9km.nc", package = "ncmeta")
nc_inq(f)
nc_var(f, 0)
nc_dim(f, 0)

nc_vars(f)
nc_dims(f)

Run the code above in your browser using DataLab