Isis 3 Programmer Reference
Isis::AtmosModel Class Referenceabstract

Isotropic atmos scattering model. More...

#include <AtmosModel.h>

Inheritance diagram for Isis::AtmosModel:
Inheritance graph
Collaboration diagram for Isis::AtmosModel:
Collaboration graph

Public Member Functions

 AtmosModel (Pvl &pvl, PhotoModel &pmodel)
 Create an AtmosModel object.
 
virtual ~AtmosModel ()
 Empty destructor.
 
void CalcAtmEffect (double pha, double inc, double ema, double *pstd, double *trans, double *trans0, double *sbar, double *transs)
 Calculate the atmospheric scattering effect using photometric angle information.
 
virtual void SetStandardConditions (bool standard)
 Used to calculate atmosphere at standard conditions.
 
void GenerateAhTable ()
 This method computes the values of the atmospheric Ah table and sets the properties of the atmospheric Ah spline.
 
void GenerateHahgTables ()
 This method computes the values of the atmospheric Hahg and Hahg0 tables and sets the properties of the atmospheric Hahg and Hahg0 splines.
 
void GenerateHahgTablesShadow ()
 This method is a modified version of the GenerateHahgTables method and is used solely for shadow modeling.
 
void SetAtmosAtmSwitch (const int atmswitch)
 Set the switch that controls the function that will be integrated.
 
void SetAtmosBha (const double bha)
 Set the Anisotropic Atmospheric function parameter.
 
void SetAtmosHga (const double hga)
 Set the Hapke atmospheric function parameter.
 
void SetAtmosInc (const double inc)
 Set the incidence angle.
 
void SetAtmosNulneg (const string nulneg)
 Set the Atmospheric function parameter.
 
void SetAtmosPhi (const double phi)
 Set the azimuth angle.
 
void SetAtmosTau (const double tau)
 Set the Atmospheric function parameter.
 
void SetAtmosTauref (const double tauref)
 Set the Atmospheric function parameter.
 
void SetAtmosWha (const double wha)
 Set the Atmospheric function parameter.
 
void SetAtmosHnorm (const double hnorm)
 Set the Atmospheric function parameter.
 
void SetAtmosIord (const string offset)
 Set additive offset in fit.
 
void SetAtmosEstTau (const string esttau)
 Estimate the optical depth tau using shadows.
 
string AlgorithmName () const
 Return atmospheric algorithm name.
 
bool AtmosAdditiveOffset () const
 Allow additive offset in fit?
 
double AtmosHnorm () const
 Return atmospheric Hnorm value.
 
double AtmosBha () const
 Return atmospheric Bha value.
 
double AtmosTau () const
 Return atmospheric Tau value.
 
double AtmosWha () const
 Return atmospheric Wha value.
 
double AtmosHga () const
 Return atmospheric Hga value.
 
double AtmosTauref () const
 Return atmospheric Tauref value.
 
bool AtmosNulneg () const
 Return atmospheric Nulneg value.
 
double AtmosAb () const
 Return atmospheric Ab value.
 
double AtmosHahgsb () const
 Return atmospheric Hahgsb value.
 
int AtmosNinc () const
 Return atmospheric Ninc value.
 
double AtmosMunot () const
 Return atmospheric Munot value.
 
vector< double > AtmosIncTable ()
 Return atmospheric IncTable value.
 
vector< double > AtmosAhTable ()
 Return atmospheric AhTable value.
 
vector< double > AtmosHahgtTable ()
 Return atmospheric HahgtTable value.
 
vector< double > AtmosHahgt0Table ()
 Return atmospheric Hahgt0Table value.
 
NumericalApproximation AtmosAhSpline ()
 If GenerateAhTable() has been called this returns a clamped cubic spline of the data set (p_atmosIncTable, p_atmosAhTable) with first derivatives of the endpoints equal to 1.0e30.
 
NumericalApproximation AtmosHahgtSpline ()
 If GenerateHahgTables() has been called this returns a clamped cubic spline of the data set (p_atmosIncTable, p_atmosHahgtTable) with first derivatives of the endpoints equal to 1.0e30.
 
NumericalApproximation AtmosHahgt0Spline ()
 If GenerateHahgTables() has been called this returns a clamped cubic spline of the data set (p_atmosIncTable, p_atmosHahgt0Table) with first derivatives of the endpoints equal to 1.0e30.
 

Static Public Member Functions

static double G11Prime (double tau)
 Perform Chandra and Van de Hulst's series approximation for the g'11 function needed in second order scattering theory.
 
static double Ei (double x)
 This routine computes the exponential integral, Ei(x).
 
static double En (unsigned int n, double x)
 This routine evaluates the generalized exponential integral, En(x).
 

Protected Member Functions

virtual void AtmosModelAlgorithm (double phase, double incidence, double emission)=0
 
void SetAlgorithmName (string name)
 
void SetAtmosNulneg (bool nulneg)
 
void SetAtmosIord (bool offset)
 
void SetAtmosEstTau (bool esttau)
 
void SetOldTau (double tau)
 
void SetOldWha (double wha)
 
PhotoModelGetPhotoModel () const
 
bool StandardConditions () const
 
bool TauOrWhaChanged () const
 Checks whether tau or wha have changed.
 
double Eulgam () const
 

Protected Attributes

int p_atmosAtmSwitch
 
int p_atmosNinc
 
double p_atmosBha
 
double p_atmosBhasave
 
double p_atmosHgasave
 
