importBasinForcings: Import CAMELS basin forcings

View source: R/importBasinForcings.R

importBasinForcingsR Documentation

Import CAMELS basin forcings

Description

Reads all (unless subset passed) of the basin forcing files for a given dataset (Daymet, Maurer, or NLDAS). Returns list of lists (named by basin id) with four sub items: - data (dataframe of forcing data) - gaugeLatitude - gaugeElevation - basinArea

Usage

importBasinForcings(folder, dataset, subset = NULL, verbose = TRUE, ...)

Arguments

folder

name/path basin forcing folder (e.g., 'basin_mean_forcing')

dataset

string of dataset name, one of 'DAYMET', 'MAURER', or 'NLDAS'

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.basinForcing()

Value

list of lists

Author(s)

Leland Scantlebury

Examples

basinSubset <- c('01013500','10259200','14137000',
                 '08198500','03592718','03604000')
daymetForcings <- importBasinForcings('basin_dataset_public_v1p2/basin_mean_forcing/daymet',
                                             dataset = 'daymet', subset=basinSubset)


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