00001 /* Copyright (C) 2003-2008 Nikolay Koulev <nkoulev@uni-bremen.de> 00002 00003 This program is free software; you can redistribute it and/or 00004 modify it under the terms of the GNU General Public License as 00005 published by the Free Software Foundation; either version 2 of the 00006 License, or (at your option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00016 USA. */ 00017 00029 #ifndef geomag_calc_h 00030 #define geomag_calc_h 00031 00032 #include "matpack.h" 00033 00034 void magfield_nk( // Output 00035 Numeric& B_r, // radial component of the geomagnetic field 00036 Numeric& B_th, // colatitudinal component of the geomagnetic field 00037 Numeric& B_ph, // longitudinal component of the geomagnetic field 00038 00039 // Input 00040 const Numeric r, // radial distance to the point 00041 const Numeric theta, // geocentric colatitude of the point 00042 const Numeric phi, // longitude of the point 00043 // All coordinates - geocentric! 00044 00045 const Index Ny // number of elapsed years after an epoch year, J - [0,4] 00046 ); 00047 #endif