Commit a284a6d5 authored by acpaquette's avatar acpaquette Committed by Jesse Mapel
Browse files

Fixed string behavior in LROCEmpirical ConfKey calls

parent b533e743
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -355,16 +355,16 @@ namespace Isis {
    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);
  }