set_direc: Revise the flow direction of the flow direction data.

Description Usage Arguments Value

View source: R/vic_relevents.R

Description

Revise the flow direction of the flow direction data created by create_flow_direction().

Usage

1
set_direc(direc_grid, row, col, direc, arc_code = TRUE, keypad_dir = TRUE)

Arguments

direc_grid

Flow direction data created by create_flow_direction().

row

Row of the gridcell to be revised.

col

Column of the gridcell to be revised.

direc

New flow direction of the gridcell. For more convinient calibration, the direction code is sat as the keypad. It means that 1 is southwest, 2 is south, 3 is southeast, and so on. set keypad_dir to FALSE can revise the direction code directly.

arc_code

If use the ArcInfo flow direction code.

keypad_dir

If use keypad flow direction code.

Value

The flow direction data after revise.


Sibada/sibadaR documentation built on Jan. 31, 2020, 6:40 p.m.