Learn R Programming

oce (version 0.8-6)

as.pt: Create an TDR temperature-depth recorder data file

Description

Create an pt temperature-depth recorder file, producing an object of type pt.

Usage

as.pt(time, temperature, pressure,
      filename="", instrumentType="rbr", serialNumber="", model="", pressureAtmospheric=NA,
      processingLog, debug=getOption("oceDebug"))

Arguments

time
a vector of times for the data.
temperature
temperatures at the give times.
pressure
pressures at the give times.
filename
optional name of file containing the data
instrumentType
type of instrument
serialNumber
serial number for instrument
model
instrument model type, e.g. "RBRduo"
pressureAtmospheric
optional atmospheric pressure, in the same unit as seawater pressure
processingLog
if provided, the action item to be stored in the log. (Typically only provided for internal calls; the default that it provides is better for normal calls by a user.)
debug
a flag that can be set to TRUE to turn on debugging.

Value

  • An object of class "pt", which is a list with elements detailed below.
  • dataa data table containing the time, temperature, and pressure data.
  • metadataa list containing the following items [object Object],[object Object],[object Object],[object Object]
  • processingLoga processingLog of processing, in the standard oce format.

Details

This is used by read.pt to create pt objects.

See Also

The documentation for pt-class explains the structure of PT objects, and also outlines the other functions dealing with them.