LeachRateRasterCreator: A function to combine spatial data sources of climate, land...

Description Usage Arguments Value Author(s)

View source: R/CASM_PrePostProcessorFunctions.R

Description

This function generates a raster object of leach rates

Usage

1
2
3
4
5
6
7
8
9
LeachRateRasterCreator(
  ClimateData = file.path(GISDataDirectory, ClimateShapeFileName),
  LanduseData = file.path(GISDataDirectory, SubZoneLanduseLUCShapeFileName),
  IrrigatedLandData = file.path(GISDataDirectory, IrrigatedLandShapeFileName),
  IrrigableLandData = file.path(GISDataDirectory, IrrigableLandShapeFileName),
  PAWData = file.path(GISDataDirectory, PAWShapeFileName),
  MPILeachRateData = file.path(DataDirectory, MPILeachRateLUTFile),
  LanduseToLanduseLUT = file.path(DataDirectory, LanduseToLanduseLUTFile)
)

Arguments

ClimateData

A spatial data file (in ESRI polygon shapefile format) of the climate regions, as used by the MPI lookup table. Unknown origins.

LanduseData

A spatial data file (in ESRI polygon shapefile format) of the land use, as used by Horizons. Unknown origins.

IrrigatedLandData

A spatial data file (in ESRI polygon shapefile format) of the irrigated land, as used by the MPI lookup table. A "1" represents irrigated. Originally sourced from the MFE data portal

IrrigableLandData

A spatial data file (in ESRI polygon shapefile format) of land that is irrigable, as used by the MPI lookup table. A "1" represents irrigable. This is based on slope and elevation, but the exact source and details of preparation are unknown.

PAWData

A spatial data file (in ESRI polygon shapefile format) of the plant available water (also known as profile available water), as used by the MPI lookup table. Originally sourced from the Fundamental Soils Layer data available from the Landcare - Manaaki Whenua data portal

MPILeachRateData

A csv file with the first 5 columns (names are not important) providing, in order: "Climate";"Landuse";"Plant Available Water depth";"Irrigable Land";"Irrigated Land". A sixth column labelled "N_loss" must also be present.

LanduseToLanduseLUT

A csv file with two columns, one designated as "MPIClassNo" with the Ministry for Primary Industries land use classes, as used in the MPILeachRateDatalookup table. The other column designated "Horizons_Landuse_Name" with the land use names as provided in the LanduseData spatial data file.

Value

A raster object of leach rates

Author(s)

Tim Kerr, Tim.Kerr@Rainfall.NZ


RainfallNZ/CASMPrePostProcessor documentation built on Oct. 14, 2021, 8:04 a.m.