View source: R/RegionalisedBFIdominant.R
| RegionalisedBFIdominant | R Documentation |
Calculate Base Flow Index (BFI) map from soil (HOST) map
RegionalisedBFIdominant(soil, catchment, lookupTable)
soil |
filename of a raster containing the dominant soil classes (HOST). |
catchment |
SpatialPolygonsDataFrame containing a single catchment boundary to be used as mask to crop the raster. |
lookupTable |
A dataframe containing as many rows as the number of soil classes and at least two columns (named "HOSTclass" and "BFIHOST"). |
Regionalised BFI number for a given catchment, this is in the range [0,1] and is calculated only using dominant soil classes.
## Not run:
# Load Plynlimon sub-catchments spatial polygons data frame
data("PlynlimonSUBCATCHMENTS")
# Load soil map (HOST dominant classes)
data("PlynlimonSOILdominant")
# Load lookup table
data("S1")
bfi <- RegionalisedBFIdominant(soil = PlynlimonSOILdominant,
catchment = PlynlimonSUBCATCHMENTS[1,],
lookupTable = S1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.