View source: R/write_geometry.R
write_geometry | R Documentation |
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.
write_geometry(
nc_file,
geom_data,
instance_dim_name = NULL,
variables = list()
)
nc_file |
|
geom_data |
sf |
instance_dim_name |
|
variables |
|
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.