Skip to contents

Returns a list of SWAT output variables by category (reach, subbasin, or HRU), or all combined. Useful for filtering when reading SWAT output files.

Usage

get_swat_vars(type = c("all", "rch", "sub", "hru"))

Arguments

type

Character. Category of variables to return:

  • "all": Returns all available variables (default).

  • "rch": Returns variables related to reach output.

  • "sub": Returns variables related to subbasin output.

  • "hru": Returns variables related to hydrologic response units (HRU).

Value

A character vector of variable names for the selected category. If "all" is selected, a list of vectors for each category is returned.

See also

Other Output readers: output_hru(), output_rch(), output_sub(), read_pcp(), read_tmp()

Examples

# Get all SWAT variables (list by category)
get_swat_vars("all")

# Get variables for Reach (output.rch)
get_swat_vars("rch")

# Get variables for Subbasin (output.sub)
get_swat_vars("sub")

# Get variables for HRU (output.hru)
get_swat_vars("hru")