Learn R Programming

oce (version 0.1.69)

make.section: Bind CTD profiles together into a cross section

Description

Combine a series of CTD profiles together to create a section.

Usage

make.section(item, ...)

Arguments

item
Either a CTD object, in which case the rest of the arguments are other CTD objects, or a list of ctd objects.
...
A list of CTD objects, either given as separate arguments (the normal procedure) or as a list.

Value

  • A section object.

Details

Caution. This is still in development, and the syntax may change without notice. Decisions need to be made about whether the stations should be decimated to the same levels, whether they should be in some spatial or temporal order, etc.

See Also

read.ctd reads CTD data.

Examples

Run this code
library(oce)
data(ctd)
ctd.warmed <- ctd
ctd.warmed$data$temperature <- ctd.warmed$data$temperature + 0.5
ctd.warmed$latitude <- ctd.warmed$latitude + 0.1
section <- make.section(ctd, ctd.warmed)
summary(section)
plot(section, at=c(1,2), labels=c("Original","Warmed"))

Run the code above in your browser using DataLab