write_r2c_shed: Write MESH watershed data to r2c file

Description Usage Arguments Value Author(s) See Also Examples

View source: R/write_r2c_shed.R

Description

Write MESH watershed data to r2c file

Usage

1
write_r2c_shed(basin, header, r2cFile = "")

Arguments

basin

Required. The values defining the basin parameters, as read in by read_r2c_shed. Can either be and array or a raster brick.

header

Required. The header lines from the basin r2c file, as read in by read_r2c_shed

r2cFile

Required. The file to be written.

Value

If successful, returns TRUE. If unsucessful, returns FALSE

Author(s)

Kevin Shook

See Also

read_r2c_shed

Examples

1
2
3
4
5
6
7
8
## Not run: 
# read in basin
shed <- read_r2c_shed("MESH_drainage_database.r2c", values_only = FALSE, 
as_rasters = FALSE)
# write as another file
write_r2c_shed(shed$basin, shed$header_lines, "new_basin.r2c")

## End(Not run)

CentreForHydrology/MESHr documentation built on Jan. 11, 2021, 8:34 p.m.