65 QString spacecraft = inst[
"SPACECRAFTNAME"];
66 QString instId = inst[
"INSTRUMENTID"];
69 double raster, cone, crosscone;
71 if(spacecraft ==
"VIKING_ORBITER_1") {
77 if(instId ==
"VISUAL_IMAGING_SUBSYSTEM_CAMERA_A") {
80 crosscone = -0.707350;
84 else if(instId ==
"VISUAL_IMAGING_SUBSYSTEM_CAMERA_B") {
92 QString msg =
"File does not appear to be a Viking image. InstrumentId ["
93 + instId +
"] is invalid Viking value.";
97 else if(spacecraft ==
"VIKING_ORBITER_2") {
102 altinstcode = -30999;
103 if(instId ==
"VISUAL_IMAGING_SUBSYSTEM_CAMERA_A") {
106 crosscone = -0.679330;
110 else if(instId ==
"VISUAL_IMAGING_SUBSYSTEM_CAMERA_B") {
113 crosscone = 0.663000;
118 QString msg =
"File does not appear to be a Viking image. InstrumentId ["
119 + instId +
"] is invalid Viking value.";
124 QString msg =
"File does not appear to be a Viking image. SpacecraftName ["
125 + spacecraft +
"] is invalid Viking value.";
148 QString spacecraftClock = inst[
"SpacecraftClockCount"];
152 double exposureDuration = inst[
"ExposureDuration"];
155 SpiceDouble CP[3][3];
156 eul2m_c((SpiceDouble)raster * rpd_c(), (SpiceDouble)cone * rpd_c(),
157 (SpiceDouble) - crosscone * rpd_c(), 3, 2, 1, CP);
164 double centerTime = shuttertimes.first.Et() + exposureDuration / 2.0;
166 et2utc_c(centerTime,
"ISOC", 3, 25, timepds);
167 utc2et_c(timepds, ¢erTime);
178 +
"MasterReseaus.pvl").expanded();
211 double exposureDuration) {
212 pair<iTime, iTime> shuttertimes;
214 if(exposureDuration <= .420) {
215 offset1 = 7.0 / 8.0 * 4.48;
218 offset1 = 3.0 / 8.0 * 4.48;
220 double offset2 = 1.0 / 64.0 * 4.48;
223 shuttertimes.first = time + offset1 + offset2;
224 shuttertimes.second = shuttertimes.first.Et() + exposureDuration;