nc_grid_mapping_atts: Get Grid Mapping

View source: R/nc-gridmapping.R

nc_grid_mapping_attsR 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"))

hypertidy/ncmeta documentation built on March 26, 2024, 4:22 a.m.