as.CTD {oce}R Documentation

Coerce data into CTD dataset

Description

Coerces a dataset into a CTD dataset.

Usage

thectd <- as.CTD(
S, T, p, header=NULL, filename=NA, ship=NA, scientist=NA, institute=NA, address=NA,
cruise=NA, mooring=NA, date=NA, start.time=NA, start.time.list=NA,
latitude=NA, latitude.dec=NA,
longitude=NA, longitude.dec=NA,
recovery=NA,
water.depth=NA,
sample.interval=NA)

Arguments

S Salinity through the water column.
T Temperature through the water column.
p pressure through the water column.
header ignored, for now
filename ignored, for now
ship ignored, for now
scientist ignored, for now
institute ignored, for now
address ignored, for now
cruise ignored, for now
mooring ignored, for now
date ignored, for now
start.time ignored, for now
start.time.list ignored, for now
latitude ignored, for now
latitude.dec ignored, for now
longitude ignored, for now
longitude.dec ignored, for now
recovery ignored, for now
water.depth ignored, for now
sample.interval ignored, for now

Details

This is helpful if data were created, not read in from a file.

Value

A ctd object.

Author(s)

Dan Kelley Dan.Kelley@Dal.Ca

References

See Also

read.ctd reads data,

Examples

library(oce)
p <- seq(0,100,1)
T <- 10 - p / 100
S <- 35 - p / 100
ctd <- as.CTD(S, T, p)
summary(ctd)

[Package oce version 0.1.59 Index]