Learn R Programming

ncmeta (version 0.4.0)

nc_grid_mapping_atts: Get Grid Mapping

Description

Get the grid mapping from a NetCDF file

Usage

nc_grid_mapping_atts(x, data_variable = NULL)

# S3 method for character nc_grid_mapping_atts(x, data_variable = NULL)

# S3 method for NetCDF nc_grid_mapping_atts(x, data_variable = NULL)

# S3 method for data.frame nc_grid_mapping_atts(x, data_variable = NULL)

Value

tibble containing attributes that make up the file's grid_mapping. A data_variable column is included to indicate which data variable the grid mapping belongs to.

Arguments

x

open NetCDF object, character file path or url to be opened with RNetCDF::open.nc, or data.frame as returned from ncmeta::nc_atts

data_variable

character variable of interest

Examples

Run this code

nc_grid_mapping_atts(system.file("extdata/daymet_sample.nc", package = "ncmeta"))

Run the code above in your browser using DataLab