Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev Fix #4935

Merged
merged 1 commit into from
Apr 29, 2022
Merged

Dev Fix #4935

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions isis/src/lro/apps/lronacpho/LROCEmpirical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,24 +347,24 @@ namespace Isis {
* @history 2021-03-12 Victor Silva - Added b parameters for 2019 version of
* LROC Empirical algorithm
*
* @history 2022-04-26 Victor Silva - Changed strings casted using toString to
* @history 2022-04-26 Victor Silva - Changed strings casted using toString to
* string literal "0.0"
*
*/
LROCEmpirical::Parameters LROCEmpirical::extract( const DbProfile &profile) const {
Parameters pars;

for (int i=0; i<4; i++)
pars.aTerms.push_back(toDouble(ConfKey(profile, "A" + toString(i), "0.0")));
pars.aTerms.push_back(toDouble(ConfKey(profile, "A" + toString(i), toString(0.0))));
for (int i=0; i<7; i++)
pars.bTerms.push_back(toDouble(ConfKey(profile, "B" + toString(i), "0.0")));
pars.bTerms.push_back(toDouble(ConfKey(profile, "B" + toString(i), toString(0.0))));

pars.wavelength = toDouble(ConfKey(profile, "BandBinCenter", toString(Null)));
pars.tolerance = toDouble(ConfKey(profile, "BandBinCenterTolerance", toString(Null)));
// Determine equation units - defaults to Radians
pars.units = ConfKey(profile, "Units", QString("Radians"));
pars.phaUnit = (pars.units.toLower() == "degrees") ? 1.0 : rpd_c();
pars.algoVersion = toInt(ConfKey(profile, "AlgorithmVersion", "0"));
pars.algoVersion = toInt(ConfKey(profile, "AlgorithmVersion", toString(0)));

return (pars);
}
Expand Down