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

Description Usage Arguments Value Examples

View source: R/getLocationsFromSimulations.R

Description

Get the location of stations based on the mask of the observation file and the mask of the simulation file(s)

Usage

1
2
getLocationsFromSimulations(obsFile, simFile, simVar = "OUT_DISCHARGE",
  obsVar = "area_observed")

Arguments

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.

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 = getLocationsFromSimulations(obsFile = obsFile, simFile = simFiles)

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