125 QString ikernKey =
"INS" +
toString(ikCode) +
"_LIGHTTIME_CORRECTION";
126 QString abcorr = spice->
getString(ikernKey);
150 m_abcorr = correction;
196 QString qtag(
"ID:USGS_SPK_ABCORR");
202 for (
int k = 0 ; k < spks.size() ; k++ ) {
203 QString spkFile = spks[k];
205 SpiceChar source[128];
209 (void) kinfo_c(spkFile.toLatin1().data(),
sizeof(ktype),
sizeof(source), ktype,
210 source, &handle, &found);
211 if (found == SPICETRUE) {
213 SpiceChar commnt[1001];
214 SpiceBoolean done(SPICEFALSE);
222 dafec_c(handle, 1,
sizeof(commnt), &n, commnt, &done);
223 QString cmmt(commnt);
225 if ( (pos = cmmt.indexOf(qtag, pos, Qt::CaseInsensitive)) != -1 ) {
233 if ( !abcorr.isEmpty() )
break;
240 if (!abcorr.isEmpty()) { m_abcorr = abcorr; }
241 return (!abcorr.isEmpty());
246 return (
"NONE" != m_abcorr);
273 QString ikernKey =
"INS" +
toString(ikCode) +
"_SWAP_OBSERVER_TARGET";
274 QString value = spice->
getString(ikernKey).toUpper();
275 m_swapObserverTarget = (
"TRUE" == value);
279 m_swapObserverTarget =
false;
282 return (m_swapObserverTarget);
288 return (m_swapObserverTarget);
293 m_swapObserverTarget =
true;
298 m_swapObserverTarget =
false;
325 QString ikernKey =
"INS" +
toString(ikCode) +
"_LT_SURFACE_CORRECT";
326 QString value = spice->
getString(ikernKey).toUpper();
327 m_sc_to_surf_ltcorr = (
"TRUE" == value);
331 m_sc_to_surf_ltcorr =
false;
334 return (m_sc_to_surf_ltcorr);
339 return (m_sc_to_surf_ltcorr);
344 m_sc_to_surf_ltcorr =
true;
350 m_sc_to_surf_ltcorr =
false;
366 m_swapObserverTarget =
false;
367 m_sc_to_surf_ltcorr =
false;
bool checkLightTimeToSurfaceCorrect(int ikCode, Spice *spice)
Determines state of surface to s/c light time correction.
LightTimeCorrectionState()
Default constructor sets default state of light time corrections.
QString getAberrationCorrection() const
Returns the value of the current stellar aberration state.
void setAberrationCorrection(const QString &correction)
Sets the aberration correction directly.
Provides interface to user configurable Light Time correction feature.
bool checkAberrationCorrection(int ikCode, Spice *spice)
Apply instrument (team) specific light time/stellar aborration option.
bool operator==(const LightTimeCorrectionState &state) const
Compare two instances of the LightTimeCorrectionState objects.
Determine SPICE kernels defined in an ISIS file.
void setNoSwapObserverTarget()
Turns off swapping of observer/target (default)
bool checkObserverTargetSwap(int ikCode, Spice *spice)
Check status of target/observer swap specification.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
int Discover()
Determine which NAIF kernels are currently loaded in the pool.
bool isLightTimeToSurfaceCorrected() const
Returns state of light time from surface to center body correction.
void setNoCorrectLightTimeToSurface()
Disables state of light time from surface to center body for correction.
void setCorrectLightTimeToSurface()
Sets state of light time from surface to center body for orrection.
bool isObserverTargetSwapped() const
Returns state swap observer/target.
QStringList getKernelList(const QString &ktype="") const
Provide a list of all the kernels found.
void setDefaultState()
Set default conditions for light time correction state.
bool checkSpkKernelsForAberrationCorrection()
Check for light time/stellar aberration tag in SPK comments.
QString getString(const QString &key, int index=0)
This returns a value from the NAIF text pool.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Obtain SPICE information for a spacecraft.
void setSwapObserverTarget()
Turns on swapping of observer/target.
bool isLightTimeCorrected() const
Is light time to target corrected?