Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions changes/+20260202150859.change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update 'UseWebSpice' keyword in preferences to 'UseSpiceQL'.
4 changes: 2 additions & 2 deletions isis/IsisPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ EndGroup
#
########################################################

Group = WebSpice
UseWebSpice = "false"
Group = SpiceQL
UseSpiceQL = "false"
EndGroup

########################################################
Expand Down
4 changes: 2 additions & 2 deletions isis/TestPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ EndGroup
#
########################################################

Group = WebSpice
UseWebSpice = "false"
Group = SpiceQL
UseSpiceQL = "false"
EndGroup


Expand Down
2 changes: 1 addition & 1 deletion isis/src/apollo/apps/apollopaninit/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void IsisMain() {


//////////////////////////////////////////attach a target rotation table
bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
std::string frameName;
SpiceInt frameCode = 0;
try {
Expand Down
2 changes: 1 addition & 1 deletion isis/src/base/apps/appjit/LineScanCameraRotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ namespace Isis {

std::vector<ale::Rotation> rotationCache;

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
auto [sunLt, kernels] = SpiceQL::getTargetStates(p_cacheTime, "MRO", "MARS", "IAU_MARS", "NONE", "mro", {"reconstructed"}, {"reconstructed"}, useWeb, false, false);

double state[6];
Expand Down
2 changes: 1 addition & 1 deletion isis/src/base/apps/shadow/shadow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace Isis {
userKernels = true;
}

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

if (userKernels) {
auto [output, kernels] = SpiceQL::getTargetStates(etStart, "sun", observer, bff, "NONE", "base", {"reconstructed"}, {"reconstructed"}, useWeb, true);
Expand Down
30 changes: 15 additions & 15 deletions isis/src/base/objs/RestfulSpice/RestfulSpice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@


// std::vector<std::vector<double>> getTargetStates(std::vector<double> ets, std::string target, std::string observer, std::string frame, std::string abcorr, std::string mission, std::string ckQuality, std::string spkQuality, std::vector<std::string> kernel_list){
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// // @TODO validity checks
// json args = json::object({
Expand All @@ -129,7 +129,7 @@


// std::vector<std::vector<double>> getTargetOrientations(std::vector<double> ets, int toFrame, int refFrame, std::string mission, std::string ckQuality) {
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"ets", ets},
Expand All @@ -146,7 +146,7 @@
// }

// double strSclkToEt(int frameCode, std::string sclk, std::string mission) {
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"frameCode", frameCode},
Expand All @@ -161,7 +161,7 @@
// }

// double doubleSclkToEt(int frameCode, double sclk, std::string mission){
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"frameCode", frameCode},
Expand All @@ -176,7 +176,7 @@
// }

// double utcToEt(std::string utc){
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"utc", utc}
Expand All @@ -191,7 +191,7 @@


// std::string etToUtc(double et, std::string format, double precision){
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// // TODO Add etToUtc to web api
// if (useWeb){
// json args = json::object({
Expand All @@ -207,7 +207,7 @@
// }

// std::string doubleEtToSclk(int frameCode, double et, std::string mission) {
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"frameCode", frameCode},
Expand All @@ -223,7 +223,7 @@
// }

// int translateNameToCode(std::string frame, std::string mission){
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"frame", frame},
Expand All @@ -237,7 +237,7 @@
// }

// std::string translateCodeToName(int code, std::string mission){
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"code", code},
Expand All @@ -251,7 +251,7 @@
// }

// std::vector<int> getFrameInfo(int frame, std::string mission) {
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"frame", frame},
Expand All @@ -266,7 +266,7 @@
// }

// json getTargetFrameInfo(int targetId, std::string mission) {
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"targetId", targetId},
Expand All @@ -280,7 +280,7 @@
// }

// json findMissionKeywords(std::string key, std::string mission){
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"key", key},
Expand All @@ -294,7 +294,7 @@
// }

// json findTargetKeywords(std::string key, std::string mission){
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"key", key},
Expand All @@ -308,7 +308,7 @@
// }

// std::vector<std::vector<int>> frameTrace(double et, int initialFrame, std::string mission, std::string ckQuality) {
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"et", et},
Expand All @@ -324,7 +324,7 @@
// }

