Description Usage Arguments Value Examples
Get validation data object for further analysis
1 2 3 4 |
obsFile |
Path to the observation file. |
simFiles |
Path to the simulation file(s). This can also be an empty vector. |
locations |
List of station locations containing lon/lat values in a vector. |
simOrigins |
Date origin of the simulation(s). A value per simulation file is required. Defaults to VIC origin. |
simVars |
Variable name of the simulation(s) to retreive. A value per simulation file is required. Defaults to VIC discharge variable. |
simSkips |
Number of months to skip for the simulation(s). A value per simulation file is required. Defaults to 0. |
obsOrigin |
Date origin of the observations. |
obsVar |
Variable name of the observations to retreive. |
attVars |
Variable name of attribute(s) to retrieve. If "all" is used, all attributes are retrieved. A variable is recognized as an attribute if it has only lon & lat dimensions (characters can have three dimensions to form strings). |
An object containing values for nloc, nsim, ntime, time, observations, simulations and the requested attributes
1 2 3 4 5 | obsFile = system.file("data", "obsSampleRhine.nc", package = "dischargeValidation", mustWork = T)
simFiles = system.file("data", "simSampleRhine.nc", package = "dischargeValidation", mustWork = T)
locations = getLocationsFromBoundingBox(obsFile = obsFile, boundingBox = c(6.75,10.25,47.75,51.25))
data = getData(obsFile = obsFile, simFiles = simFiles, location = locations[1:4])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.