Soil and Vegetation code to CN, and corrects it based on drainage level, if needed.

SoilandVeg2CN(soilCODE, vegetationCODE, lookupTable,
  artificialDrainage = "none")

Arguments

soilCODE
soil class code (e.g. for the HOST system this is an integer in the range [1,29]).
vegetationCODE
vegetation class code (e.g. for the UK vegetation map 2013 this is an integer in the range [1,10]).
lookupTable
this is a data.frame to link Soil, Vegetation and Hydrological conditions.
artificialDrainage
(default = "none"), possible values are none, low, medium,high.

Value

Curve Number for a single raster cell, this is an integer in the range [0,100] with 0 = no runoff and 100 = all rainfall becomes runoff.

Examples

## Not run: ------------------------------------ # # Load lookup table # dfLookup <- MakeLoopkupTable("Fair woods + Poor pasture") # cnLocal <- SoilandVeg2CN(soilCODE = 15, # vegetationCODE = 6, # lookupTable = dfLookup, # artificialDrainage = "none") ## ---------------------------------------------