detect_basin: Find out the gridcells in the basin controled by the station.

Description Usage Arguments Value

View source: R/vic_relevents.R

Description

Offer the grid of flow direction and the site (row and column) of the hydrological station and returns a table of the coordinates of the gridcells in the basin controled by the station.

Usage

1
2
detect_basin(dir, stn_col, stn_row, arc_code = TRUE, xcor = NULL,
  ycor = NULL, csize = NULL, get_coords = FALSE)

Arguments

dir

Direction grid created by create_flow_direction() or a matrix.

stn_col

Column of the hydrological station

stn_row

Row of the hydrological station

arc_code

If use the ArcInfo direction code. Default True.

xcor

X coordinate of the corner of the grid. Should offered if dir is a matrix.

ycor

Y coordinate of the corner of the grid. Should offered if dir is a matrix.

csize

Size of the gridcells. Should offered if dir is a matrix.

get_coords

If return the coordinates of the gridcells of the basin, or return the rows and columns.

Value

A data frame contains the coordinates of the gridcells in the basin.


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