75 QString channel = (QString) inst [
"Channel"];
80 if (channel ==
"VIS") {
84 if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"NORMAL") {
87 m_pixelPitchX = 0.024 * 3;
88 m_pixelPitchY = 0.024 * 3;
90 else if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"HI-RES") {
92 m_pixelPitchX = 0.024;
93 m_pixelPitchY = 0.024;
95 else if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"UNDER") {
96 QString msg =
"Isis cannot process images with a SamplingMode = \"UNDER\" (or NYQUIST)";
100 QString msg =
"Unknown SamplingMode [" + (QString) inst[
"SamplingMode"] +
"]";
104 else if (channel ==
"IR") {
109 if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"NORMAL") {
113 else if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"HI-RES") {
114 m_pixelPitchX = 0.103;
117 else if (QString((QString)inst[
"SamplingMode"]).toUpper() ==
"UNDER") {
118 QString msg =
"Isis cannot process images with a SamplingMode = \"UNDER\" (or NYQUIST)";
122 QString msg =
"Unknown SamplingMode [" + (QString) inst[
"SamplingMode"] +
"]";
128 QString stime = inst [
"NativeStartTime"][0];
129 QString intTime = stime.split(
".").first();
130 stime = stime.split(
".").last();
137 etStart +=
toDouble(stime) / 15959.0 - 2.;
140 QString etime = (QString) inst [
"NativeStopTime"];
141 intTime = etime.split(
".").first();
142 etime = etime.split(
".").last();
149 etStop +=
toDouble(stime) / 15959.0 + 2.;
193 for (
double x = -m_pixelPitchX / 2.0; x <= m_pixelPitchX / 2.0; x += m_pixelPitchX / (npts-1)) {
194 offsets.append(QPointF(x, -m_pixelPitchY / 2.0));
197 for (
double y = -m_pixelPitchY / 2.0; y <= m_pixelPitchY / 2.0; y += m_pixelPitchY / (npts-1)) {
198 offsets.append(QPointF(m_pixelPitchX / 2.0, y));
201 for (
double x = m_pixelPitchX / 2.0; x >= -m_pixelPitchX / 2.0; x -= m_pixelPitchX / (npts-1)) {
202 offsets.append(QPointF(x, m_pixelPitchY / 2.0));
205 for (
double y = m_pixelPitchY / 2.0; y >= -m_pixelPitchY / 2.0; y -= m_pixelPitchY / (npts-1)) {
206 offsets.append(QPointF(-m_pixelPitchX / 2.0, y));
void SetFocalLength()
Reads the focal length from the instrument kernel.
virtual QList< QPointF > PixelIfovOffsets()
Returns the pixel ifov offsets from center of pixel.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Isis::Camera * VimsCameraPlugin(Isis::Cube &cube)
This is the function that is called in order to instantiate a VimsCamera object.
QString m_instrumentNameLong
Full instrument name.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
Namespace for the standard library.
Convert between undistorted focal plane and ground coordinates.
double toDouble(const QString &string)
Global function to convert from a string to a double.
This error is for when a programmer made an API call that was illegal.
CameraSkyMap * SkyMap()
Returns a pointer to the CameraSkyMap object.
bool SetImage(const double sample, const double line)
Sets the sample/line values of the image to get the lat/lon values.
Convert between parent image coordinates and detector coordinates.
Convert between distorted focal plane and detector coordinates.
QString m_instrumentNameShort
Shortened instrument name.
CameraGroundMap * GroundMap()
Returns a pointer to the CameraGroundMap object.
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.
iTime getClockTime(QString clockValue, int sclkCode=-1, bool clockTicks=false)
This converts the spacecraft clock ticks value (clockValue) to an iTime.
Convert between undistorted focal plane and ground coordinates.
Distort/undistort focal plane coordinates.
Container for cube-like labels.
void LoadCache()
This loads the spice cache big enough for this image.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
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.
QString m_spacecraftNameShort
Shortened spacecraft name.
void IgnoreProjection(bool ignore)
Set whether or not the camera should ignore the Projection.
Cassini Vims camera model.
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
IO Handler for Isis Cubes.