56 m_isBandDependent(true) {
68 QString sensor = (QString) inst [
"SensorId"];
78 double etStart = getEtTime((QString) inst [
"SpacecraftClockStartCount"]);
79 double etStop = getEtTime((QString) inst [
"SpacecraftClockStopCount"]);
86 int exposure = (int) inst[
"ExposureParameter"];
97 int reg = ((480 - exposure) * 83333) / 480;
101 int start_clocks = reg + (3 * 166);
102 if (start_clocks % 166) start_clocks += 166 - (start_clocks % 166);
117 double frameStartTime(etStart);
126 iTime myLineStartTime(etStart + ((25.0 - 1.0) * frame_time));
129 (void) sce2s_c(
naifSclkCode(), myLineStartTime.
Et(),
sizeof(sclk), sclk);
143 double stime(obsStartTime);
144 double scanTime(stop_time-start_time);
151 double endTime(stime-frame_time+scanTime);
155 int binning = inst[
"PixelAveragingWidth"];
164 double bLine =
getDouble(
"INS"+ikCode+
"_BORESIGHT_LINE");
165 double bSample =
getDouble(
"INS"+ikCode+
"_BORESIGHT_SAMPLE");
206 return (m_isBandDependent);
210 double CrismCamera::getEtTime(
const QString &sclk) {
bool IsBandIndependent()
This is a band-dependant instrument.
void SetFocalLength()
Reads the focal length from the instrument kernel.
void SetBand(const int physicalBand)
Virtual method that sets the band number.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
void SetDetectorOffset(const double sampleOffset, const double lineOffset)
Set the detector offset.
Parse and return pieces of a time string.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
QString m_instrumentNameLong
Full instrument name.
void SetDetectorSampleSumming(const double summing)
Set sample summing mode.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
Namespace for the standard library.
Generic class for Line Scan Cameras.
SpiceInt naifSclkCode() const
This returns the NAIF SCLK code to use when reading from instrument kernels.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
void createCache(iTime startTime, iTime endTime, const int size, double tol)
This method creates an internal cache of spacecraft and sun positions over a specified time range...
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
void SetDetectorLineSumming(const double summing)
Set line summing mode.
int ParentLines() const
Returns the number of lines in the parent alphacube.
Convert between undistorted focal plane and ground coordinates.
Container class for storing timing information for a section of an image.
Convert between distorted focal plane and detector coordinates.
QString m_instrumentNameShort
Shortened instrument name.
Contains multiple PvlContainers.
SpiceInt naifIkCode() const
This returns the NAIF IK code to use when reading from instrument kernels.
double FocalLength() const
Returns the focal length.
iTime getClockTime(QString clockValue, int sclkCode=-1, bool clockTicks=false)
This converts the spacecraft clock ticks value (clockValue) to an iTime.
Distort/undistort focal plane coordinates.
double PixelPitch() const
Returns the pixel pitch.
void setTime(const iTime &time)
By setting the time you essential set the position of the spacecraft and body as indicated in the cla...
Convert between parent image coordinates and detector coordinates.
Container for cube-like labels.
double SpacecraftAltitude()
Returns the distance from the spacecraft to the subspacecraft point in km.
Convert between undistorted focal plane and ra/dec coordinates.
void LoadCache()
This loads the spice cache big enough for this image.
QString m_spacecraftNameLong
Full spacecraft name.
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Isis::Camera * CrismCameraPlugin(Isis::Cube &cube)
This is the function that is called in order to instantiate a CrismCamera object. ...
LineScanCameraDetectorMap * DetectorMap()
Returns a pointer to the LineScanCameraDetectorMap object.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Namespace for ISIS/Bullet specific routines.
QString m_spacecraftNameShort
Shortened spacecraft name.
Convert between parent image coordinates and detector coordinates.
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
SpiceDouble getDouble(const QString &key, int index=0)
This returns a value from the NAIF text pool.
IO Handler for Isis Cubes.