cellBasins: Identification of the Cells within a basin
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
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).