mag.dec: Estimates magnetics declination (diff. between true and...

Description Usage Arguments See Also Examples

View source: R/data-entry.R

Description

This function estimates the magnetic declination at a given location and moment in time, using the 12th generation International Geomagnetic Reference Field (IGRF) model. This function is a wrapper for function magneticField of package oce.

Usage

1
mag.dec(loc, date)

Arguments

loc

Location, can be either a skyscapeR.horizon object or, alternatively, a latitude.

date

Date for which to calculate magnetic declination in the format: 'YYYY/MM/DD'

See Also

magneticField

Examples

1
2
3
4
5
# Magnetic Declination for London on April 1st 2016:
london.lat <- 51.5074 #N
london.lon <- -0.1278 #W
loc <- c( london.lat, london.lon )
mag.dec( loc, "2016/04/01" )

f-silva-archaeo/skyscapeR documentation built on Jan. 15, 2019, 3:22 a.m.