write_geometry {ncdfgeom} | R Documentation |
Write geometries and attributes to NetCDF-CF
Description
Creates a file with point, line or polygon instance data ready for the extended NetCDF-CF timeSeries featuretype format.
Will also add attributes if provided data has them.
Usage
write_geometry(
nc_file,
geom_data,
instance_dim_name = NULL,
variables = list()
)
Arguments
nc_file |
|
geom_data |
sf |
instance_dim_name |
|
variables |
|
References
Examples
hucPolygons <- sf::read_sf(system.file('extdata','example_huc_eta.json', package = 'ncdfgeom'))
hucPolygons_nc <- ncdfgeom::write_geometry(nc_file=tempfile(),
geom_data = hucPolygons)
try({
ncdump <- system(paste("ncdump -h", hucPolygons_nc), intern = TRUE)
cat(ncdump ,sep = "\n")
}, silent = TRUE)
[Package ncdfgeom version 1.1.6 Index]