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);
157 double exposureDuration = inst[
"ExposureDuration"];
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;
208 shuttertimes.first = shuttertimes.second.Et() - exposureDuration;