Description Usage Arguments Value Examples
View source: R/getLocationsFromSimulations.R
Get the location of stations based on the mask of the observation file and the mask of the simulation file(s)
1 2 | getLocationsFromSimulations(obsFile, simFile, simVar = "OUT_DISCHARGE",
obsVar = "area_observed")
|
obsFile |
Path to the observation file. |
simVar |
Simulation variable to be used as mask. If the variable is NA, it is assumed the cell does not contain data. Variable dimensions > 2 only use the first slice of redundand dimensions. Defaults to VIC discharge variable. |
obsVar |
Observation variable to be used as mask. If the variable is NA, it is assumed the cell does not contain data. Variable dimensions > 2 only use the first slice of redundand dimensions. Defaults to GRDC number. |
simFiles |
Path to the simulation file. |
List of station locations containing lon/lat values in a vector.
1 2 3 4 | obsFile = system.file("data", "obsSampleRhine.nc", package = "dischargeValidation", mustWork = T)
simFiles = system.file("data", "simSampleRhine.nc", package = "dischargeValidation", mustWork = T)
locations = getLocationsFromSimulations(obsFile = obsFile, simFile = simFiles)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.