Learn R Programming

oce (version 0.2-1)

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="",
      history, 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
history
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]
  • historya history of processing, in the standard oce format.

Details

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

See Also

This is used by read.pt, and the help for the latter function lists other relevant functions.