Description Usage Arguments Value Examples
View source: R/getLocationsFromBoundingBox.R
Get the location of stations based on the mask of the observation file and a bounding box
1 2 | getLocationsFromBoundingBox(obsFile, boundingBox,
obsVar = "area_observed")
|
obsFile |
Path to the observation file. |
boundingBox |
Vector containing minimum longitude, maximum longitude, minimum latitude, maximum latitude (in that order) |
obsVar |
bservation 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. |
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 = getLocationsFromBoundingBox(obsFile = obsFile, boundingBox = c(6.75,10.25,47.75,51.25))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.