Calculate Base Flow Index (BFI) map from soil (HOST) map

RegionalisedBFIdominant(soil, catchment, lookupTable)

Arguments

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").

Value

Regionalised BFI number for a given catchment, this is in the range [0,1] and is calculated only using dominant soil classes.

Examples

## 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) ## ---------------------------------------------