forked from dankelley/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathas.adp.Rd
74 lines (66 loc) · 2.37 KB
/
as.adp.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
61
62
63
64
65
66
67
68
69
70
71
72
73
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adp.R
\name{as.adp}
\alias{as.adp}
\title{Create an ADP Object}
\usage{
as.adp(time, distance, v, a = NULL, q = NULL, orientation = "upward",
coordinate = "enu")
}
\arguments{
\item{time}{of observations in POSIXct format}
\item{distance}{to centre of bins}
\item{v}{array of velocities, with first index for time, second for bin number, and third for beam number}
\item{a}{amplitude, a \code{\link{raw}} array with dimensions matching \code{u}}
\item{q}{quality, a \code{\link{raw}} array with dimensions matching \code{u}}
\item{orientation}{a string indicating sensor orientation, e.g. \code{"upward"} and \code{"downward"}}
\item{coordinate}{a string indicating the coordinate system, \code{"enu"}, \code{"beam"}, \code{"xy"}, or \code{"other"}}
}
\value{
An object of \code{\link{adp-class}}.
}
\description{
Create an ADP Object
}
\details{
Construct an object of \code{\link{adp-class}}. Only a basic
subset of the typical \code{data} slot is represented in the arguments
to this function, on the assumption that typical usage in reading data
is to set up a nearly-blank \code{\link{adp-class}} object, the \code{data}
slot of which is then inserted. However, in some testing situations it
can be useful to set up artificial \code{adp} objects, so the other
arguments may be useful.
}
\examples{
data(adp)
t <- adp[["time"]]
d <- adp[["distance"]]
v <- adp[["v"]]
a <- as.adp(time=t, distance=d, v=v)
\dontrun{
plot(a)
}
}
\author{
Dan Kelley
}
\seealso{
Other things related to \code{adp} data: \code{\link{[[,adp-method}},
\code{\link{[[<-,adp-method}}, \code{\link{adp-class}},
\code{\link{adp}}, \code{\link{beamName}},
\code{\link{beamToXyzAdp}}, \code{\link{beamToXyzAdv}},
\code{\link{beamToXyz}}, \code{\link{beamUnspreadAdp}},
\code{\link{binmapAdp}}, \code{\link{enuToOtherAdp}},
\code{\link{enuToOther}}, \code{\link{plot,adp-method}},
\code{\link{read.adp.nortek}},
\code{\link{read.adp.rdi}},
\code{\link{read.adp.sontek.serial}},
\code{\link{read.adp.sontek}}, \code{\link{read.adp}},
\code{\link{read.aquadoppHR}},
\code{\link{read.aquadoppProfiler}},
\code{\link{read.aquadopp}},
\code{\link{subset,adp-method}},
\code{\link{summary,adp-method}}, \code{\link{toEnuAdp}},
\code{\link{toEnu}}, \code{\link{velocityStatistics}},
\code{\link{xyzToEnuAdp}}, \code{\link{xyzToEnu}}
}