double p_atmosTauref
 
double p_atmosTausave
 
double p_atmosWhasave
 
double p_pstd
 Pure atmospheric-scattering term.
 
double p_trans
 Transmission of surface reflected light through the atmosphere overall.
 
double p_trans0
 Transmission of surface reflected light through the atmosphere with no scatterings in the atmosphere.
 
double p_transs
 Transmission of light that must be subtracted from the flat surface model to get the shadow model.
 
double p_sbar
 Illumination of the ground by the sky.
 
double p_atmosHga
 
double p_atmosTau
 
double p_atmosWha
 
double p_atmosAb
 
double p_atmosHnorm
 Atmospheric shell thickness normalized to planet radius.
 
bool p_atmosAddOffset
 Allow additive offset in fit.
 
bool p_atmosEstTau
 Estimate optical depth tau using shadows.
 
vector< double > p_atmosIncTable
 
vector< double > p_atmosAhTable
 
double p_atmosHahgsb
 
vector< double > p_atmosHahgtTable
 
vector< double > p_atmosHahgt0Table
 
double p_atmosInc
 
double p_atmosPhi
 
double p_atmosMunot
 
double p_atmosSini
 
double p_atmosCosphi
 
double p_atmosEulgam
 
NumericalApproximation p_atmosAhSpline
 Spline object for the atmospheric Ah Table. Properties are set in GenerateAhTable().
 
NumericalApproximation p_atmosHahgtSpline
 Spline object for the atmospheric Hahg Table. Properties are set in GenerateHahgTables().
 
NumericalApproximation p_atmosHahgt0Spline
 Spline object for the atmospheric Hahg0 Table. Properties are set in GenerateHahgTables().
 

Private Attributes

bool p_standardConditions
 
string p_atmosAlgorithmName
 
PhotoModelp_atmosPM
 
bool p_atmosNulneg
 
double p_atmosTauold
 
double p_atmosWhaold
 

Friends

class NumericalAtmosApprox
 

Detailed Description

Isotropic atmos scattering model.

Author
1998-12-21 Randy Kirk
History

2007-02-20 Janet Barrett - Imported from Isis2.

2007-07-31 Steven Lambright - Fixed unit test

2007-08-15 Steven Lambright - Refactored

2008-03-07 Janet Barrett - Added code to set standard conditions. Also added bharef, hgaref, tauref, and wharef variables and supporting methods.

2008-06-18 Christopher Austin - Fixed much documentation

2008-07-09 Steven Lambright - Fixed unit test

2008-11-05 Jeannie Walldren - Moved numerical methods and functions to NumericalMethods and NumericalAtmosApprox classes. Moved G11Prime(), Ei(), and En() from NumericalMethods into this class. Added splines to protected variables and removed second derivative vector protected variables (p_atmosAhTable2, p_atmosHahgtTable2, p_atmosHahgt0Table2) that are no longer needed. Replaced arrays with vectors in protected variables. Added documentation from Isis2 files. Removed "Isis::" and "std::" in AtmosModel.cpp since that file uses std and Isis namespaces.

2008-11-07 Jeannie Walldren - Fixed documentation

2011-08-17 Sharmila Prasad -Added API's for HNORM, Additive Offset

2011-09-14 Janet Barrett - Got rid of bharef, hgaref, and wharef variables and supporting methods.

2011-12-19 Janet Barrett - Added the p_atmosEstTau variable that determines if the optical depth "tau" will be estimated using shadow modeling. Added the GenerateHahgTablesShadow method for doing the shadow modeling. Added a getter method for accessing the Munot (normally the cosine of the incidence angle) value in the atmospheric classes. Added a setter method for setting the p_atmosEstTau variable which is used by the atmospheric classes.

Definition at line 60 of file AtmosModel.h.

Constructor & Destructor Documentation

◆ AtmosModel()

Isis::AtmosModel::AtmosModel ( Pvl & pvl,
PhotoModel & pmodel )

Create an AtmosModel object.

Because this is a pure virtual class you can not create an AtmosModel class directly. Instead, see the Isis::AtmosModelFactory class.

Parameters
pvlIsis::Pvl object containing a valid AtmosModel specification
pmodelPhotoModel object containing valud AtmosModel data
See also
atmosphericModels.doc
History
2008-11-05 Jeannie Walldren - Replaced arrays with vectors

Definition at line 41 of file AtmosModel.cpp.

References Isis::PvlContainer::hasKeyword(), p_atmosAddOffset, p_atmosEstTau, p_atmosHnorm, p_pstd, p_sbar, p_trans, p_trans0, p_transs, SetAtmosBha(), SetAtmosEstTau(), SetAtmosHga(), SetAtmosHnorm(), SetAtmosInc(), SetAtmosIord(), SetAtmosNulneg(), SetAtmosPhi(), SetAtmosTau(), SetAtmosTauref(), SetAtmosWha(), and Isis::PvlObject::Traverse.

◆ ~AtmosModel()

virtual Isis::AtmosModel::~AtmosModel ( )
inlinevirtual

Empty destructor.

Definition at line 64 of file AtmosModel.h.

Member Function Documentation

◆ AlgorithmName()

string Isis::AtmosModel::AlgorithmName ( ) const
inline

Return atmospheric algorithm name.

Definition at line 100 of file AtmosModel.h.

◆ AtmosAb()

double Isis::AtmosModel::AtmosAb ( ) const
inline

Return atmospheric Ab value.

