39 HiCalData() : _calimage(), _calbuffer(), _caldark(), _buffer(),
40 _dark(), _binning(0), _tdi(0), _cpmm(0), _channelNo(0),
41 _firstReverseLine(0), _lastReverseLine(0),
42 _firstMaskLine(0), _lastMaskLine(0),
43 _firstRampLine(0), _lastRampLine(0) { }
51 void load(
Cube &cube) {
55 _calimage =
HiBlob(cube,
"HiRISE Calibration Image",
"Calibration").
buffer();
56 _calbuffer =
HiBlob(cube,
"HiRISE Calibration Ancillary",
"BufferPixels").
buffer();
57 _caldark =
HiBlob(cube,
"HiRISE Calibration Ancillary",
"DarkPixels").
buffer();
58 _buffer =
HiBlob(cube,
"HiRISE Ancillary",
"BufferPixels").
buffer();
59 _dark =
HiBlob(cube,
"HiRISE Ancillary",
"DarkPixels").
buffer();
64 _binning = instrument[
"Summing"];
65 _tdi = instrument[
"Tdi"];
66 _cpmm = instrument[
"CpmmNumber"];
67 _channelNo = instrument[
"ChannelNumber"];
70 _firstReverseLine = 0;
71 _lastReverseLine = 19;
75 _lastMaskLine = _firstMaskLine + 20 / _binning - 1;
76 _firstRampLine = _lastMaskLine + 1;
77 _lastRampLine = _calimage.dim1() - 1;
82 return (
cropLines(_calimage, _firstReverseLine, _lastReverseLine));
85 return (
cropLines(_calimage, _firstMaskLine, _lastMaskLine));
88 return (
cropLines(_calimage, _firstRampLine, _lastRampLine));
92 return (_dark.copy());
95 return (_buffer.copy());
102 cropLines(_calbuffer, _firstReverseLine, _lastReverseLine),
103 cropLines(_calimage, _firstReverseLine, _lastReverseLine)),
104 cropLines(_caldark, _firstReverseLine, _lastReverseLine)
111 appendSamples(
cropLines(_calbuffer, _firstMaskLine, _lastMaskLine),
112 cropLines(_calimage, _firstMaskLine, _lastMaskLine)),
113 cropLines(_caldark, _firstMaskLine, _lastMaskLine)
120 appendSamples(
cropLines(_calbuffer, _firstRampLine, _lastRampLine),
121 cropLines(_calimage, _firstRampLine, _lastRampLine)),
122 cropLines(_caldark, _firstRampLine, _lastRampLine)
128 return (appendLines(_caldark, _dark));
131 return (appendLines(_calbuffer, _buffer));
147 int _firstReverseLine;
148 int _lastReverseLine;