| mag.dec | R Documentation | 
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.
mag.dec(loc, date)
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'  | 
magneticField
# Magnetic Declination for London on April 1st 2016:
loc <- c( 51.5074, -0.1278 )
mag.dec( loc, "2016/04/01" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.