General Purpose Geodetic Library
SgMathSupport.cpp File Reference
#include <iostream>
#include <stdlib.h>
#include <SgMathSupport.h>
#include <SgMJD.h>
#include <Sg3dVector.h>

Go to the source code of this file.

Macros

#define SWAP(a, b)   {typeof(a) t; t = a; a = b; b = t;}
 

Functions

unsigned int reverseBitOrder (unsigned int n, unsigned int k)
 
void fft (std::complex< double > x_a[], std::complex< double > x_A[], unsigned int n, FFT_Direction dir)
 
void geocentric2geodetic (const Sg3dVector &r, double &latitude, double &longitude, double &height, bool useOldEllipsoid)
 
void calcCip2IAU1980 (const SgMJD &epoch, double dX, double dY, double dPsi_1980, double dEps_1980, double dPsi_2000, double dEps_2000, double &diffPsi, double &diffEps)
 
void calcNutationFundArgs_IersConv2003 (const SgMJD &tEpoch, double args[5])
 
void calcNutationFundArgs_IersConv1996 (const SgMJD &tEpoch, double args[5])
 
void calcNutationFundArgs_IersStds1992 (const SgMJD &tEpoch, double args[5])
 
const std::complex< double > zI (0.0, 1.0)
 

Macro Definition Documentation

◆ SWAP

#define SWAP (   a,
 
)    {typeof(a) t; t = a; a = b; b = t;}

Definition at line 37 of file SgMathSupport.cpp.

Function Documentation

◆ calcCip2IAU1980()

void calcCip2IAU1980 ( const SgMJD epoch,
double  dX,
double  dY,
double  dPsi_1980,
double  dEps_1980,
double  dPsi_2000,
double  dEps_2000,
double &  diffPsi,
double &  diffEps 
)

Definition at line 182 of file SgMathSupport.cpp.

References SEC2RAD, and tEphem.

Referenced by SgSolutionReporter::reportEstimationBlock_Output4Spoolfile().

◆ calcNutationFundArgs_IersConv1996()

void calcNutationFundArgs_IersConv1996 ( const SgMJD tEpoch,
double  args[5] 
)

Definition at line 271 of file SgMathSupport.cpp.

References DEG2SEC, SEC2RAD, and tEphem.

Referenced by SgTidalUt1::SgTidalUt1().

◆ calcNutationFundArgs_IersConv2003()

void calcNutationFundArgs_IersConv2003 ( const SgMJD tEpoch,
double  args[5] 
)

Definition at line 239 of file SgMathSupport.cpp.

References DEG2SEC, SEC2RAD, and tEphem.

Referenced by SgTidalUt1::SgTidalUt1(), and SgModelEop_JMG_96_hf::calcCorrections().

◆ calcNutationFundArgs_IersStds1992()

void calcNutationFundArgs_IersStds1992 ( const SgMJD tEpoch,
double  args[5] 
)

Definition at line 304 of file SgMathSupport.cpp.

References DEG2SEC, SEC2RAD, and tEphem.

Referenced by SgTidalUt1::SgTidalUt1().

◆ fft()

void fft ( std::complex< double >  x_a[],
std::complex< double >  x_A[],
unsigned int  n,
FFT_Direction  dir 
)

Definition at line 69 of file SgMathSupport.cpp.

References FFT_Forward, FFT_Inverse, reverseBitOrder(), and zI().

Referenced by evaluatePhaseCals(), and NsTestFour1Dialog::testPlot().

◆ geocentric2geodetic()

void geocentric2geodetic ( const Sg3dVector r,
double &  latitude,
double &  longitude,
double &  height,
bool  useOldEllipsoid 
)

◆ reverseBitOrder()

unsigned int reverseBitOrder ( unsigned int  n,
unsigned int  k 
)

Definition at line 49 of file SgMathSupport.cpp.

Referenced by fft().

◆ zI()

const std::complex<double> zI ( 0.  0,
1.  0 
)

Referenced by fft().