LUCscen: Generate a new land use change scenario in SWAT+

Description Usage Arguments

View source: R/LUCscen.R

Description

Generate a new land use change scenario in SWAT+

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
LUCscen(
  scen.name,
  textInOut.path,
  hru.shape,
  lc,
  lookup.table,
  change.yr,
  skip.copy = FALSE,
  jday = 1,
  fact.diss = NULL,
  scen.path = NULL,
  verbose = TRUE,
  exclude.uses = NULL
)

Arguments

scen.name

Object type 'character' with the name of the new scenario to be created.

textInOut.path

Path to the default 'TxtInOut' folder. The new scenario will be created from this file.

hru.shape

Spatial object of type 'SpatVector' that contains the HRUs that were created in the 'QSWAT+' project.

lc

Raster object of type 'SpatRaster' that contains the land cover for the years to be analysed.

lookup.table

A three column 'data.frame' object. The first column stores the land use values from the 'lc' object. The second column stores the SWAT_CODE as in the lookup table that is given to 'SWAT+'. Finally, the third column represents the land use (lum) identifiers from ‘SWAT+' as stored in the ’landuse.lum' file.

change.yr

Object type 'character' containing the year(s) when the land use changes take place (in chronological order).

skip.copy

Logical object. Set tu true only if the files from the default 'TxtInOut' folder have been already copied to the directory of the new scenario.

jday

Numerical value that indicates the julian day that the land use change(s) will take place (default jday = 1).

fact.diss

Factor of disaggregation of the land cover maps. Sometimes, when the HRUs are very small, this function can return NAs. Therefore, the LU maps are disaggregated using the nearest neighbour. A value of 1 means no disaggregation. See terra::disaggregate for more details.

scen.path

Path to the directory where the new scenatio will be created. If not given, the new scenario will be created in the same folder of the default scenario.

verbose

Object type 'logical'. Should the progress messages be printed?

exclude.uses

Exclude land use classes from the scenario. Currently, the change of urban and water classes cause errors in 'SWAT+'; and therefore, should be avoided.


obaezvil/swatLUC documentation built on Dec. 22, 2021, 3:23 a.m.