Definition at line 139 of file AtmosModel.h.

Referenced by Isis::AlbedoAtm::NormModelAlgorithm().

◆ AtmosAdditiveOffset()

bool Isis::AtmosModel::AtmosAdditiveOffset ( ) const
inline

Allow additive offset in fit?

Definition at line 105 of file AtmosModel.h.

References p_atmosAddOffset.

◆ AtmosAhSpline()

NumericalApproximation Isis::AtmosModel::AtmosAhSpline ( )
inline

If GenerateAhTable() has been called this returns a clamped cubic spline of the data set (p_atmosIncTable, p_atmosAhTable) with first derivatives of the endpoints equal to 1.0e30.

Otherwise, it is a natural cubic spline with an empty data set.

Returns
NumericalApproximation Cubic spline
History
2008-11-05 Jeannie Walldren - Original version

Definition at line 183 of file AtmosModel.h.

References p_atmosAhSpline.

Referenced by Isis::AlbedoAtm::AlbedoAtm(), and Isis::AlbedoAtm::NormModelAlgorithm().

◆ AtmosAhTable()

vector< double > Isis::AtmosModel::AtmosAhTable ( )
inline

Return atmospheric AhTable value.

Definition at line 160 of file AtmosModel.h.

◆ AtmosBha()

double Isis::AtmosModel::AtmosBha ( ) const
inline

Return atmospheric Bha value.

Definition at line 115 of file AtmosModel.h.

◆ AtmosHahgsb()

double Isis::AtmosModel::AtmosHahgsb ( ) const
inline

Return atmospheric Hahgsb value.

Definition at line 143 of file AtmosModel.h.

◆ AtmosHahgt0Spline()

NumericalApproximation Isis::AtmosModel::AtmosHahgt0Spline ( )
inline

If GenerateHahgTables() has been called this returns a clamped cubic spline of the data set (p_atmosIncTable, p_atmosHahgt0Table) with first derivatives of the endpoints equal to 1.0e30.

Otherwise, it is a natural cubic spline with an empty data set.

Returns
NumericalApproximation Cubic spline
History
2008-11-05 Jeannie Walldren - Original version

Definition at line 211 of file AtmosModel.h.

References p_atmosHahgt0Spline.

◆ AtmosHahgt0Table()

vector< double > Isis::AtmosModel::AtmosHahgt0Table ( )
inline

Return atmospheric Hahgt0Table value.

Definition at line 168 of file AtmosModel.h.

◆ AtmosHahgtSpline()

NumericalApproximation Isis::AtmosModel::AtmosHahgtSpline ( )
inline

If GenerateHahgTables() has been called this returns a clamped cubic spline of the data set (p_atmosIncTable, p_atmosHahgtTable) with first derivatives of the endpoints equal to 1.0e30.

Otherwise, it is a natural cubic spline with an empty data set.

Returns
NumericalApproximation Cubic spline
History
2008-11-05 Jeannie Walldren - Original version

Definition at line 197 of file AtmosModel.h.

References p_atmosHahgtSpline.

◆ AtmosHahgtTable()

vector< double > Isis::AtmosModel::AtmosHahgtTable ( )
inline

Return atmospheric HahgtTable value.

Definition at line 164 of file AtmosModel.h.

◆ AtmosHga()

double Isis::AtmosModel::AtmosHga ( ) const
inline

Return atmospheric Hga value.

Definition at line 127 of file AtmosModel.h.

◆ AtmosHnorm()

double Isis::AtmosModel::AtmosHnorm ( ) const
inline

Return atmospheric Hnorm value.

Definition at line 110 of file AtmosModel.h.

References p_atmosHnorm.

◆ AtmosIncTable()

vector< double > Isis::AtmosModel::AtmosIncTable ( )
inline

Return atmospheric IncTable value.

Definition at line 156 of file AtmosModel.h.

◆ AtmosModelAlgorithm()

virtual void Isis::AtmosModel::AtmosModelAlgorithm ( double phase,
double incidence,
double emission )
protectedpure virtual

◆ AtmosMunot()

double Isis::AtmosModel::AtmosMunot ( ) const
inline

Return atmospheric Munot value.

Definition at line 151 of file AtmosModel.h.

◆ AtmosNinc()

int Isis::AtmosModel::AtmosNinc ( ) const
inline

Return atmospheric Ninc value.

Definition at line 147 of file AtmosModel.h.

◆ AtmosNulneg()

bool Isis::AtmosModel::AtmosNulneg ( ) const
inline

Return atmospheric Nulneg value.

Definition at line 135 of file AtmosModel.h.

◆ AtmosTau()

double Isis::AtmosModel::AtmosTau ( ) const
inline

Return atmospheric Tau value.

Definition at line 119 of file AtmosModel.h.

Referenced by TauOrWhaChanged().

◆ AtmosTauref()

double Isis::AtmosModel::AtmosTauref ( ) const
inline

Return atmospheric Tauref value.

Definition at line 131 of file AtmosModel.h.

◆ AtmosWha()

double Isis::AtmosModel::AtmosWha ( ) const
inline

Return atmospheric Wha value.

Definition at line 123 of file AtmosModel.h.

Referenced by GenerateHahgTables(), GenerateHahgTablesShadow(), and TauOrWhaChanged().

◆ CalcAtmEffect()

void Isis::AtmosModel::CalcAtmEffect ( double pha,
double inc,
double ema,
double * pstd,
double * trans,
double * trans0,
double * sbar,
double * transs )

Calculate the atmospheric scattering effect using photometric angle information.

Parameters
phaphase angle
incincidence angle
emaemission angle
pstdpure atmospheric-scattering term
transtransmission of surface reflected light through the atmosphere overall
trans0transmission of surface reflected light through the atmosphere with no scatterings in the atmosphere
sbarillumination of the ground by the sky
Exceptions
Isis::IException::User"Invalid photometric angles"

Definition at line 475 of file AtmosModel.cpp.

References p_pstd, p_sbar, p_trans, p_trans0, and p_transs.

Referenced by Isis::AlbedoAtm::AlbedoAtm(), and Isis::AlbedoAtm::NormModelAlgorithm().

◆ Ei()

double Isis::AtmosModel::Ei ( double x)
static

This routine computes the exponential integral, Ei(x).

This is defined as

\[ Ei(x) = - \int_{-x}^{\infty} \frac{e^{-t}}{t}\mathrm{d}t = \int_{-\infty}^{x} \frac{e^{t}}{t}\mathrm{d}t \]

for x > 0.

For small x, this method uses the power series,

\[ Ei(x) = \gamma + \ln x + \frac{x}{1*1!} + \frac{x^2}{2*2!} + ... \]

where \( \gamma = 0.5772156649... \) is Euler's constant, and for large x, the asymptotic series is used,

\[ Ei(x) \sim \frac{e^x}{x} (1 + \frac{1!}{x} + \frac{2!}{x^2} + ...) \]

See also
mathworld.wolfram.com/ExponentialIntegral.html
Parameters
xValue at which the exponential integral will be computed, x > 0.0
Returns
double The exponential integral for the given x.
Exceptions
Isis::IException::Programmer"Invalid arguments. Definition requires x > 0.0."
Isis::IException::Math"Power series failed to converge"
History

1999-08-11 K Teal Thompson - Original version named pht_r8ei in Isis2.

2007-02-20 Janet Barrett - Imported to Isis3 in NumericalMethods class named r8ei().

2008-11-05 Jeannie Walldren - Renamed and modified input parameters. Added documentation.

Definition at line 229 of file AtmosModel.cpp.

References Isis::IException::Programmer, and Isis::IException::Unknown.

Referenced by Isis::Anisotropic2::AtmosModelAlgorithm().

◆ En()

double Isis::AtmosModel::En ( unsigned int n,
double x )
static

This routine evaluates the generalized exponential integral, En(x).

This is defined as

\[ E_n(x) = \int_{1}^{\infty} \frac{e^{-xt}}{t^n}\mathrm{d}t \mathrm{ for } x \in \mathbb{R }, n \in \mathbb{Z } \mathrm{such that } x \ge 0.0, n \ge 0 \]

Notice that if x = 0, then the equation is not defined for n = 0 or n = 1, as these will result in \( E_n(x) = \infty \).

This method uses the following for cases:

  • For n > 1 and x = 0.0,

    \[ E_n(0) = \frac{1}{n-1} \]

  • For n = 0 and x > 0.0,

    \[ E_0(x) = \frac{e^{-x}}{x} \]

  • For \( x >\sim 1.0 \), Lentz's continued fraction algorithm is used,

    \[ E_n(x) = e^{-x}(\frac{1}{x + n - \frac{1*n}{x + n + 2 - \frac{2(n+1)}{x + n + 4 - ...}}}) \]

  • For \( 0.0 < x <\sim 1.0 \), series representation is used,

    \[ E_n(x) = \frac{(-x)^{n-1}}{(n-1)!}[- \ln x + \psi (n)] - \sum_{m=0, m \neq n-1}^{\infty}\frac{(-x)^m}{(m-n+1)m!} \]

    where \( \psi (1) = \gamma \) and \( \psi (n) = - \gamma + \sum_{m=1}^{n-1} \frac{1}{m}\) and \( \gamma = 0.5772156649... \) is Euler's constant.

The parameter n is of type unsigned int since n cannot be negative.

The routine allows fast evaluation of En(x) to any accuracy, \(\epsilon\), within the reach of your machine's word length for floating-point numbers. The only modification required for increased accuracy is to supply Euler's constant with enough significant digits.

See also
mathworld.wolfram.com/En-Function.html
Parameters
nInteger value at which the exponential integral will be evaluated (n >= 0)
xThe exponential integral En(x) will be evaluated
Returns
double Value of the exponential integral for the give n and x.
Exceptions
Isis::IException::Programmer"Invalid arguments. Definition requires (x > 0.0 and n >=0 ) or (x >= 0.0 and n > 1)."
Isis::IException::Math"Continued fraction failed to converge"
Isis::IException::Math"Series representation failed to converge"
History

1999-08-10 K Teal Thompson - Original version in named pht_r8expint Isis2.

2007-02-20 Janet Barrett - Imported to Isis3 in NumericalMethods class named r8expint().

2008-11-05 Jeannie Walldren - Renamed and modified input parameters. Added documentation.

Definition at line 370 of file AtmosModel.cpp.

References Isis::IException::Programmer, and Isis::IException::Unknown.

Referenced by Isis::Anisotropic1::AtmosModelAlgorithm(), Isis::Anisotropic2::AtmosModelAlgorithm(), and G11Prime().

◆ Eulgam()

double Isis::AtmosModel::Eulgam ( ) const
inlineprotected

Definition at line 244 of file AtmosModel.h.

◆ G11Prime()

double Isis::AtmosModel::G11Prime ( double tau)
static

Perform Chandra and Van de Hulst's series approximation for the g'11 function needed in second order scattering theory.

Parameters
taunormal optical depth of atmosphere
Returns
double Value of the g'11 function evaluated at the given tau
History

1998-12-21 Randy Kirk, USGS - Flagstaff - Original code in Isis2 pht_am_functions

1999-03-12 K Teal Thompson - Port to Unix/ISIS; declare vars; cadd implicit none.

2007-02-20 Janet Barrett - Imported from Isis2 to Isis3 in NumericalMethods class.

2008-11-05 Jeannie Walldren - Moved this method from NumericalMethods class.

Definition at line 153 of file AtmosModel.cpp.

References En(), and Isis::PI.

Referenced by Isis::Anisotropic2::AtmosModelAlgorithm().

◆ GenerateAhTable()

void Isis::AtmosModel::GenerateAhTable ( )

This method computes the values of the atmospheric Ah table and sets the properties of the atmospheric Ah spline.

It obtains the hemispheric albedo by integrating the photometric function times mu over mu = 0 to 1 and then over phi = 0 to 2*pi to calculate the hemispheric reflectance Ah needed for the photometric model with atmosphere. The Trapezoid rule is applied to the table of Ah to obtain bihemispheric albedo Ab. The parameter p_atmosAtmSwitch is set to 0 to integrate Ah.

History

1998-12-21 Randy Kirk - USGS, Flagstaff - Original specs

1999-01-15 K Teal Thompson - Original code

2000-12-29 Randy Kirk - Modified /hide_inc/ so phi gets passed, etc. moved factors to outside integration

2006-05-30 Randy Kirk - Added code to report the directional hemispheric albedo that relates to thermal balance for simulating Themis images

2007-02-20 Janet Barrett - Imported to Isis3 from Isis2 pht_get_ah_table

2008-11-05 Jeannie Walldren - Modified references to NumericalMethods and replaced r8qromb() with NumericalAtmosApprox::RombergsMethod(). Changed name from PhtGetAhTable().

Definition at line 537 of file AtmosModel.cpp.

References Isis::NumericalApproximation::AddData(), Isis::PhotoModel::AlgorithmName(), Isis::NumericalApproximation::CubicClamped, Isis::NumericalAtmosApprox::OuterFunction, p_atmosAhSpline, Isis::PI, Isis::NumericalApproximation::Reset(), Isis::NumericalApproximation::SetCubicClampedEndptDeriv(), and Isis::NumericalApproximation::SetInterpType().

Referenced by Isis::AlbedoAtm::AlbedoAtm().

◆ GenerateHahgTables()

void Isis::AtmosModel::GenerateHahgTables ( )

This method computes the values of the atmospheric Hahg and Hahg0 tables and sets the properties of the atmospheric Hahg and Hahg0 splines.

It integrates functions involving the single particle phase function (assumed to be Hapke Henyey-Greenstein) over mu = 0 to 1 and then over phi = 0 to 2*pi to calculate the corrections needed for the anisotropic photometric model with atmosphere. The Trapezoid rule is applied to the table of Ah to obtain bihemispheric albedo Ab. The parameter p_atmosAtmSwitch is set to 1, 2, 3 to evaluate the 3 required integrals.

History

1998-12-21 Randy Kirk - USGS, Flagstaff - Original specs

1999-01-15 K Teal Thompson - Original code

2006-07-07 Randy Kirk - Modify get_ah_table to get other integrals

2000-12-29 Randy Kirk - Modified /hide_inc/ so phi gets passed, etc. moved factors to outside integration

2007-02-20 Janet Barrett - Imported to Isis3 from Isis2 pht_get_ah_table

2008-11-05 Jeannie Walldren - Modified references to NumericalMethods and replaced r8qromb() with NumericalAtmosApprox::RombergsMethod(). Changed name from GetHahgTables().

Definition at line 637 of file AtmosModel.cpp.

References Isis::NumericalApproximation::AddData(), AtmosWha(), Isis::NumericalApproximation::CubicClamped, Isis::NumericalAtmosApprox::OuterFunction, p_atmosHahgt0Spline, p_atmosHahgtSpline, Isis::PI, Isis::NumericalApproximation::Reset(), Isis::NumericalApproximation::SetCubicClampedEndptDeriv(), and Isis::NumericalApproximation::SetInterpType().

◆ GenerateHahgTablesShadow()

void Isis::AtmosModel::GenerateHahgTablesShadow ( )

This method is a modified version of the GenerateHahgTables method and is used solely for shadow modeling.

Unlike the GenerateHahgTables method, this method does not tabulate the first or third integrals. It only evaluates the middle integral that corrects the sbar variable (illumination of the ground by the sky).

History

1998-12-21 Randy Kirk - USGS, Flagstaff - Original specs

1999-01-15 K Teal Thompson - Original code

2006-07-07 Randy Kirk - Modify get_ah_table to get other integrals

2000-09-15 Randy Kirk - Delete first, last integrals and table of second integral

2000-12-29 Randy Kirk - Modified /hide_inc/ so phi gets passed, etc. moved factors to outside integration

2011-12-16 Janet Barrett - Imported to Isis3 from Isis2 get_hahgsb_shad routine in the not_shadow_tau set of routines

Definition at line 726 of file AtmosModel.cpp.

References AtmosWha(), Isis::NumericalAtmosApprox::OuterFunction, and Isis::PI.

◆ GetPhotoModel()

PhotoModel * Isis::AtmosModel::GetPhotoModel ( ) const
inlineprotected

Definition at line 237 of file AtmosModel.h.

◆ SetAlgorithmName()

void Isis::AtmosModel::SetAlgorithmName ( string name)
inlineprotected

Definition at line 218 of file AtmosModel.h.

◆ SetAtmosAtmSwitch()

void Isis::AtmosModel::SetAtmosAtmSwitch ( const int atmswitch)

Set the switch that controls the function that will be integrated.

This method is only used for testing the methods in this class. This parameter is limited to the values 0, 1, 2, and 3.

Parameters
atmswitchInternal atmospheric function parameter, there is no default
Exceptions
Isis::IException::User"Invalid value of atmospheric atmswitch"

Definition at line 779 of file AtmosModel.cpp.

References Isis::IException::User.

◆ SetAtmosBha()

void Isis::AtmosModel::SetAtmosBha ( const double bha)

Set the Anisotropic Atmospheric function parameter.

This is the coefficient of the single particle Legendre phase function. This parameter is limited to values that are >=-1 and <=1.

Parameters
bhaAnisotropic atmospheric function parameter, default is 0.85
Exceptions
Isis::IException::User"Invalid value of atmospheric bha"

Definition at line 799 of file AtmosModel.cpp.

References Isis::IException::User.

Referenced by AtmosModel().

◆ SetAtmosEstTau() [1/2]

void Isis::AtmosModel::SetAtmosEstTau ( bool esttau)
inlineprotected

Definition at line 227 of file AtmosModel.h.

◆ SetAtmosEstTau() [2/2]

void Isis::AtmosModel::SetAtmosEstTau ( const string esttau)

Estimate the optical depth tau using shadows.

Author
Janet Barrett (12/16/2011)
Parameters
esttautrue/false

Definition at line 1002 of file AtmosModel.cpp.

References SetAtmosEstTau(), and Isis::IException::User.

Referenced by AtmosModel(), and SetAtmosEstTau().

◆ SetAtmosHga()

void Isis::AtmosModel::SetAtmosHga ( const double hga)

Set the Hapke atmospheric function parameter.

This is the coefficient of the single particle Henyey-Greenstein phase function. This parameter is limited to values that are >-1 and <1.

Parameters
hgaHapke atmospheric function parameter, default is 0.68
Exceptions
Isis::IException::User"Invalid value of atmospheric hga"

Definition at line 820 of file AtmosModel.cpp.

References Isis::IException::User.

Referenced by AtmosModel().

◆ SetAtmosHnorm()

void Isis::AtmosModel::SetAtmosHnorm ( const double hnorm)

Set the Atmospheric function parameter.

This is the atmospheric shell thickness normalized to the planet radius and is used to modify angles to get more accurate path lengths near the terminator (ratio of scale height to the planetary radius). This parameter is limited to values that are >=0.

Parameters
hnormAtmospheric function parameter, default is 0.003

Definition at line 968 of file AtmosModel.cpp.

References p_atmosHnorm, Isis::toString(), and Isis::IException::User.

Referenced by AtmosModel().

◆ SetAtmosInc()

void Isis::AtmosModel::SetAtmosInc ( const double inc)

Set the incidence angle.

This method is only used for testing the methods in this class. This parameter is limited to values >=0 and <=90.

Parameters
incInternal atmospheric function parameter, there is no default
Exceptions
Isis::IException::User"Invalid value of atmospheric inc"

Definition at line 839 of file AtmosModel.cpp.

References Isis::PI, and Isis::IException::User.

Referenced by AtmosModel().

◆ SetAtmosIord() [1/2]

void Isis::AtmosModel::SetAtmosIord ( bool offset)
inlineprotected

Definition at line 224 of file AtmosModel.h.

◆ SetAtmosIord() [2/2]

void Isis::AtmosModel::SetAtmosIord ( const string offset)

Set additive offset in fit.

Author
Sharmila Prasad (8/18/2011)
Parameters
offsettrue/false

Definition at line 983 of file AtmosModel.cpp.

References SetAtmosIord(), and Isis::IException::User.

Referenced by AtmosModel(), and SetAtmosIord().

◆ SetAtmosNulneg() [1/2]

void Isis::AtmosModel::SetAtmosNulneg ( bool nulneg)
inlineprotected

Definition at line 221 of file AtmosModel.h.

◆ SetAtmosNulneg() [2/2]

void Isis::AtmosModel::SetAtmosNulneg ( const string nulneg)

Set the Atmospheric function parameter.

This determines if negative values after removal of atmospheric effects will be set to NULL. This parameter is limited to values of YES or NO.

Parameters
nulnegAtmospheric function parameter, default is NO
Exceptions
Isis::IException::User"Invalid value of atmospheric nulneg"

Definition at line 861 of file AtmosModel.cpp.

References SetAtmosNulneg(), and Isis::IException::User.

Referenced by AtmosModel(), and SetAtmosNulneg().

◆ SetAtmosPhi()

void Isis::AtmosModel::SetAtmosPhi ( const double phi)

Set the azimuth angle.

This method is only used for testing the methods in this class. This parameter is limited to values >=0 and <=360.

Parameters
phiInternal atmospheric function parameter, there is no default
Exceptions
Isis::IException::User"Invalid value of atmospheric phi"

Definition at line 884 of file AtmosModel.cpp.

References Isis::PI, and Isis::IException::User.

Referenced by AtmosModel().

◆ SetAtmosTau()

void Isis::AtmosModel::SetAtmosTau ( const double tau)

Set the Atmospheric function parameter.

This specifies the normal optical depth of the atmosphere. This parameter is limited to values that are >=0.

Parameters
tauAtmospheric function parameter, default is 0.28
Exceptions
Isis::IException::User"Invalid value of atmospheric tau"

Definition at line 903 of file AtmosModel.cpp.

References Isis::IException::User.

Referenced by AtmosModel().

◆ SetAtmosTauref()

void Isis::AtmosModel::SetAtmosTauref ( const double tauref)

Set the Atmospheric function parameter.

This specifies the reference optical depth of the atmosphere to which the image will be normalized. This parameter is limited to values that are >=0.

Parameters
taurefAtmospheric function parameter, default is 0.0
Exceptions
Isis::IException::User"Invalid value of atmospheric tauref"

Definition at line 922 of file AtmosModel.cpp.

References Isis::IException::User.

Referenced by AtmosModel().

◆ SetAtmosWha()

void Isis::AtmosModel::SetAtmosWha ( const double wha)

Set the Atmospheric function parameter.

This is the single- scattering albedo of atmospheric particles. This parameter is limited to values that are >0 and <=1.

Parameters
whaAtmospheric function parameter, default is 0.95
Exceptions
Isis::IException::User"Invalid value of atmospheric wha"

Definition at line 941 of file AtmosModel.cpp.

References Isis::IException::User.

Referenced by AtmosModel().

◆ SetOldTau()

void Isis::AtmosModel::SetOldTau ( double tau)
inlineprotected

Definition at line 230 of file AtmosModel.h.

◆ SetOldWha()

void Isis::AtmosModel::SetOldWha ( double wha)
inlineprotected

Definition at line 233 of file AtmosModel.h.

◆ SetStandardConditions()

void Isis::AtmosModel::SetStandardConditions ( bool standard)
virtual

Used to calculate atmosphere at standard conditions.

Definition at line 498 of file AtmosModel.cpp.

Referenced by Isis::AlbedoAtm::AlbedoAtm().

◆ StandardConditions()

bool Isis::AtmosModel::StandardConditions ( ) const
inlineprotected

Definition at line 240 of file AtmosModel.h.

◆ TauOrWhaChanged()

bool Isis::AtmosModel::TauOrWhaChanged ( ) const
protected

Checks whether tau or wha have changed.

Returns
bool True if either have changed.

Definition at line 954 of file AtmosModel.cpp.

References AtmosTau(), and AtmosWha().

Referenced by Isis::Anisotropic1::AtmosModelAlgorithm(), and Isis::Anisotropic2::AtmosModelAlgorithm().

Friends And Related Symbol Documentation

◆ NumericalAtmosApprox

friend class NumericalAtmosApprox
friend

Definition at line 300 of file AtmosModel.h.

Member Data Documentation

◆ p_atmosAb

double Isis::AtmosModel::p_atmosAb
protected

Definition at line 266 of file AtmosModel.h.

◆ p_atmosAddOffset

bool Isis::AtmosModel::p_atmosAddOffset
protected

Allow additive offset in fit.

Definition at line 268 of file AtmosModel.h.

Referenced by AtmosAdditiveOffset(), and AtmosModel().

◆ p_atmosAhSpline

NumericalApproximation Isis::AtmosModel::p_atmosAhSpline
protected

Spline object for the atmospheric Ah Table. Properties are set in GenerateAhTable().

Definition at line 283 of file AtmosModel.h.

Referenced by AtmosAhSpline(), and GenerateAhTable().

◆ p_atmosAhTable

vector<double> Isis::AtmosModel::p_atmosAhTable
protected

Definition at line 271 of file AtmosModel.h.

◆ p_atmosAlgorithmName

string Isis::AtmosModel::p_atmosAlgorithmName
private

Definition at line 292 of file AtmosModel.h.

◆ p_atmosAtmSwitch

int Isis::AtmosModel::p_atmosAtmSwitch
protected

Definition at line 248 of file AtmosModel.h.

◆ p_atmosBha

double Isis::AtmosModel::p_atmosBha
protected

Definition at line 251 of file AtmosModel.h.

◆ p_atmosBhasave

double Isis::AtmosModel::p_atmosBhasave
protected

Definition at line 252 of file AtmosModel.h.

◆ p_atmosCosphi

double Isis::AtmosModel::p_atmosCosphi
protected

Definition at line 279 of file AtmosModel.h.

◆ p_atmosEstTau

bool Isis::AtmosModel::p_atmosEstTau
protected

Estimate optical depth tau using shadows.

Definition at line 269 of file AtmosModel.h.

Referenced by AtmosModel().

◆ p_atmosEulgam

double Isis::AtmosModel::p_atmosEulgam
protected

Definition at line 280 of file AtmosModel.h.

◆ p_atmosHahgsb

double Isis::AtmosModel::p_atmosHahgsb
protected

Definition at line 272 of file AtmosModel.h.

◆ p_atmosHahgt0Spline

NumericalApproximation Isis::AtmosModel::p_atmosHahgt0Spline
protected

Spline object for the atmospheric Hahg0 Table. Properties are set in GenerateHahgTables().

Definition at line 287 of file AtmosModel.h.

Referenced by AtmosHahgt0Spline(), and GenerateHahgTables().

◆ p_atmosHahgt0Table

