Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

calculate magnetic declination

by no_slogan (Deacon)
on Jun 02, 2017 at 00:53 UTC ( [id://1191907]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Magnetic declination calculation based on WMM2015 earth magnetism mo
    +del.
    # See https://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml
    ...
    # $yr: year, default=2015
    # Returns magnetic declination for the given location in degrees.
    # In array context, also returns magnetic inclination (dip).
    
  2. or download this
    BEGIN {
    my @WMM2015 = (
    ...
       my $incl = atan2($Z, sqrt($X*$X + $Y*$Y)) / $DEG2RAD;
       return ($decl, $incl);
    }}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://1191907]
Approved by kcott
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found