75 QString spacecraft = (QString)inst[
"SpacecraftName"];
76 QString instId = (QString)inst[
"InstrumentId"];
78 QString reseauFileName =
"";
81 if (spacecraft ==
"VOYAGER_1") {
87 reseauFileName +=
"1/reseaus/vg1";
89 if (instId ==
"NARROW_ANGLE_CAMERA") {
90 reseauFileName +=
"na";
94 else if (instId ==
"WIDE_ANGLE_CAMERA") {
95 reseauFileName +=
"wa";
100 QString msg =
"File does not appear to be a Voyager image. InstrumentId ["
101 + instId +
"] is invalid Voyager value.";
105 else if (spacecraft ==
"VOYAGER_2") {
111 reseauFileName +=
"2/reseaus/vg2";
113 if (instId ==
"NARROW_ANGLE_CAMERA") {
114 reseauFileName +=
"na";
118 else if (instId ==
"WIDE_ANGLE_CAMERA") {
119 reseauFileName +=
"wa";
124 QString msg =
"File does not appear to be a Voyager image. InstrumentId ["
125 + instId +
"] is invalid Voyager value.";
130 QString msg =
"File does not appear to be a Voyager image. SpacecraftName ["
131 + spacecraft +
"] is invalid Voyager value.";
142 reseauFileName =
"$voyager" + reseauFileName +
"MasterReseaus.pvl";
143 FileName masterReseaus(reseauFileName);
159 startTime.setUtc((QString)inst[
"StartTime"]);
172 iTime centerTime = shuttertimes.first.
Et() + exposureDuration / 2.0;
203 double exposureDuration) {
204 pair<iTime, iTime> shuttertimes;
206 shuttertimes.second = time - 2;
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.
int p_spkTargetId
Spacecraft Kernel Target ID.
File name manipulation and expansion.
Parse and return pieces of a time string.
QString m_instrumentNameLong
Full instrument name.
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
virtual double exposureDuration() const
Return the exposure duration for the pixel that the camera is set to.
Convert between parent image coordinates and detector coordinates.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)
Returns the shutter open and close times.
Convert between undistorted focal plane and ground coordinates.
Convert between distorted focal plane and detector coordinates.
QString m_instrumentNameShort
Shortened instrument name.
Isis::Camera * VoyagerCameraPlugin(Isis::Cube &cube)
This is the function that is called in order to instantiate a VoyagerCamera object.
Distort/undistort focal plane coordinates.
Contains multiple PvlContainers.
#define _FILEINFO_
Macro for the filename and line number.
void print() const
Prints a string representation of this exception to stderr.
A type of error that could only have occurred due to a mistake on the user's part (e...
int p_ckFrameId
"Camera-matrix" Kernel Frame ID
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.
void LoadCache()
This loads the spice cache big enough for this image.
QString m_spacecraftNameLong
Full spacecraft name.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
SpiceInt naifIkCode() const
This returns the NAIF IK code to use when reading from instrument kernels.
Convert between undistorted focal plane and ra/dec coordinates.
QString m_spacecraftNameShort
Shortened spacecraft name.
Generic class for Framing Cameras.
IO Handler for Isis Cubes.