View source: R/importBasinForcings.R
importBasinForcings | R Documentation |
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
importBasinForcings(folder, dataset, subset = NULL, verbose = TRUE, ...)
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() |
list of lists
Leland Scantlebury
basinSubset <- c('01013500','10259200','14137000', '08198500','03592718','03604000') daymetForcings <- importBasinForcings('basin_dataset_public_v1p2/basin_mean_forcing/daymet', dataset = 'daymet', subset=basinSubset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.