Learn R Programming

satin (version 1.2.0)

name_ncvars: 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)

Value

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

Arguments

nc

name of a netCDF file.

Author

Héctor Villalobos.

Details

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

Examples

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

Run the code above in your browser using DataLab