read_attribute_data: Read attribute dataframe from NetCDF-DSG file

View source: R/read_attribute_data.R

read_attribute_dataR Documentation

Read attribute dataframe from NetCDF-DSG file

Description

Gets attribute data from a NetCDF-DSG file and returns it in a data.frame. This function is intended as a convenience to be used within workflows where the netCDF file is already open and well understood.

Usage

read_attribute_data(nc, instance_dim)

Arguments

nc

A NetCDF path or urlto be opened.

instance_dim

The NetCDF instance/station dimension.

Examples

hucPolygons <- sf::read_sf(system.file('extdata','example_huc_eta.json', package = 'ncdfgeom'))
hucPolygons_nc <- ncdfgeom::write_geometry(tempfile(), hucPolygons)

read_attribute_data(hucPolygons_nc, "instance")


USGS-R/netcdf.dsg documentation built on Feb. 9, 2024, 6:21 p.m.