getLocationsFromBoundingBox: Get the location of stations based on the mask of the...

Description Usage Arguments Value Examples

View source: R/getLocationsFromBoundingBox.R

Description

Get the location of stations based on the mask of the observation file and a bounding box

Usage

1
2
getLocationsFromBoundingBox(obsFile, boundingBox,
  obsVar = "area_observed")

Arguments

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.

Value

List of station locations containing lon/lat values in a vector.

Examples

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))

BramDr/dischargeValidation documentation built on Sept. 3, 2019, 1:57 p.m.