vector<double> Isis::AtmosModel::p_atmosHahgt0Table
protected

Definition at line 274 of file AtmosModel.h.

◆ p_atmosHahgtSpline

NumericalApproximation Isis::AtmosModel::p_atmosHahgtSpline
protected

Spline object for the atmospheric Hahg Table. Properties are set in GenerateHahgTables().

Definition at line 285 of file AtmosModel.h.

Referenced by AtmosHahgtSpline(), and GenerateHahgTables().

◆ p_atmosHahgtTable

vector<double> Isis::AtmosModel::p_atmosHahgtTable
protected

Definition at line 273 of file AtmosModel.h.

◆ p_atmosHga

double Isis::AtmosModel::p_atmosHga
protected

Definition at line 263 of file AtmosModel.h.

◆ p_atmosHgasave

double Isis::AtmosModel::p_atmosHgasave
protected

Definition at line 253 of file AtmosModel.h.

◆ p_atmosHnorm

double Isis::AtmosModel::p_atmosHnorm
protected

Atmospheric shell thickness normalized to planet radius.

Definition at line 267 of file AtmosModel.h.

Referenced by AtmosHnorm(), AtmosModel(), Isis::Anisotropic1::AtmosModelAlgorithm(), Isis::Anisotropic2::AtmosModelAlgorithm(), and SetAtmosHnorm().

◆ p_atmosInc

double Isis::AtmosModel::p_atmosInc
protected

Definition at line 275 of file AtmosModel.h.

◆ p_atmosIncTable

vector<double> Isis::AtmosModel::p_atmosIncTable
protected

Definition at line 270 of file AtmosModel.h.

◆ p_atmosMunot

double Isis::AtmosModel::p_atmosMunot
protected

Definition at line 277 of file AtmosModel.h.

◆ p_atmosNinc

int Isis::AtmosModel::p_atmosNinc
protected

Definition at line 249 of file AtmosModel.h.

◆ p_atmosNulneg

bool Isis::AtmosModel::p_atmosNulneg
private

Definition at line 296 of file AtmosModel.h.

◆ p_atmosPhi

double Isis::AtmosModel::p_atmosPhi
protected

Definition at line 276 of file AtmosModel.h.

◆ p_atmosPM

PhotoModel* Isis::AtmosModel::p_atmosPM
private

Definition at line 294 of file AtmosModel.h.

◆ p_atmosSini

double Isis::AtmosModel::p_atmosSini
protected

Definition at line 278 of file AtmosModel.h.

◆ p_atmosTau

double Isis::AtmosModel::p_atmosTau
protected

Definition at line 264 of file AtmosModel.h.

◆ p_atmosTauold

double Isis::AtmosModel::p_atmosTauold
private

Definition at line 298 of file AtmosModel.h.

◆ p_atmosTauref

double Isis::AtmosModel::p_atmosTauref
protected

Definition at line 254 of file AtmosModel.h.

◆ p_atmosTausave

double Isis::AtmosModel::p_atmosTausave
protected

Definition at line 255 of file AtmosModel.h.

◆ p_atmosWha

double Isis::AtmosModel::p_atmosWha
protected

Definition at line 265 of file AtmosModel.h.

◆ p_atmosWhaold

double Isis::AtmosModel::p_atmosWhaold
private

Definition at line 299 of file AtmosModel.h.

◆ p_atmosWhasave

double Isis::AtmosModel::p_atmosWhasave
protected

Definition at line 256 of file AtmosModel.h.

◆ p_pstd

double Isis::AtmosModel::p_pstd
protected

Pure atmospheric-scattering term.

Definition at line 258 of file AtmosModel.h.

Referenced by AtmosModel(), Isis::Anisotropic1::AtmosModelAlgorithm(), Isis::Anisotropic2::AtmosModelAlgorithm(), and CalcAtmEffect().

◆ p_sbar

double Isis::AtmosModel::p_sbar
protected

Illumination of the ground by the sky.

Definition at line 262 of file AtmosModel.h.

Referenced by AtmosModel(), Isis::Anisotropic1::AtmosModelAlgorithm(), Isis::Anisotropic2::AtmosModelAlgorithm(), and CalcAtmEffect().

◆ p_standardConditions

bool Isis::AtmosModel::p_standardConditions
private

Definition at line 290 of file AtmosModel.h.

◆ p_trans

double Isis::AtmosModel::p_trans
protected

Transmission of surface reflected light through the atmosphere overall.

Definition at line 259 of file AtmosModel.h.

Referenced by AtmosModel(), Isis::Anisotropic1::AtmosModelAlgorithm(), Isis::Anisotropic2::AtmosModelAlgorithm(), and CalcAtmEffect().

◆ p_trans0

double Isis::AtmosModel::p_trans0
protected

Transmission of surface reflected light through the atmosphere with no scatterings in the atmosphere.

Definition at line 260 of file AtmosModel.h.

Referenced by AtmosModel(), Isis::Anisotropic1::AtmosModelAlgorithm(), Isis::Anisotropic2::AtmosModelAlgorithm(), and CalcAtmEffect().

◆ p_transs

double Isis::AtmosModel::p_transs
protected

Transmission of light that must be subtracted from the flat surface model to get the shadow model.

Definition at line 261 of file AtmosModel.h.

Referenced by AtmosModel(), Isis::Anisotropic1::AtmosModelAlgorithm(), Isis::Anisotropic2::AtmosModelAlgorithm(), and CalcAtmEffect().


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