seasonder_MUSICBearing2GeographicalBearing {SeaSondeR} | R Documentation |
Convert MUSIC Bearings to Geographic Bearings
Description
This function converts MUSIC bearings (relative to the antenna) into geographic bearings using the antenna's bearing information from a SeaSondeRAPM
object.
Usage
seasonder_MUSICBearing2GeographicalBearing(bearings, seasonder_apm_object)
Arguments
bearings |
A list of numeric vectors containing MUSIC bearings in degrees. Each vector corresponds to a set of bearings relative to the antenna. |
seasonder_apm_object |
A |
Details
The geographic bearing is calculated by:
Multiplying the MUSIC bearings by -1 to invert their direction.
Adjusting the angles to the range [0, 360) using modulo 360.
Adding the antenna bearing to each value and wrapping the result to the range [0, 360) again using modulo 360.
The formula for each bearing is: geo_bearing = ((-1 * music_bearing \\\%\\\% 360) + antenna_bearing) \\\%\\\% 360
.
Value
A list of numeric vectors containing the geographic bearings in degrees.