Used to generate a blank HRU table that can be filled in by the user. Compatible with rvn_rvh_write.

rvn_rvh_blankHRUdf(nHRUs = 1, subbasinIDs = NULL)

Arguments

nHRUs

Number of HRUs, used to determine number of rows in table (default = 1)

subbasinIDs

Subbasins that HRUs belong to (default = all equal 1)

Value

data.frame of blank HRU properties to be filled in by user

Details

Note that if the length of the subbasinIDs vector is greater than the number of HRUs (nHRUs) specified, this will create a table with HRUs belonging to multiple subbasins, which is not feasible. A warning will be issued that the table will need to be modified for hydrologic consistency.

See also

rvn_rvh_blankSBdf to generate blank subbasin data frame

Author

Leland Scantlebury

Examples

HRUtable <- rvn_rvh_blankHRUdf(nHRUs = 3, subbasinIDs=c(1,1,2))
HRUtable
#>   ID Area Elevation Latitude Longitude SBID LandUse Vegetation SoilProfile
#> 1  1    0         0        0         0    1      NA         NA          NA
#> 2  2    0         0        0         0    1      NA         NA          NA
#> 3  3    0         0        0         0    2      NA         NA          NA
#>   Terrain Aquifer Slope Aspect
#> 1  [NONE]  [NONE]     0      0
#> 2  [NONE]  [NONE]     0      0
#> 3  [NONE]  [NONE]     0      0

# fewer nHRUs than subbasinIDs specified
rvn_rvh_blankHRUdf(nHRUs = 1, subbasinIDs=c(1,2))
#> Warning: nHRUs is less than the subbasinIDs specified, table will need to be modified for hydrologic consistency.
#>   ID Area Elevation Latitude Longitude SBID LandUse Vegetation SoilProfile
#> 1  1    0         0        0         0    1      NA         NA          NA
#> 2  1    0         0        0         0    2      NA         NA          NA
#>   Terrain Aquifer Slope Aspect
#> 1  [NONE]  [NONE]     0      0
#> 2  [NONE]  [NONE]     0      0