get_varnames: Get variable names from netcdf file

View source: R/get_varnames.R

get_varnamesR Documentation

Get variable names from netcdf file

Description

Wrapper around ncdf4.helpers::nc.get.variable.list.

Usage

get_varnames(filename)

Arguments

filename

.nc file

Value

vector of variable names

Examples

# example data from EURO-CORDEX (cropped for size)
fn1 <- system.file("extdata", "test1.nc", package = "eurocordexr")
get_varnames(fn1)


eurocordexr documentation built on Aug. 24, 2023, 9:07 a.m.