Learn R Programming

oce (version 0.8-3)

ctd-class: Class to store hydrographic data

Description

Class to store hydrographic data, with standard slots metadata, data and processingLog.

Arguments

Methods

Accessing values. Data may be accessed as e.g. ctd[["salinity"]], where the string could also be e.g. "temperature" or "pressure" for column data, or "latitude" or "longitude" for scalars. (The names of the columns are displayed with show(). The name of the source file is found with "filename".

Derived data are also available: "N2" calls swN2 to compute the square of buoyancy frequency.

Assigning values. Everything that may be accessed may also be assigned, e.g. ctd[["salinity"]] <- rep(35,10).

Overview of contents. The show method (e.g. show(ctd)) displays information about the object.

See Also

A file containing CTD profile data may be read with read.ctd, and a CTD object can also be created with as.ctd. Statistical summaries are provided by summary.ctd, while show displays an overview. CTD objects may be plotted with plot.ctd, which does much of its work by calling plotProfile or plotTS, both of which can also be called by the user, to get fine control over the plots.

The editing of CTD objects (e.g. to isolate downcasts) can be done with ctdTrim, a task made easier when plotScan is used to examine the results. CTD data may be smoothed and/or cast onto specified pressure levels with ctdDecimate. In addition to the direct accessors discussed above, low-level manipulation may be done with ctdAddColumn and ctdUpdateHeader. The contents of CTD objects may be altered with the [[]] scheme discussed in the previous section, and skilled uses may also manipulate the contents directly.