67 QString spacecraft = inst[
"SPACECRAFTNAME"];
68 QString instId = inst[
"INSTRUMENTID"];
71 double raster, cone, crosscone;
73 if(spacecraft ==
"VIKING_ORBITER_1") {
81 if(instId ==
"VISUAL_IMAGING_SUBSYSTEM_CAMERA_A") {
84 crosscone = -0.707350;
90 else if(instId ==
"VISUAL_IMAGING_SUBSYSTEM_CAMERA_B") {
100 QString msg =
"File does not appear to be a Viking image. InstrumentId [" 101 + instId +
"] is invalid Viking value.";
105 else if(spacecraft ==
"VIKING_ORBITER_2") {
112 altinstcode = -30999;
113 if(instId ==
"VISUAL_IMAGING_SUBSYSTEM_CAMERA_A") {
116 crosscone = -0.679330;
122 else if(instId ==
"VISUAL_IMAGING_SUBSYSTEM_CAMERA_B") {
125 crosscone = 0.663000;
132 QString msg =
"File does not appear to be a Viking image. InstrumentId [" 133 + instId +
"] is invalid Viking value.";
138 QString msg =
"File does not appear to be a Viking image. SpacecraftName [" 139 + spacecraft +
"] is invalid Viking value.";
162 QString spacecraftClock = inst[
"SpacecraftClockCount"];
169 SpiceDouble CP[3][3];
170 eul2m_c((SpiceDouble)raster * rpd_c(), (SpiceDouble)cone * rpd_c(),
171 (SpiceDouble) - crosscone * rpd_c(), 3, 2, 1, CP);
180 et2utc_c(centerTime,
"ISOC", 3, 25, timepds);
181 utc2et_c(timepds, ¢erTime);
226 double exposureDuration) {
227 pair<iTime, iTime> shuttertimes;
230 offset1 = 7.0 / 8.0 * 4.48;
233 offset1 = 3.0 / 8.0 * 4.48;
235 double offset2 = 1.0 / 64.0 * 4.48;
238 shuttertimes.first =
time + offset1 + offset2;
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.
File name manipulation and expansion.
QString m_instrumentNameLong
Full instrument name.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
Namespace for the standard library.
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.
int p_spkTargetId
Spacecraft Kernel Target ID.
Convert between parent image coordinates and detector coordinates.
Convert between undistorted focal plane and ground coordinates.
Convert between distorted focal plane and detector coordinates.
QString m_instrumentNameShort
Shortened instrument name.
Distort/undistort focal plane coordinates.
Contains multiple PvlContainers.
int p_ckFrameId
"Camera-matrix" Kernel Frame ID
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.
A type of error that could only have occurred due to a mistake on the user's part (e...
iTime getClockTime(QString clockValue, int sclkCode=-1, bool clockTicks=false)
This converts the spacecraft clock ticks value (clockValue) to an iTime.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
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.
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Isis::Camera * VikingCameraPlugin(Isis::Cube &cube)
This is the function that is called in order to instantiate a VikingCamera object.
Namespace for ISIS/Bullet specific routines.
Convert between undistorted focal plane and ra/dec coordinates.
QString m_spacecraftNameShort
Shortened spacecraft name.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)
Returns the shutter open and close times.
virtual double exposureDuration() const
Return the exposure duration for the pixel that the camera is set to.
Generic class for Framing Cameras.
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
IO Handler for Isis Cubes.
iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions...