66 QString channel = (QString) inst [
"Channel"];
71 if (channel ==
"VIS") {
75 if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"NORMAL") {
78 m_pixelPitchX = 0.024 * 3;
79 m_pixelPitchY = 0.024 * 3;
81 else if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"HI-RES") {
83 m_pixelPitchX = 0.024;
84 m_pixelPitchY = 0.024;
86 else if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"UNDER") {
87 QString msg =
"Isis cannot process images with a SamplingMode = \"UNDER\" (or NYQUIST)";
91 QString msg =
"Unknown SamplingMode [" + (QString) inst[
"SamplingMode"] +
"]";
95 else if (channel ==
"IR") {
100 if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"NORMAL") {
104 else if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"HI-RES") {
105 m_pixelPitchX = 0.103;
108 else if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"UNDER") {
109 QString msg =
"Isis cannot process images with a SamplingMode = \"UNDER\" (or NYQUIST)";
113 QString msg =
"Unknown SamplingMode [" + (QString) inst[
"SamplingMode"] +
"]";
119 QString stime = inst [
"NativeStartTime"][0];
120 QString intTime = stime.split(
".").first();
121 stime = stime.split(
".").last();
128 etStart +=
toDouble(stime) / 15959.0 - 2.;
131 QString etime = (QString) inst [
"NativeStopTime"];
132 intTime = etime.split(
".").first();
133 etime = etime.split(
".").last();
140 etStop +=
toDouble(stime) / 15959.0 + 2.;
165 if (channel ==
"VIS")
createCache(etStart, etStop, 64 * 64, tol);
166 if (channel ==
"IR")
createCache(etStart, etStop, 64 * 64, tol);
194 for (
double x = -m_pixelPitchX / 2.0; x <= m_pixelPitchX / 2.0; x += m_pixelPitchX / (npts-1)) {
195 offsets.append(QPointF(x, -m_pixelPitchY / 2.0));
198 for (
double y = -m_pixelPitchY / 2.0; y <= m_pixelPitchY / 2.0; y += m_pixelPitchY / (npts-1)) {
199 offsets.append(QPointF(m_pixelPitchX / 2.0, y));
202 for (
double x = m_pixelPitchX / 2.0; x >= -m_pixelPitchX / 2.0; x -= m_pixelPitchX / (npts-1)) {
203 offsets.append(QPointF(x, m_pixelPitchY / 2.0));
206 for (
double y = m_pixelPitchY / 2.0; y >= -m_pixelPitchY / 2.0; y -= m_pixelPitchY / (npts-1)) {
207 offsets.append(QPointF(-m_pixelPitchX / 2.0, y));