58 QString msg =
"File does not appear to be a Lunar Reconnaissance Orbiter Image: ";
60 msg +=
" is not a supported instrument kernel code for Lunar Reconnaissance Orbiter.";
69 double constantTimeOffset = 0.0,
70 additionalPreroll = 0.0,
71 additiveLineTimeError = 0.0,
72 multiplicativeLineTimeError = 0.0;
81 additiveLineTimeError =
getDouble(ikernKey);
84 multiplicativeLineTimeError =
getDouble(ikernKey);
89 QString stime = inst[
"SpacecraftClockPrerollCount"];
96 etStart =
iTime((QString)inst[
"PrerollTime"]).
Et();
100 double csum = inst[
"SpatialSumming"];
101 double lineRate = (double) inst[
"LineExposureDuration"] / 1000.0;
102 double ss = inst[
"SampleFirstPixel"];
105 lineRate *= 1.0 + multiplicativeLineTimeError;
106 lineRate += additiveLineTimeError;
107 etStart += additionalPreroll * lineRate;
108 etStart += constantTimeOffset;
122 double sampleBoreSight =
getDouble(ikernKey);
125 double lineBoreSight =
getDouble(ikernKey);
void SetFocalLength()
Reads the focal length from the instrument kernel.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
void SetDetectorOffset(const double sampleOffset, const double lineOffset)
Set the detector offset.
Parse and return pieces of a time string.
void SetDistortion(const int naifIkCode)
Distort/undistort focal plane coordinates.
QString m_instrumentNameLong
Full instrument name.
void SetDetectorSampleSumming(const double summing)
Set sample summing mode.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
Namespace for the standard library.
Generic class for Line Scan Cameras.
Isis::Camera * LroNarrowAngleCameraPlugin(Isis::Cube &cube)
This is the function that is called in order to instantiate a LroNarrowAngle object.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
This error is for when a programmer made an API call that was illegal.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Convert between undistorted focal plane and ground coordinates.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Convert between distorted focal plane and detector coordinates.
LRO Narrow Angle Camera Model.
QString m_instrumentNameShort
Shortened instrument name.
Contains multiple PvlContainers.
SpiceInt naifIkCode() const
This returns the NAIF IK code to use when reading from instrument kernels.
#define _FILEINFO_
Macro for the filename and line number.
iTime getClockTime(QString clockValue, int sclkCode=-1, bool clockTicks=false)
This converts the spacecraft clock ticks value (clockValue) to an iTime.
void setTime(const iTime &time)
By setting the time you essential set the position of the spacecraft and body as indicated in the cla...
Container for cube-like labels.
Convert between undistorted focal plane and ra/dec coordinates.
void LoadCache()
This loads the spice cache big enough for this image.
QString m_spacecraftNameLong
Full spacecraft name.
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
void SetStartingDetectorSample(const double sample)
Set the starting detector sample.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Namespace for ISIS/Bullet specific routines.
QString m_spacecraftNameShort
Shortened spacecraft name.
Convert between parent image coordinates and detector coordinates.
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
SpiceDouble getDouble(const QString &key, int index=0)
This returns a value from the NAIF text pool.
IO Handler for Isis Cubes.