-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathuseHeading.Rd
29 lines (27 loc) · 873 Bytes
/
useHeading.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/oce.R
\name{useHeading}
\alias{useHeading}
\title{Replace the Heading for One Instrument With That of Another}
\usage{
useHeading(b, g, add = 0)
}
\arguments{
\item{b}{object holding data from an instrument whose heading is bad, but
whose other data are good.}
\item{g}{object holding data from an instrument whose heading is good, and
should be interpolated to the time base of \code{b}.}
\item{add}{an angle, in degrees, to be added to the heading.}
}
\value{
A copy of \code{b}, but with \code{b$data$heading} replaced with
heading angles that result from linear interpolation of the headings in
\code{g}, and then adding the angle \code{add}.
}
\description{
Replace the heading angles in one oce object with that from another,
possibly with a constant adjustment.
}
\author{
Dan Kelley
}