importHRUs: Import CAMELS HRU Daymet forcings

View source: R/importHRUs.R

importHRUsR Documentation

Import CAMELS HRU Daymet forcings

Description

Reads all (unless subset passed) of the HRU forcing files. Returns list of lists - outer most list index is the basin id, which give access to a list indexed by the basin's HRU ids. The HRU list contains four slots: - data (dataframe of HRU forcing data) - gaugeLatitude - HRUElevation - HRUArea

Usage

importHRUs(folder, subset = NULL, verbose = TRUE, ...)

Arguments

folder

name/path HRU forcing folder (e.g., 'hru_forcing')

subset

string vector of basin ids to import (optional, otherwise imports all)

verbose

T/F to determine whether to print importing status

...

optional arguments passed to read.HRUForcing()

Value

list of lists (of lists)

Author(s)

Leland Scantlebury

Examples

basinSubset <- c('01013500','10259200','14137000',
                 '08198500','03592718','03604000')
HRUForcings <- importHRUs(folder = 'basin_dataset_public_v1p2/hru_forcing/daymet/',
                          subset = basinSubset )

scantle/caRmels documentation built on Dec. 10, 2022, 8:13 a.m.