cellBasins: Identification of the Cells within a basin

Description Usage Arguments Value Author(s) Examples

View source: R/cellBasins.R

Description

This function identifies the cells that are within a basin. The runoff produced by those cells will be used, either to calculate the water availability or to compare the simulated variable with the observed runoff in certain streamflow gauges.

Usage

1
cellBasins(gruLoc, basins)

Arguments

gruLoc

raster file that was used to build GRUs. In this function will be used to number each cell from West to East and from North to South.

basins

a shapefile that is comprised each one of the basins where the modeller wants to know the runoff. It must be in the same projection of the gruLoc raster.

Value

a list that comprise two dataframes. The first one, the list of cells in each of the basins contained in the shapefile (cellBasins), and second a table that associates the coordinates of each cell with the assigned number (cellTable).

Author(s)

Pedro Felipe Arboleda Obando <pfarboledao@unal.edu.co>
Nicolas Duque Gardeazabal <nduqueg@unal.edu.co>
Carolina Vega Viviescas <cvegav@unal.edu.co>
David Zamora <dazamoraa@unal.edu.co>

Water Resources Engineering Research Group - GIREH Universidad Nacional de Colombia - sede Bogota

Examples

1
2
data("GRU","basins")
cellBasins <- cellBasins(GRU, basins)

dazamora/DWBmodelUN documentation built on Aug. 29, 2020, 11:41 a.m.