head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.37; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.53; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.54.00; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.21.55; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# coremag.hxx

    00001 // coremag.hxx -- compute local magnetic variation given position,
    00002 //                altitude, and date
    00003 //
    00004 // This is an implimentation of the NIMA WMM 2000
    00005 //
    00006 //    http://www.nima.mil/GandG/ngdc-wmm2000.html
    00007 //
    00008 // Copyright (C) 2000  Edward A Williams <Ed_Williams@@compuserve.com>
    00009 //
    00010 // Adapted from Excel 3.0 version 3/27/94 EAW
    00011 // Recoded in C++ by Starry Chan
    00012 // WMM95 added and rearranged in ANSI-C EAW 7/9/95
    00013 // Put shell around program and made Borland & GCC compatible EAW 11/22/95
    00014 // IGRF95 added 2/96 EAW
    00015 // WMM2000 IGR2000 added 2/00 EAW
    00016 // Released under GPL 3/26/00 EAW
    00017 // Adaptions and modifications for the SimGear project  3/27/2000 CLO
    00018 //
    00019 // This library is free software; you can redistribute it and/or
    00020 // modify it under the terms of the GNU Library General Public
    00021 // License as published by the Free Software Foundation; either
    00022 // version 2 of the License, or (at your option) any later version.
    00023 //
    00024 // This library is distributed in the hope that it will be useful,
    00025 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    00026 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00027 // Library General Public License for more details.
    00028 //
    00029 // You should have received a copy of the GNU Library General Public
    00030 // License along with this library; if not, write to the
    00031 // Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00032 // Boston, MA  02111-1307, USA.
    00033 //
    00034 // $Id: coremag.hxx,v 1.1 2000/08/07 18:26:36 curt Exp $
    00035
    00036
    00037 #ifndef SG_MAGVAR_HXX
    00038 #define SG_MAGVAR_HXX
    00039
    00040
    00041 /* Convert date to Julian day    1950-2049 */
    00042 unsigned long int yymmdd_to_julian_days( int yy, int mm, int dd );
    00043
    00044 /* return variation (in degrees) given geodetic latitude (radians), longitude
    00045 (radians) ,height (km) and (Julian) date
    00046 N and E lat and long are positive, S and W negative
    00047 */
    00048 double calc_magvar( double lat, double lon, double h, long dat, double* field );
    00049
    00050
    00051 #endif // SG_MAGVAR_HXX

@ 1.3 log @Oops, try again. @ text @d60 1 a60 1