load.bathy: Import lake bathymetry data.

Description Usage Arguments Value See Also Examples

Description

Imports lake bathymetry data. Bathymetric data file must be a 2 column array where depth (in meters) and area (in meters^2) information are provided in columns with headers containing the words "depths" and "areas" respectively.

Usage

1
load.bathy(fPath)

Arguments

fPath

File path to the bathymetry file.

Value

data.frame of depth and area for given lake.

See Also

load.ts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  #Get the path for the package example file included
  exampleFilePath <- system.file('extdata', 'Sparkling.bth', package="rLakeAnalyzer")
  
  #Load and plot the hypsometric curve
  sparkling.bathy = load.bathy(exampleFilePath)
  
  #If successful, there will be two colums. "depths", and "areas".
  plot(sparkling.bathy$areas, sparkling.bathy$depths, type='l', ylim=c(20,0), 
    ylab='Depths (m)', xlab='Areas (m^2)')
  

rLakeAnalyzer documentation built on June 10, 2019, 1:02 a.m.