mag.dec()

Scientific results for this function.

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

Function index

Compass reduction depends on when and where the reading was taken. The function evaluates IGRF-14 through oce at sea level and returns east-positive declination. Supply a single site for several dates, a single date for several sites, or one date per site. Results follow input order. Other size combinations raise an error. The calendar date is converted to a decimal year using the actual length of that year at midnight UTC. Supported dates run from 1 January 1900 through 1 January 2030 inclusive. Site elevation is ignored by this model call.

Method references

Kelley, D. and Richards, C. oce: magneticField. https://dankelley.github.io/oce/reference/magneticField.html.

Interpretation and limits. An externally supplied magnetic correction and a modelled IGRF value are alternative inputs. Keep the correction’s sign, survey date and origin with the field data. Agreement with a regional magnetic model does not rule out local disturbance at the instrument.

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

Latitude and longitude in degrees as a vector, matrix or data frame with one row per site, or a horizon object. An optional third column gives elevation.

date —

One or more survey dates as Date objects or YYYY/MM/DD strings.

Return value

Numeric magnetic declination in degrees. Use it as the correction added to a magnetic bearing in reduct.compass.

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