Learn R Programming

oce (version 0.1-76)

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

Details

The ctd stations must share identical pressure values; use section.grid to do that.

See Also

read.ctd reads CTD data. section is a sample data set.

Examples

Run this code
library(oce)
data(ctd)
ctd.warmed <- ctd
ctd.warmed$data$temperature <- ctd.warmed$data$temperature + 0.5
ctd.warmed$metadata$latitude <- ctd.warmed$metadata$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