// std::vector<double> extractExactCkTimes(double observStart, double observEnd, int targetFrame, std::string mission, std::string ckQuality) {
// bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
// bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// if (useWeb){
// json args = json::object({
// {"observStart", observStart},
Expand Down
2 changes: 1 addition & 1 deletion isis/src/chandrayaan1/apps/chan1m32isis/chan1m32isis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ namespace Isis {
lastEt = firstEt + (g_expectedLineRate / 2.0);
}

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

inst.findKeyword("StartTime").setValue(firstEt.UTC());
auto [startClockString, kernels] = SpiceQL::doubleEtToSclk(sclkCode, firstEt.Et(), "chandrayaan1", useWeb);
Expand Down
2 changes: 1 addition & 1 deletion isis/src/control/apps/sumspice/SumFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ namespace Isis {
iTime newStartClock(sumStartTime() - startExposureDelay(*m_cube));
iTime newStopClock(sumStopTime() + stopExposureDelay(*m_cube));

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

// Compute start SCLK if present on labels
if ( origStartClock.size() > 0 ) {
Expand Down
2 changes: 1 addition & 1 deletion isis/src/galileo/apps/gllssical/gllssical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ namespace Isis {

NaifStatus::CheckErrors();

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
auto [obsStartTime, kernels] = SpiceQL::strSclkToEt(-77, startTime.toStdString(), "galileo", useWeb);
spicegll.setTime(obsStartTime);
double sunv[3];
Expand Down
2 changes: 1 addition & 1 deletion isis/src/hayabusa/apps/amicacal/AmicaCalUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static bool sunDistanceAU(Cube *iCube,
catch(IException &e) {
sunDist = 1.0;

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
// Determine if the target is a valid NAIF target
try {
SpiceQL::translateNameToCode(target.toLatin1().data(), "amica", useWeb);
Expand Down
2 changes: 1 addition & 1 deletion isis/src/hayabusa/apps/amicacal/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ QString loadCalibrationVariables(const QString &config, Cube *iCube) {
}
catch(IException &e) {
try{
bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
auto [output, kernels] = SpiceQL::strSclkToEt(g_hayabusaNaifCode, g_startTime.toLatin1().data(), "amica", useWeb);
obsStartTime = output;
}
Expand Down
2 changes: 1 addition & 1 deletion isis/src/lro/apps/lronaccal/lronaccal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ namespace Isis {
catch(IException &e) {
// Failed to instantiate a camera, try furnishing kernels directly
try {
bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

std::vector<double> etStart = {startTime.Et()};
double sunpos[6];
Expand Down
2 changes: 1 addition & 1 deletion isis/src/lro/apps/lrowaccal/lrowaccal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ namespace Isis {
}
catch(IException &e) {
try {
bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

iTime startTime((QString) inst["StartTime"]);
double etStart = startTime.Et();
Expand Down
2 changes: 1 addition & 1 deletion isis/src/mer/apps/mical/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void IsisMain() {
iTime startTime = gbl::mi->StartTime();
//Get the distance between Mars and the Sun at the given time in
// Astronomical Units (AU)
bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

double sunpos[6];
std::vector<double> etStart = {startTime.Et()};
Expand Down
4 changes: 2 additions & 2 deletions isis/src/messenger/apps/mdiscal/MdisCalUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace Isis {
NaifStatus::CheckErrors();
sunDist = 1.0;

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

// Determine if the target is a valid NAIF target
try{
Expand Down Expand Up @@ -375,7 +375,7 @@ namespace Isis {
// Ensure NAIF kernels are loaded for NAIF time computations
NaifStatus::CheckErrors();

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

// Convert s/c clock start time to et
tie(obsStartTime, kernels) = SpiceQL::strSclkToEt(-236, scStartTime.toLatin1().data(), "mdis", useWeb);
Expand Down
2 changes: 1 addition & 1 deletion isis/src/mgs/apps/moccal/moccal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ namespace Isis {

NaifStatus::CheckErrors();

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

double sunpos[6];
std::vector<double> etStartVec = {etStart};
Expand Down
4 changes: 2 additions & 2 deletions isis/src/mgs/objs/MocLabels/MocLabels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ namespace Isis {
// Initialize the maps from sample coordinate to detector coordinates
InitDetectorMaps();

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

auto [output, kernels] = SpiceQL::strSclkToEt(-94, p_clockCount.toLatin1().data(), "mgs", useWeb);
p_etStart = output;
Expand Down Expand Up @@ -463,7 +463,7 @@ namespace Isis {
sclk.Remove("\"");
sclk.Trim(" ");

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
auto [et, kernels] = SpiceQL::strSclkToEt(-94, currentSclk, "mgs", useWeb);

//Compare time against given parameters, if it fits, process
Expand Down
2 changes: 1 addition & 1 deletion isis/src/mro/apps/ctxcal/ctxcal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ namespace Isis {
NaifStatus::CheckErrors();
double sunpos[6];

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

std::vector<double> etStartVec = {etStart};
auto [sunLt, kernels] = SpiceQL::getTargetStates(etStartVec, "sun", "mars", "iau_mars", "LT+S", "mro", {"reconstructed"}, {"reconstructed"}, useWeb);
Expand Down
2 changes: 1 addition & 1 deletion isis/src/mro/apps/hicrop/hicrop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ namespace Isis {
double unbinnedRate = (74.0 + (deltaLineTimerCount / 16.0)) / 1000000.0;
double lineRate = unbinnedRate * binMode;

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

// get the actual original start time by making adjustments to the
// spacecraft clock start count in the labels
Expand Down
2 changes: 1 addition & 1 deletion isis/src/mro/apps/hijitreg/HiJitCube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ namespace Isis {
jdata.obsStartTime = cam->time().Et();
} catch (IException &e) {
try {
bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
QString scStartTimeString = jdata.scStartTime;
auto [output, kernels] = SpiceQL::strSclkToEt(-74999, scStartTimeString.toLatin1().data(), "hirise", useWeb);
jdata.obsStartTime = output;
Expand Down
2 changes: 1 addition & 1 deletion isis/src/mro/objs/HiCal/HiCalConf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ bool HiCalConf::_naifLoaded = false;
try {
QString scStartTime = getKey("SpacecraftClockStartCount", "Instrument");
NaifStatus::CheckErrors();
bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
double obsStartTime = SpiceQL::strSclkToEt(-74999, scStartTime.toLatin1().data(), "hirise", useWeb).first;

QString targetName = getKey("TargetName", "Instrument");
Expand Down
2 changes: 1 addition & 1 deletion isis/src/newhorizons/apps/mvic2isis/mvic2isis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ namespace Isis {
throw IException(IException::User, msg, _FILEINFO_);
}

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
QString scTime = inst["SpacecraftClockStartCount"];
auto [et, k1] = SpiceQL::strSclkToEt(sclkCode, scTime.toLatin1().data(), "mvic", useWeb);
auto [utc, k2] = SpiceQL::etToUtc(et, "ISOC", 3, useWeb);
Expand Down
2 changes: 1 addition & 1 deletion isis/src/rosetta/apps/rosvirtis2isis/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ void IsisMain ()
// Fix the StartTime and SpacecraftStartClockCount in the ISIS label
PvlGroup &inst = outLabel.findGroup("Instrument", Pvl::Traverse);

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

auto [etStart, k1] = SpiceQL::strSclkToEt(-226, startScet.toLatin1().data(), "virtis", useWeb);
auto [etEnd, k2] = SpiceQL::strSclkToEt(-226, stopScet.toLatin1().data(), "virtis", useWeb);
Expand Down
2 changes: 1 addition & 1 deletion isis/src/viking/apps/vikcal/CalParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ namespace Isis {
// Failed to instantiate a camera, try furnishing kernels directly
try {
NaifStatus::CheckErrors();
bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";
double sunv[3];
double et = SpiceQL::utcToEt(t.toLatin1().data(), useWeb).first;

Expand Down
2 changes: 1 addition & 1 deletion isis/src/voyager/apps/voy2isis/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void TranslateVoyagerLabels(Pvl &inputLab, Cube *ocube) {
// The purpose of the next two steps, getting the spacecraft clock count,
// are simply to get the partition, the very first number 1/...

bool useWeb = QString(Preference::Preferences().findGroup("WebSpice")["UseWebSpice"]).toUpper() == "TRUE";
bool useWeb = QString(Preference::Preferences().findGroup("SpiceQL")["UseSpiceQL"]).toUpper() == "TRUE";

auto [approxEphemeris, kernels] = SpiceQL::utcToEt(inst["StartTime"][0].toLatin1().data(), useWeb);

Expand Down