67 m_exposure = inst[
"ExposureDuration"];
68 QString stime = inst[
"SpacecraftClockStartCount"];
71 double offset = 0.125;
74 et2utc_c(m_etStart,
"ISOC", 3, 30, utc);
82 PvlKeyword &origBand = bandBin[
"OriginalBand"];
84 for(
int i = 0; i < origBand.
size(); i++) {
85 m_originalBand.push_back(
toInt(origBand[i]));
86 m_utcTime.push_back(utcTime[i]);
101 QString naifXKey =
"INS-98900_DISTORTION_COEF_X";
102 QString naifYKey =
"INS-98900_DISTORTION_COEF_Y";
103 QString naifppKey =
"INS-98900_PP_OFFSET";
104 vector<double> distCoefX;
105 vector<double> distCoefY;
107 for (
int i=0; i < 20; i++) {
108 distCoefX.push_back(
getDouble(naifXKey,i));
109 distCoefY.push_back(
getDouble(naifYKey,i));
131 if(vband > (
int) m_originalBand.size()) {
132 QString msg = QObject::tr(
"Band number out of array bounds in NewHorizonsMvicFrameCamera::SetBand legal " 133 "bands are [1-%1], input was [%2]").
134 arg(m_originalBand.size()).arg(vband);
142 et2utc_c(et,
"ISOC", 3, 30, utc);
void SetFocalLength()
Reads the focal length from the instrument kernel.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Parse and return pieces of a time string.
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.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
Namespace for the standard library.
Isis::Camera * NewHorizonsMvicFrameCameraPlugin(Isis::Cube &cube)
This is the function that is called in order to instantiate a NewHorizonsMvicFrameCamera object...
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
void SetBand(const int vband)
Sets the band in the camera model.
This error is for when a programmer made an API call that was illegal.
void SetDetectorLineSumming(const double summing)
Set line summing mode.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)=0
Returns the shutter open and close times.
Convert between parent image coordinates and detector coordinates.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)
The camera model is band dependent, so this method returns false.
int size() const
Returns the number of values stored in this keyword.
Convert between undistorted focal plane and ground coordinates.
Convert between distorted focal plane and detector coordinates.
QString m_instrumentNameShort
Shortened instrument name.
Distort/undistort focal plane coordinates for New Horizons/MVIC frame sensor.
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 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.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
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 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.
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.
virtual double exposureDuration() const
Return the exposure duration for the pixel that the camera is set to.
Generic class for Framing Cameras.
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.
SpiceDouble getDouble(const QString &key, int index=0)
This returns a value from the NAIF text pool.
This is the camera model for the New Horizons MVIC Frame mode Camera.
IO Handler for Isis Cubes.
iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions...