WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
WXP::Gvar Class Reference

This class manages GVAR GOES satellite image navigation. More...

#include "../include/Gvar.h"

Public Member Functions

int initConstants (int nadnsc, int nadnsi, int nadewc, int nadewi)
 
int initParams ()
 
int instMatrix (Attitude att, double a[3][3], double at[3][3])
 
int getSubPoint (EarthPoint &ept)
 
float getScanDelta ()
 
float getElevDelta ()
 
int tran (SatPoint &spt, SatAngle &sa)
 
int tran (SatAngle &sa, SatPoint &spt)
 
int tran (SatPoint &spt, EarthPoint &ept)
 
int tran (EarthPoint &ept, SatPoint &spt)
 
int tran (SatAngle &sa, EarthPoint &ept)
 
int tran (EarthPoint &ept, SatAngle &sa)
 

Static Public Member Functions

static double epochTime (DateVal dv)
 
static double epochTime (unsigned int dmy, unsigned int smh)
 
static int setAttitudeAngle (int *data, AttitudeAngle &param)
 
static double adjustAttitude (AttitudeAngle &parms, double sol_ang, double exp_tim)
 

Static Public Attributes

static const double RADE_EQUA = 6378.388
 
static const double RADE_POLE = 6356.912
 
static const double RADE_MEAN = 6371.221
 
static const double SOLAR_YR = 365.24219879
 
static const double SIDER_YR = 366.24219879
 
static const double SOLSID = (SIDER_YR/SOLAR_YR)
 
static const int REF_DATE = 90001
 
static const int REF_TIME = 171537
 
static const double PREC_VER_EQ = 25781.
 
static const double OBLIQ_ECLIP = 23.45
 
static const double NOMORB = 42164.365
 
static const double REQ = 6378.137
 
static const double RPL = 6356.7533
 
static const double REQRPL2 = ((REQ*REQ)/(RPL*RPL))
 
static const double FER = (RPL/REQ)
 
static const double FER2 = (1-RPL/REQ)
 
static const double REQRPL3 = (REQRPL2-1)
 
static const double REQRPL4 = (FER*FER*FER*FER-1)
 

Friends

class AreaFile
 

Detailed Description

This class manages GVAR GOES satellite image navigation.

Author
Dan Vietor

Member Function Documentation

◆ adjustAttitude()

double Gvar::adjustAttitude ( AttitudeAngle parms,
double  sol_ang,
double  exp_time 
)
static

Calculates attitude and misalignment attributes

Parameters
parmsAttitude angle parameters
sol_angSolar orbit angle
exp_timeExponential time delay from Epoch (minutes)
Returns
Attitude angle

References WXP::MonoSinus::mord, WXP::MonoSinus::ord, and WXP::MonoSinus::sinus.

Referenced by initParams().

◆ epochTime() [1/2]

double Gvar::epochTime ( DateVal  dv)
static

Computes Epoch time from date info

Parameters
dvThe date to use
Returns
Epoch time in minutes since 1/1/1950

References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::DateVal::sec, and WXP::DateVal::year.

Referenced by epochTime(), and WXP::AreaFile::readHeader().

◆ epochTime() [2/2]

double Gvar::epochTime ( unsigned int  hdy,
unsigned int  smh 
)
static

Computes Epoch time from date info

Parameters
hdyHour/Day/Year coded value
smhSecond/Minute/Hour coded value
Returns
Epoch time in minutes since 1/1/1950

References WXP::DateVal::day, epochTime(), WXP::DateVal::hour, WXP::DateVal::min, WXP::DateVal::sec, and WXP::DateVal::year.

◆ getElevDelta()

float Gvar::getElevDelta ( )

Returns elevation distance between sampling lines

Returns
Elevation scaling

Referenced by WXP::AreaFile::calcDomain().

◆ getScanDelta()

float Gvar::getScanDelta ( )

Returns scan line distance between sampling points

Returns
Scan scaling

Referenced by WXP::AreaFile::calcDomain().

◆ getSubPoint()

int Gvar::getSubPoint ( EarthPoint ept)

Returns satellite subpoint location

Return values
eptReturned earth location

References WXP::EarthPoint::lat, and WXP::EarthPoint::lon.

◆ initConstants()

int Gvar::initConstants ( int  nadnsc,
int  nadnsi,
int  nadewc,
int  nadewi 
)

Initializes the constants

Parameters
nadnscNadir north south scale correction
nadnsiNadir north south offset correction
nadewcNadir east west scale correction
nadewiNadir east west offset correction

Referenced by WXP::AreaFile::readHeader().

◆ initParams()

int Gvar::initParams ( )

Computes basic parameters from input data

References adjustAttitude(), instMatrix(), WXP::Const::RDC, WXP::Angle::set(), WXP::Point2::x, WXP::Point2::y, and WXP::Point2::z.

Referenced by WXP::AreaFile::readHeader().

◆ instMatrix()

int Gvar::instMatrix ( Attitude  att,
double  a[3][3],
double  at[3][3] 
)

Calculates instrument to earth coordinate transformation matrix

Parameters
attSatellite attitude
aSpacecraft to ECEF coordinates transformation matrix
Return values
atInstrument to ECEF coordinates transformation matrix

Referenced by initParams().

◆ setAttitudeAngle()

int Gvar::setAttitudeAngle ( int *  data,
AttitudeAngle param 
)
static

Set attitude angle data from coded input

Parameters
dataRaw coded data
Return values
paramOutput attitude data

References WXP::MonoSinus::mord, WXP::MonoSinus::ord, and WXP::MonoSinus::sinus.

Referenced by WXP::AreaFile::readHeader().

◆ tran() [1/6]

int Gvar::tran ( EarthPoint ept,
SatAngle sa 
)

Converts earth location to satellite angle

Parameters
eptEarth location
Return values
saSatellite angle
Returns
1 = success, 0 = point invisible

References WXP::Const::DRC, WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::Const::MISS, WXP::Point2::x, WXP::Point2::y, and WXP::Point2::z.

◆ tran() [2/6]

int Gvar::tran ( EarthPoint ept,
SatPoint spt 
)

Converts earth location to satellite point

Parameters
eptEarth location
Return values
sptPoint on image
Returns
1 = success, 0 = point invisible

References WXP::EarthPoint::lat, WXP::Const::MISS, and tran().

◆ tran() [3/6]

int Gvar::tran ( SatAngle sa,
EarthPoint ept 
)

Converts satellite angle to earth location

Parameters
saSatellite angle
Return values
eptEarth location
Returns
1 = success, 0 = point invisible

References WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::Const::MISS, WXP::Const::RDC, WXP::Angle::set(), WXP::Point2::set(), WXP::Point2::x, WXP::Point2::y, and WXP::Point2::z.

◆ tran() [4/6]

int Gvar::tran ( SatAngle sa,
SatPoint spt 
)

Converts satellite angle to satellite point

Parameters
saSatellite angle
Return values
sptPoint on image

◆ tran() [5/6]

int Gvar::tran ( SatPoint spt,
EarthPoint ept 
)

Converts satellite point to earth location

Parameters
sptPoint on image
Return values
eptEarth location
Returns
1 = success, 0 = point invisible

References tran().

◆ tran() [6/6]

int Gvar::tran ( SatPoint spt,
SatAngle sa 
)

Converts satellite point to satellite angles

Parameters
sptPoint on image
Return values
saSatellite angle

Referenced by WXP::AreaFile::calcDomain(), and tran().


The documentation for this class was generated from the following files: