read.infos.rivers: Read csv file with information on rivers and return it in a...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/read.infos.rivers.R

Description

Columns in the csv file: id, name, lat, lon, grid, ycell, xcell, filename

Usage

1
read.infos.rivers(filename, grids)

Arguments

filename

path and name of the csv file with river information

grids

nested list with grid definitions: grids$fine and grids$coarse are grid definitions of the fine and coarse, respectively BSH-HBM grids

Details

Elements of the output list: filename, lon, lat, xcell, ycell, grid, riverid, rivername

Value

nested list with grid information it contains:

Author(s)

Daniel Neumann, daniel.neumann@io-warnemuende.de

See Also

get.infos.grids.hbm.basic

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
  
  # get grid info:
  grid_info <- get.infos.grids.hbm.basic()
  
  # set filename
  file <- 'files/river_list.dat'
  
  # get river infos
  riverInfos <- read.infos.rivers(file, grid_info)
  # (you will get some warnings here)
  
Elements of the output list:
  filename
  lon
  lat
  xcell
  ycell
  grid [fine,coarse]
  riverid
  rivername

neumannd/riverdata documentation built on March 4, 2020, 4:22 a.m.