reduct.compass()

Scientific results for this function.

F01 examines magnetic and solar reductions against independent references. F01 study and results.

W02 checked north-crossing magnetic readings against the supplied corrections before passing true bearings into a skyline analysis. W02 results.

Function index

Magnetic north differs from true north at the time and place of survey. Add the supplied magnetic declination to each magnetic bearing, or calculate it from the survey coordinates and date with mag.dec. Corrected bearings are rounded using the input bearing representation. With an explicit altitude or a measured horizon, the corrected bearing also enters the conversion to declination.

Supply either a measurement date or a known magnetic declination. If both are given, the supplied magnetic declination is used and the date is retained in the output. Explicit altitude values take precedence over a horizon profile. Otherwise, each measurement's corrected true azimuth is used to retrieve its horizon altitude; the same altitude is reported and used to calculate celestial declination. Supply one site and date for the whole survey or one location row and/or date per bearing, in measurement order. A supplied correction can likewise be shared or paired with each bearing.

Source and date of the magnetic correction.

Implementation arguments, return value and documented modes
Argument Formal default Behaviour in this interface
loc —

Location, either a skyscapeR.horizon or a vector containing the latitude, longitude and elevation of location, in this order.

mag.az —

Array of magnetic azimuth measurements.

date —

Date of measurements as a string in the format: 'YYYY/MM/DD'. Only necessary if magdec is not given. When omitted, the output Date column contains missing values (NA).

magdec —

Magnetic declination, if known.

alt —

Altitude, necessary for automatic declination calculation. If missing and loc is a skyscapeR.horizon object then the altitude will be automatically read from the horizon profile.

name —

Names or labels to identify each measurement.

ID —

IDs or codes to identify each measurement.

HWT.ID —

HeyWhatsThat IDs relating to a previously generated horizon profile for measurement.

Return value

A data frame with one row per measurement, including location, magnetic azimuth, date, magnetic declination and true azimuth. Altitude and celestial declination are included when altitudes are supplied or a horizon is available. Optional identification columns are retained.

Implementation. R/data-reduction.R. Full function help · Reducing field observations outline · Reducing field observations · Reduce compass readings to true azimuth