catchment_convenient: find upstream catchments

Description Usage Arguments Value References Examples

View source: R/spatial.R

Description

convenient, but slower, version of catchment where only the path to the digHAO folder needs to be supplied. If you want to find catchments for multiple points in a loop use catchment instead as catchment_convenient() loads the digHAO data at each function call.

Usage

1
2
3
4
5
6
7
catchment_convenient(
  path_digHAO,
  lonlat,
  proj4string = sp::CRS("+init=epsg:4326"),
  make.plot = TRUE,
  ...
)

Arguments

path_digHAO

path to the digHAO directory as character string

lonlat

a numeric vector of length 2 with the longitue and latitude of a mappoint

proj4string

the proj4string of the provided lonlat

make.plot

logic

...

additional plotting arguments such as plot title etc.

Value

a list with index values as first and HYDROIDs as second member

References

Fürst, J. (2008): Der digitale Hydrologische Atlas Österreichs. Der Hydrologische Atlas Österreichs: Anwendung in Wasserwirtschaft und Umweltschutz, 1. Juli 2008, Universität für Bodenkultur Wien

Examples

1
2
3
4
5
6
7
## Not run: 
 path_digHAO <- 'ENTER PATH TO YOUR digHAO DIRECTORY HERE'

 lonlat <- c(16, 48.5)
 catchment_convenient(path_digHAO, lonlat)
 
## End(Not run)

konradmayer/trlboku documentation built on July 3, 2020, 9:49 p.m.