Learn R Programming

oce (version 0.9-17)

as.logger: Create a logger object

Description

Create a logger object.

Usage

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

Arguments

time
a vector of times for the data, or an object of class ctd; in the second case, the class is simply changed to logger and time is returned. This is a way to undo the assignment of ctd class by
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 "logger", 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.logger to create logger objects.

See Also

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