Skip to content

Commit

Permalink
Implemented bundleOutputString for CSM (DOI-USGS#4444)
Browse files Browse the repository at this point in the history
* Added test for CSM bundleOutputString

* Passing unit test and updates to bundleOutputString

* Addressed PR feedback
  • Loading branch information
amystamile-usgs authored and tgiroux committed Jun 8, 2021
1 parent 29cceca commit 36cb58f
Show file tree
Hide file tree
Showing 5 changed files with 238 additions and 246 deletions.
36 changes: 36 additions & 0 deletions isis/src/base/objs/CSMCamera/CSMCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,42 @@ namespace Isis {
}


/**
* Get the name of the parameter.
*
* @param index The index of parameter
*
* @returns @b QString name of the parameter at index
*/
QString CSMCamera::getParameterName(int index) {
return QString::fromStdString(m_model->getParameterName(index));
}


/**
* Get the value of a parameter.
*
* @param index The index of the parameter
*
* @returns @b double value of the parameter at index
*/
double CSMCamera::getParameterValue(int index) {
return m_model->getParameterValue(index);
}


/**
* Get the units of the parameter at a particular index.
*
* @param index The index of parameter
*
* @returns @b QString units of the parameter at index
*/
QString CSMCamera::getParameterUnits(int index) {
return QString::fromStdString(m_model->getParameterUnits(index));
}


/**
* Set the time and update the sensor position and orientation.
*
Expand Down
3 changes: 3 additions & 0 deletions isis/src/base/objs/CSMCamera/CSMCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ namespace Isis {
std::vector<int> getParameterIndices(QStringList paramList) const;
void applyParameterCorrection(int index, double correction);
double getParameterCovariance(int index1, int index2);
QString getParameterName(int index);
QString getParameterUnits(int index);
double getParameterValue(int index);
std::vector<double> getSensorPartials(int index, SurfacePoint groundPoint);

virtual std::vector<double> GroundPartials(SurfacePoint groundPoint);
Expand Down
Loading

0 comments on commit 36cb58f

Please sign in to comment.