name_ncvars: Get names of variables in a netCDF file

View source: R/name_ncvars.R

name_ncvarsR Documentation

Get names of variables in a netCDF file

Description

This function returns names and long names of the variables in a netCDF file.

Usage

name_ncvars(nc)

Arguments

nc

name of a netCDF file.

Details

This function provides a practical way to know which variables are contained in a netCDF file before importing the data.

Value

This function only displays the number of variables, their names, and corresponding long names.

Author(s)

Héctor Villalobos.

Examples

if(interactive()){
  name_ncvars("global-reanalysis-phy-001-030-monthly_1553098099635.nc")
}


satin documentation built on Nov. 5, 2025, 7:09 p.m.