![]() |
Isis 3 Developer Reference
|
Class for bundle observations. More...
#include <BundleObservation.h>
Public Member Functions | |
BundleObservation () | |
Constructs a BundleObservation initialized to a default state. More... | |
BundleObservation (BundleImageQsp image, QString observationNumber, QString instrumentId, BundleTargetBodyQsp bundleTargetBody) | |
Constructs a BundleObservation from an BundleImage, an instrument id, an observation number to assign to this BundleObservation, and a target body. More... | |
BundleObservation (const BundleObservation &src) | |
Creates a copy of another BundleObservation. More... | |
~BundleObservation () | |
Destructor. More... | |
BundleObservation & | operator= (const BundleObservation &src) |
Assignment operator. More... | |
void | copy (const BundleObservation &src) |
void | append (const BundleImageQsp &value) |
Appends a BundleImage shared pointer to the BundleObservation. More... | |
BundleImageQsp | imageByCubeSerialNumber (QString cubeSerialNumber) |
Returns the BundleImage shared pointer associated with the given serial number. More... | |
bool | setSolveSettings (BundleObservationSolveSettings solveSettings) |
Set solve parameters. More... | |
void | setIndex (int n) |
Sets the index for the observation. More... | |
int | index () |
Accesses the observation's index. More... | |
int | numberPositionParameters () |
Returns the number of position parameters there are. More... | |
int | numberPointingParameters () |
Returns the number of pointing parameters being solved for. More... | |
int | numberParameters () |
Returns the number of total parameters there are for solving. More... | |
QString | instrumentId () |
Accesses the instrument id. More... | |
SpiceRotation * | spiceRotation () |
Accesses the instrument's spice rotation. More... | |
SpicePosition * | spicePosition () |
Accesses the instrument's spice position. More... | |
LinearAlgebra::Vector & | parameterWeights () |
Accesses the solve parameter weights. More... | |
LinearAlgebra::Vector & | parameterCorrections () |
Accesses the parameter corrections. More... | |
LinearAlgebra::Vector & | aprioriSigmas () |
Accesses the a priori sigmas. More... | |
LinearAlgebra::Vector & | adjustedSigmas () |
Accesses the adjusted sigmas. More... | |
const BundleObservationSolveSettingsQsp | solveSettings () |
Accesses the solve settings. More... | |
bool | applyParameterCorrections (LinearAlgebra::Vector corrections) |
Applies the parameter corrections. More... | |
bool | initializeExteriorOrientation () |
Initializes the exterior orientation. More... | |
void | initializeBodyRotation () |
Intializes the body rotation. More... | |
void | updateBodyRotation () |
Updates the body rotation. More... | |
void | bundleOutputFetchData (QVector< double > &finalParameterValues, int &nPositionCoefficients, int &nPointingCoefficients, bool &useDefaultPosition, bool &useDefaultPointing, bool &useDefaultTwist) |
Fetches data for the log file output methods. More... | |
void | bundleOutputString (std::ostream &fpOut, bool errorPropagation) |
Takes in an open std::ofstream and writes out information which goes into the bundleout.txt file. More... | |
QString | bundleOutputCSV (bool errorPropagation) |
Creates and returns a formatted QString representing the bundle coefficients and parameters in csv format. More... | |
QString | formatBundleOutputString (bool errorPropagation, bool imageCSV=false) |
Creates and returns a formatted QString representing the bundle coefficients and parameters More... | |
QStringList | parameterList () |
Access to parameters for CorrelationMatrix to use. More... | |
QStringList | imageNames () |
Access to image names for CorrelationMatrix to use. More... | |
Class for bundle observations.
This class is used for creating a bundle observation. Contained BundleImages are stored as shared pointers, so they will be automatically deleted when all shared pointers are deleted.
Isis::BundleObservation::BundleObservation | ( | ) |
Constructs a BundleObservation initialized to a default state.
Isis::BundleObservation::BundleObservation | ( | BundleImageQsp | image, |
QString | observationNumber, | ||
QString | instrumentId, | ||
BundleTargetBodyQsp | bundleTargetBody | ||
) |
Constructs a BundleObservation from an BundleImage, an instrument id, an observation number to assign to this BundleObservation, and a target body.
image | QSharedPointer to the primary image in the observation |
observationNumber | Observation number of the observation |
instrumentId | Id of the instrument for the observation |
bundleTargetBody | QSharedPointer to the target body of the observation |
Isis::BundleObservation::BundleObservation | ( | const BundleObservation & | src | ) |
Creates a copy of another BundleObservation.
src | Reference to the BundleObservation to copy |
Isis::BundleObservation::~BundleObservation | ( | ) |
Destructor.
Contained BundleImages will remain until all shared pointers are deleted.
LinearAlgebra::Vector & Isis::BundleObservation::adjustedSigmas | ( | ) |
Accesses the adjusted sigmas.
void Isis::BundleObservation::append | ( | const BundleImageQsp & | value | ) |
Appends a BundleImage shared pointer to the BundleObservation.
If the pointer is valid, then the BundleImage and its serial number will be inserted into the serial number to BundleImage map.
value | The BundleImage to be appended. |
bool Isis::BundleObservation::applyParameterCorrections | ( | LinearAlgebra::Vector | corrections | ) |
Applies the parameter corrections.
corrections | Vector of corrections to apply |
IException::Unknown | "Instrument position is NULL, but position solve option is [not NoPositionFactors]" |
IException::Unknown | "Instrument position is NULL, but pointing solve option is [not NoPointingFactors]" |
IException::Unknown | "Unable to apply parameter corrections to BundleObservation." |
References _FILEINFO_, Isis::SpicePosition::SetPolynomial(), and Isis::SpiceRotation::SetPolynomial().
LinearAlgebra::Vector & Isis::BundleObservation::aprioriSigmas | ( | ) |
Accesses the a priori sigmas.
QString Isis::BundleObservation::bundleOutputCSV | ( | bool | errorPropagation | ) |
Creates and returns a formatted QString representing the bundle coefficients and parameters in csv format.
errorPropagation | Boolean indicating whether or not to attach more information (corrections, sigmas, adjusted sigmas...) to the output QString |
References Isis::IsSpecial(), Isis::RAD2DEG, and Isis::toString().
void Isis::BundleObservation::bundleOutputFetchData | ( | QVector< double > & | finalParameterValues, |
int & | nPositionCoefficients, | ||
int & | nPointingCoefficients, | ||
bool & | useDefaultPosition, | ||
bool & | useDefaultPointing, | ||
bool & | useDefaultTwist | ||
) |
Fetches data for the log file output methods.
finalParameterValues | Reference to QVector<double> of calculated position and pointing |
nPositionCoefficients | Reference to int of the number of position coefficients |
nPointingCoefficients | Reference to int of the number of pointing coefficients |
useDefaultPosition | Reference to boolean of whether to use default position |
useDefaultPointing | Reference to boolean of whether to use default pointing |
useDefaultTwist | Reference to bollean of whether to use defualt twist |
void Isis::BundleObservation::bundleOutputString | ( | std::ostream & | fpOut, |
bool | errorPropagation | ||
) |
Takes in an open std::ofstream and writes out information which goes into the bundleout.txt file.
fpOut | The open std::ofstream object which is passed in from BundleSolutionInfo::outputText() |
errorPropagation | Boolean indicating whether or not to attach more information (corrections, sigmas, adjusted sigmas...) to the output. |
References Isis::IsSpecial(), Isis::RAD2DEG, and Isis::toString().
void Isis::BundleObservation::copy | ( | const BundleObservation & | src | ) |
QString Isis::BundleObservation::formatBundleOutputString | ( | bool | errorPropagation, |
bool | imageCSV = false |
||
) |
Creates and returns a formatted QString representing the bundle coefficients and parameters
The function formatBundleOutputString is depricated as of ISIS 3.9 and will be removed in ISIS 4.0
errorPropagation | Boolean indicating whether or not to attach more information (corrections, sigmas, adjusted sigmas...) to the output QString |
imageCSV | Boolean which is set to true if the function is being called from BundleSolutionInfo::outputImagesCSV(). It is set to false by default for backwards compatibility. |
References Isis::IsSpecial(), Isis::RAD2DEG, and Isis::toString().
BundleImageQsp Isis::BundleObservation::imageByCubeSerialNumber | ( | QString | cubeSerialNumber | ) |
Returns the BundleImage shared pointer associated with the given serial number.
If no BundleImage with that serial number is contained a NULL pointer is returned.
cubeSerialNumber | The serial number of the cube to be returned. |
QStringList Isis::BundleObservation::imageNames | ( | ) |
Access to image names for CorrelationMatrix to use.
int Isis::BundleObservation::index | ( | ) |
Accesses the observation's index.
void Isis::BundleObservation::initializeBodyRotation | ( | ) |
Intializes the body rotation.
bool Isis::BundleObservation::initializeExteriorOrientation | ( | ) |
Initializes the exterior orientation.
References Isis::SpiceRotation::GetBaseTime(), Isis::SpiceRotation::GetPolynomial(), Isis::SpiceRotation::GetTimeScale(), Isis::SpicePosition::SetOverrideBaseTime(), Isis::SpiceRotation::SetOverrideBaseTime(), Isis::SpicePosition::SetPolynomial(), Isis::SpiceRotation::SetPolynomial(), Isis::SpicePosition::SetPolynomialDegree(), and Isis::SpiceRotation::SetPolynomialDegree().
QString Isis::BundleObservation::instrumentId | ( | ) |
Accesses the instrument id.
int Isis::BundleObservation::numberParameters | ( | ) |
Returns the number of total parameters there are for solving.
The total number of parameters is equal to the number of position parameters and number of pointing parameters
int Isis::BundleObservation::numberPointingParameters | ( | ) |
Returns the number of pointing parameters being solved for.
int Isis::BundleObservation::numberPositionParameters | ( | ) |
Returns the number of position parameters there are.
BundleObservation & Isis::BundleObservation::operator= | ( | const BundleObservation & | src | ) |
Assignment operator.
Assigns the state of the source BundleObservation to this BundleObservation
BundleObservation | Reference to the source BundleObservation to assign from |
LinearAlgebra::Vector & Isis::BundleObservation::parameterCorrections | ( | ) |
Accesses the parameter corrections.
QStringList Isis::BundleObservation::parameterList | ( | ) |
Access to parameters for CorrelationMatrix to use.
LinearAlgebra::Vector & Isis::BundleObservation::parameterWeights | ( | ) |
Accesses the solve parameter weights.
void Isis::BundleObservation::setIndex | ( | int | n | ) |
Sets the index for the observation.
n | Value to set the index of the observation to |
bool Isis::BundleObservation::setSolveSettings | ( | BundleObservationSolveSettings | solveSettings | ) |
Set solve parameters.
solveSettings | The solve settings to use |
References Isis::Null.
const BundleObservationSolveSettingsQsp Isis::BundleObservation::solveSettings | ( | ) |
Accesses the solve settings.
SpicePosition * Isis::BundleObservation::spicePosition | ( | ) |
Accesses the instrument's spice position.
SpiceRotation * Isis::BundleObservation::spiceRotation | ( | ) |
Accesses the instrument's spice rotation.
void Isis::BundleObservation::updateBodyRotation | ( | ) |
Updates the body rotation.
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/12/2023 23:38:01 |