Convert MUSIC Bearings to Geographic Bearings
Source:R/SeaSondeRCS_MUSIC.R
seasonder_MUSICBearing2GeographicalBearing.Rd
This function converts MUSIC bearings (relative to the antenna) into geographic bearings using the antenna's bearing information from a SeaSondeRAPM
object.
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\).