nc_grid_mapping_atts {ncmeta} | R Documentation |
Get Grid Mapping
Description
Get the grid mapping from a NetCDF file
Usage
nc_grid_mapping_atts(x, data_variable = NULL)
## S3 method for class 'character'
nc_grid_mapping_atts(x, data_variable = NULL)
## S3 method for class 'NetCDF'
nc_grid_mapping_atts(x, data_variable = NULL)
## S3 method for class 'data.frame'
nc_grid_mapping_atts(x, data_variable = NULL)
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 |
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.
Examples
nc_grid_mapping_atts(system.file("extdata/daymet_sample.nc", package = "ncmeta"))
[Package ncmeta version 0.4.0 Index]