Learn R Programming

ncdfgeom (version 1.1.6)

read_attribute_data: 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

Run this code
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")

Run the code above in your browser using DataLab