applyMagneticDeclination,cm-method {oce} | R Documentation |
Alter a cm Object to Account for Magnetic Declination
Description
Current-meter (cm
) instruments determine directions from onboard compasses,
so interpreting velocity components in geographical coordinates requires that
magnetic declination be taken into account. This is what the present
function does (see “Details”).
Usage
## S4 method for signature 'cm'
applyMagneticDeclination(
object = "oce",
declination = 0,
debug = getOption("oceDebug")
)
Arguments
object |
a cm object. |
declination |
numeric value holding magnetic declination in degrees, positive for clockwise from north. |
debug |
an integer specifying whether debugging information is
to be printed during the processing. This is a general parameter that
is used by many |
Details
The returned value is a copy of object
that has been modified in 4 ways.
(1) the horizontal components of velocity are rotated clockwise by
declination
degrees. (2) If the object holds heading values, then
declination
is added to them. (3) The north
item in the metadata
slot
is set to "geographic"
, and a warning is issued if this was also the value
in object
. (4) The declination
item in the metadata
slot is set to
the value supplied to this function.
Value
A cm object, adjusted as outlined in “Details”.
Author(s)
Dan Kelley
See Also
Use magneticField()
to determine the declination,
inclination and intensity at a given spot on the world, at a given time.
Other things related to magnetism:
applyMagneticDeclination,adp-method
,
applyMagneticDeclination,adv-method
,
applyMagneticDeclination,oce-method
,
applyMagneticDeclination()
,
magneticField()
Other things related to cm data:
[[,cm-method
,
[[<-,cm-method
,
as.cm()
,
cm-class
,
cm
,
plot,cm-method
,
read.cm()
,
rotateAboutZ()
,
subset,cm-method
,
summary,cm-method