SWATsubGage: Formats SWAT subbasin files to user specifications. Defaults support use of getSWATcfsr.

Description

Formats SWAT subbasin files to user specifications. Defaults support use of getSWATcfsr.

Usage

1
SWATsubGage(wd, outDir = "", numPars = 5, basinCentroid = FALSE)

Arguments

wd

- String. location of the subbasin files to be formatted. Generally this is the TxtInOut folder generated when building a SWAT project.

outDir

- String. The location to write the formatted subbasin files. By default, this is the same as the wd, and will overwrite exising subbasin files.

numPars

- Integer. Number of measured weather parameters used in the model. Ranges from 1 to 5 with 1 as precipitation only, 2 as precipitation and temperature, 3 as precipitation, temperature, and solar radiation, 4 as precipitation, temperature, solar radiation, and relative humidity, and 5 as precipitaion, temperature, solar radiation, relative humididty, and wind speed. Default is 5, or all parameters are formatted as measured inputs.

basinCentroid

- Logical. If TRUE, then all gage location flags are set to "1", meaning there is a single time series for each of the specified measured meterological inputs. Only use if a subbain center approximation of meteorological data is being used. Defaults to FALSE, or each subbasin has a corresponding time series in each measured meteorological input file.

Value

returns formatted subbasin files in the outDir location. If outDir is not specified files are saved to the wd location and any exising files are overwritten.

Examples

1
2
3
4
## Not run: 
SWATsubGaged(wd = '~/SWAT_PROJECT_FOLDER/TxtInOut')

## End(Not run)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.