Learn R Programming

oce (version 0.2-1)

ctdUpdateHeader: Update a CTD header

Description

Update the header of a ctd object

Usage

ctdUpdateHeader(x, debug=FALSE)

Arguments

x
A ctd object, e.g. as read by read.ctd.
debug
Set to TRUE for debugging.

Value

  • A new ctd object.

Details

Update the header of a ctd object, e.g. adjusting nvalues and the span of each column. This is done automatically by ctdTrim, for example.

References

The Seabird CTD instrument is described at http://www.seabird.com/products/spec_sheets/19plusdata.htm.

See Also

read.ctd reads a ctd object, and write.ctd writes one.

Examples

Run this code
library(oce)
data(ctd) 
ctd$data$p <- ctd$data$p + 3 # adjust pressures
ctdNew <- ctdUpdateHeader(ctd)

Run the code above in your browser using DataLab