53 QString stime = inst[
"SpacecraftClockCount"];
56 double offset = inst[
"SpacecraftClockOffset"];
64 for(
int i = 0; i < orgBand.
size(); i++) {
65 p_originalBand.push_back(
toInt(orgBand[i]));
75 sumMode = inst[
"SpatialSumming"];
77 p_lineRate = 33.2871 / 1000.0 * sumMode;
82 p_tdiMode = (QString) inst[
"TimeDelayIntegration"];
131 if((band < 1) || (band > 10)) {
132 string msg =
"Invalid Reference Band [" +
IString(band) +
"]";
137 if(vband > (
int) p_originalBand.size()) {
138 string msg =
"Band number out of array bounds in ThemisIRCamera";
141 band = p_originalBand[vband-1];
152 if(p_tdiMode ==
"ENABLED") {
153 double bandDetector_TDI[] = {8.5, 24.5, 50.5, 76.5, 102.5,
154 128.5, 154.5, 180.5, 205.5, 231.5
156 detectorLine = bandDetector_TDI[band-1];
159 int bandDetector_noTDI[] = {9, 24, 52, 77, 102, 129, 155, 181, 206, 232};
160 detectorLine = (double) bandDetector_noTDI[band-1];
167 p_bandTimeOffset = (detectorLine - 0.5) * p_lineRate;
173 detectorMap->
SetStartTime(p_etStart + p_bandTimeOffset);
179 double alongtrackOffset = 120.5 - detectorLine;
183 double empiricalOffset[] = { -0.076, -0.098, -0.089, -0.022, 0.0,
184 -0.020, -0.005, -0.069, 0.025, 0.0
186 alongtrackOffset += empiricalOffset[band-1];
191 double sampleBoresight = 160.5;
192 double empiricalBoresightOffset[] = { 0.021, 0.027, 0.005, 0.005, 0.0,
193 -0.007, -0.012, -0.039, -0.045, 0.0
195 sampleBoresight -= empiricalBoresightOffset[band-1];
201 distMap->SetBand(band);