View source: R/RegionalisedCN.R
| RegionalisedCN | R Documentation |
Calculate Curve Number for soil (HOST) and vegetation (LCM) maps
RegionalisedCN(soil, catchment, lookupTable, vegetation, artificialDrainage = "none")
soil |
filename of a shapefile containing the percentage coverage of HOST classes |
catchment |
SpatialPolygonsDataFrame containing a single catchment boundary to be used as mask to crop the raster. |
lookupTable |
this is a data.frame to link soil, vegetation and Hydrological conditions. |
vegetation |
filename of a raster containing the vegetation map. |
artificialDrainage |
(default = "none"), possible values are none, low, medium, high. |
Please make sure that soil, catchment and vegetation are projected in the same Coordinate Reference System (for info see http://spatialreference.org/).
Regionalised Curve Number for a given catchment, this is an integer in the range [0,100] with 0 = no runoff and 100 = all rainfall becomes runoff.
## Not run:
# Load Plynlimon sub-catchments spatial polygons data frame
data("PlynlimonSUBCATCHMENTS")
# Load soil map (HOST percentage distribution of classes)
data("PlynlimonSOIL")
# Load land cover (VEGETATION 2013) MAP
data("PlynlimonVEG")
# Load lookup table
dfLookup <- MakeLoopkupTable("Severn&Wye")
cn <- RegionalisedCN(soil = PlynlimonSOIL,
catchment = PlynlimonSUBCATCHMENTS[1,],
lookupTable = dfLookup,
vegetation = PlynlimonVEG,
artificialDrainage = "none")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.