Description Usage Arguments Value Author(s) See Also Examples
View source: R/read_r2c_shed.R
This function reads in a file containing the layers which
define a MESH watershed. To read in a file of timeseries, use the function
r2c2raster
.
1 | read_r2c_shed(r2cFile = "", values_only = TRUE, as_rasters = TRUE)
|
r2cFile |
Required. Name of |
values_only |
Optional. If |
as_rasters |
Optional. If |
Returns either an array or a raster brick of values, and optionally, the meta data and file header.
Kevin Shook
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# read in basin as a raster brick
basin <- read_r2c_shed("MESH_drainage_database.r2c")
# read in as an array
basin_array <- read_r2c_shed("MESH_drainage_database.r2c", as_rasters = FALSE)
# get meta data as well
basin_array <- read_r2c_shed("MESH_drainage_database.r2c", values_only = FALSE,
as_rasters = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.