Learn R Programming

oce (version 0.9-19)

read.observatory.ctd: Read observatory data CTD file

Description

This is a preliminary version of a function that may be extended or deleted in a future version of Oce. Part of the uncertainty is that the format was inferred from inspection of files, and this is a dangerous procedure, path because the data archiver might alter formats in future.

Usage

read.observatory.ctd(file, debug = getOption("oceDebug"), processingLog, ...)

Arguments

file
a connection or a character string giving the name of the file to load.
debug
a flag that turns on debugging. Set to 1 to get a moderate amount of debugging information, or to 2 to get more.
processingLog
if provided, the action item to be stored in the log. (Typically only provided for internal calls; the default that it provides is better for normal calls by a user.)
...
additional arguments, passed to called routines.

Value

An object of class "ctd".

References

http://venus.uvic.ca/data/data-archive/

See Also

The documentation for ctd-class explains the structure of ctd objects, and also outlines the other functions dealing with them.

Examples

Run this code
library(oce)
## Not run: 
# ctd <- read.oce("data.txt")
# ## mooring data are not profiles, so show timeseries
# par(mfrow=c(3,1))
# oce.plot.ts(ctd[["time"]], ctd[["pressure"]])
# oce.plot.ts(ctd[["time"]], ctd[["salinity"]])
# oce.plot.ts(ctd[["time"]], ctd[["temperature"]])
# ## End(Not run)

Run the code above in your browser using DataLab