WXP C++ Library Version 6.74.9
|
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 ¶m) |
static double | adjustAttitude (AttitudeAngle &parms, double sol_ang, double exp_tim) |
Friends | |
class | AreaFile |
This class manages GVAR GOES satellite image navigation.
|
static |
Calculates attitude and misalignment attributes
parms | Attitude angle parameters |
sol_ang | Solar orbit angle |
exp_time | Exponential time delay from Epoch (minutes) |
References WXP::MonoSinus::mord, WXP::MonoSinus::ord, and WXP::MonoSinus::sinus.
Referenced by initParams().
|
static |
Computes Epoch time from date info
dv | The date to use |
References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::DateVal::sec, and WXP::DateVal::year.
Referenced by epochTime(), and WXP::AreaFile::readHeader().
|
static |
Computes Epoch time from date info
hdy | Hour/Day/Year coded value |
smh | Second/Minute/Hour coded value |
References WXP::DateVal::day, epochTime(), WXP::DateVal::hour, WXP::DateVal::min, WXP::DateVal::sec, and WXP::DateVal::year.
float Gvar::getElevDelta | ( | ) |
Returns elevation distance between sampling lines
Referenced by WXP::AreaFile::calcDomain().
float Gvar::getScanDelta | ( | ) |
Returns scan line distance between sampling points
Referenced by WXP::AreaFile::calcDomain().
int Gvar::getSubPoint | ( | EarthPoint & | ept | ) |
Returns satellite subpoint location
ept | Returned earth location |
References WXP::EarthPoint::lat, and WXP::EarthPoint::lon.
int Gvar::initConstants | ( | int | nadnsc, |
int | nadnsi, | ||
int | nadewc, | ||
int | nadewi | ||
) |
Initializes the constants
nadnsc | Nadir north south scale correction |
nadnsi | Nadir north south offset correction |
nadewc | Nadir east west scale correction |
nadewi | Nadir east west offset correction |
Referenced by WXP::AreaFile::readHeader().
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().
int Gvar::instMatrix | ( | Attitude | att, |
double | a[3][3], | ||
double | at[3][3] | ||
) |
Calculates instrument to earth coordinate transformation matrix
att | Satellite attitude |
a | Spacecraft to ECEF coordinates transformation matrix |
at | Instrument to ECEF coordinates transformation matrix |
Referenced by initParams().
|
static |
Set attitude angle data from coded input
data | Raw coded data |
param | Output attitude data |
References WXP::MonoSinus::mord, WXP::MonoSinus::ord, and WXP::MonoSinus::sinus.
Referenced by WXP::AreaFile::readHeader().
int Gvar::tran | ( | EarthPoint & | ept, |
SatAngle & | sa | ||
) |
Converts earth location to satellite angle
ept | Earth location |
sa | Satellite angle |
References WXP::Const::DRC, WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::Const::MISS, WXP::Point2::x, WXP::Point2::y, and WXP::Point2::z.
int Gvar::tran | ( | EarthPoint & | ept, |
SatPoint & | spt | ||
) |
Converts earth location to satellite point
ept | Earth location |
spt | Point on image |
References WXP::EarthPoint::lat, WXP::Const::MISS, and tran().
int Gvar::tran | ( | SatAngle & | sa, |
EarthPoint & | ept | ||
) |
Converts satellite angle to earth location
sa | Satellite angle |
ept | Earth location |
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.
Converts satellite angle to satellite point
sa | Satellite angle |
spt | Point on image |
int Gvar::tran | ( | SatPoint & | spt, |
EarthPoint & | ept | ||
) |
Converts satellite point to satellite angles
spt | Point on image |
sa | Satellite angle |
Referenced by WXP::AreaFile::calcDomain(), tran(), and tran().