68 if(inst[
"InstrumentId"][0] !=
"THEMIS_VIS") {
69 QString msg =
"Unable to create Themis VIS camera model from an image with InstrumentId [" 70 + inst[
"InstrumentId"][0] +
"].";
77 int sumMode = inst[
"SpatialSumming"];
81 QString stime = inst[
"SpacecraftClockCount"];
84 double offset = inst[
"SpacecraftClockOffset"];
91 PvlKeyword &filterNumbers = bandBin[
"FilterNumber"];
92 for (
int i = 0; i < filterNumbers.
size(); i++) {
118 bool evenFramelets = (inst[
"Framelets"][0] ==
"Even");
170 int wavelengthToTimeBand[] = { 2, 5, 3, 4, 1 };
189 int visBandFirstRow[] = { 4, 203, 404, 612, 814 };
void SetBandFirstDetectorLine(int firstLine)
Change the starting line in the detector based on band.
void SetFocalLength()
Reads the focal length from the instrument kernel.
bool IsBandIndependent()
The camera model is band dependent (i.e.
void SetFrameletOrderReversed(bool frameletOrderReversed, int nframelets)
Changes the direction of the framelets.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
int p_nframes
Number of frames in whole image.
QString m_instrumentNameLong
Full instrument name.
void SetDetectorSampleSumming(const double summing)
Set sample summing mode.
int toInt(const QString &string)
Global function to convert from a string to an integer.
double p_exposureDur
Exposure Duration value from labels.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
~ThemisVisCamera()
Destroys the Themis Vis Camera object.
Namespace for the standard library.
QList< int > p_filterNumber
List of filter number values from the Instrument BandBin group that correspond to each band in the cu...
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Convert between undistorted focal plane and ground coordinates.
virtual int CkFrameId() const
CK frame ID - - Instrument Code from spacit run on CK.
virtual int CkReferenceId() const
CK Reference ID - MARSIAU.
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
PushFrameCameraDetectorMap * DetectorMap()
Returns a pointer to the PushFrameCameraDetectorMap object.
void SetDetectorLineSumming(const double summing)
Set line summing mode.
int ParentLines() const
Returns the number of lines in the parent alphacube.
Distort/undistort focal plane coordinates.
bool HasReferenceBand() const
Checks to see if the Camera object has a reference band.
Generic class for Push Frame Cameras.
int size() const
Returns the number of values stored in this keyword.
Convert between distorted focal plane and detector coordinates.
double p_bandTimeOffset
Offset iTime for Band.
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.
#define _FILEINFO_
Macro for the filename and line number.
A type of error that could only have occurred due to a mistake on the user's part (e...
A single keyword-value pair.
iTime getClockTime(QString clockValue, int sclkCode=-1, bool clockTicks=false)
This converts the spacecraft clock ticks value (clockValue) to an iTime.
Convert between parent image coordinates and detector coordinates.
Isis::Camera * ThemisVisCameraPlugin(Isis::Cube &cube)
This is the function that is called in order to instantiate a ThemisVisCamera object.
double p_etStart
Ephemeris Start iTime.
double p_interframeDelay
Interframe Delay value from labels.
void setTime(const iTime &time)
By setting the time you essential set the position of the spacecraft and body as indicated in the cla...
Container for cube-like labels.
void SetBand(const int band)
Sets the band in the camera model.
void LoadCache()
This loads the spice cache big enough for this image.
virtual int SpkReferenceId() const
SPK Reference ID - J2000.
double BandEphemerisTimeOffset(int vband)
Calculates time offset for the given cube band number.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
QString m_spacecraftNameLong
Full spacecraft name.
void SetStartTime(const double etStart)
Reset the starting ephemeris time.
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Namespace for ISIS/Bullet specific routines.
Convert between undistorted focal plane and ra/dec coordinates.
QString m_spacecraftNameShort
Shortened spacecraft name.
int ReferenceBand() const
Returns the reference band.
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
virtual void SetBand(const int band)
Virtual method that sets the band number.
IO Handler for Isis Cubes.