MaglibWarpper.hh 1.37 KB
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   MaglibWarper.hh
 * Author: hacene
 *
 * Created on July 21, 2020, 1:16 PM
 */

#ifndef MAGLIBWARPER_HH
#define MAGLIBWARPER_HH

#include "maglib.hh"

namespace AMDA {
    namespace Parameters {
        namespace maglib {

            class maglibWarpper {
            public:
                
                static void getPosmag(int iyear, int imonth, int iday, int ihour, int imin, int isec, double rrmag, double thetr, double phir,
                        int isatex, int magout, double& tgl, double& flg, double&  xlamb,  int& ifail) {
            
                      getmag_ (&iyear, &imonth, &iday, &ihour, &imin, &isec, 
                              &magout, &isatex, &rrmag, &thetr, &phir, 
                              &tgl, &flg, &xlamb, &ifail);
                      
                    // posmag_modified(&magout, &isatex, &year, &rrmag, &thetr, &phir, &alfag, &alfas, &deltas, &tilt, rgsm, rggsm, rgsmg, rgdip, rgse, &tetdip,
                    //      &phidip, &xgsm, &ygsm, &zgsm, &xgse, &ygse, &zgse, &tgl, &flg, &xlambr, &tglc, &hsl, &clatgmr, &clongmr, iposmg, &ifail);
                    
                }
            };

        }
    }
}
#endif /* MAGLIBWARPER_HH */