forked from dankelley/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathas.rsk.Rd
61 lines (53 loc) · 2.06 KB
/
as.rsk.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rsk.R
\name{as.rsk}
\alias{as.rsk}
\title{Coerce Data Into a Rsk Object}
\usage{
as.rsk(time, columns, filename = "", instrumentType = "rbr",
serialNumber = "", model = "", sampleInterval = NA,
debug = getOption("oceDebug"))
}
\arguments{
\item{time}{a vector of times for the data.}
\item{columns}{a list or data frame containing the measurements at the indicated
times; see \dQuote{Details}.}
\item{filename}{optional name of file containing the data.}
\item{instrumentType}{type of instrument.}
\item{serialNumber}{serial number for instrument.}
\item{model}{instrument model type, e.g. \code{"RBRduo"}.}
\item{sampleInterval}{sampling interval. If given as \code{NA}, then this is
estimated as the median difference in times.}
\item{debug}{a flag that can be set to \code{TRUE} to turn on debugging.}
}
\value{
An object of \code{\link{rsk-class}} \code{"rsk"}.
}
\description{
Create a rsk object.
}
\details{
The contents of \code{columns} are be copied into the \code{data} slot
of the returned object directly, so it is critical that the names and units
correspond to those expected by other code dealing with
\code{\link{rsk-class}} objects. If there is a conductivity, it must be called
\code{conductivity}, and it must be in units of mS/cm. If there is a
temperature, it must be called \code{temperature}, and it must be an in-situ
value recorded in ITS-90 units. And if there is a pressure, it must be
\emph{absolute} pressure (sea pressure plus atmospheric pressure) and it must
be named \code{pressure}. No checks are made within \code{as.rsk} on any of
these rules, but if they are broken, you may expect problems with any further
processing.
}
\author{
Dan Kelley
}
\seealso{
Other things related to \code{rsk} data: \code{\link{[[,rsk-method}},
\code{\link{[[<-,rsk-method}},
\code{\link{plot,rsk-method}}, \code{\link{read.rsk}},
\code{\link{rsk-class}}, \code{\link{rskPatm}},
\code{\link{rskToc}}, \code{\link{rsk}},
\code{\link{subset,rsk-method}},
\code{\link{summary,rsk-method}}
}