9#include "TgoCassisCamera.h"
17#include "CameraDetectorMap.h"
18#include "CameraFocalPlaneMap.h"
19#include "CameraGroundMap.h"
20#include "CameraSkyMap.h"
21#include "EndianSwapper.h"
22#include "IException.h"
25#include "NaifStatus.h"
26#include "TgoCassisDistortionMap.h"
49 QString cassis =
toString(cassisCode);
63 QString stime = inst[
"SpacecraftClockStartCount"];
64 QString startT = inst[
"StartTime"];
72 int sumMode =
toInt(inst[
"SummingMode"][0]);
73 int summing = sumMode * 2;
78 detMap->SetDetectorSampleSumming(summing);
79 detMap->SetDetectorLineSumming(summing);
86 double bsSample =
getDouble(
"INS" + cassis +
"_BORESIGHT_SAMPLE");
87 double bsLine =
getDouble(
"INS" + cassis +
"_BORESIGHT_LINE");
88 focalMap->SetDetectorOrigin(bsSample, bsLine);
97 QString msg =
"Unable to Create TgoCassisDistortionMap";
106 double p_exposureDur =
toDouble(inst[
"ExposureDuration"]);
107 iTime p_etStart = et + ( p_exposureDur / 2.0);
143 double exposureDuration) {
Convert between parent image coordinates and detector coordinates.
Convert between distorted focal plane and detector coordinates.
Convert between undistorted focal plane and ground coordinates.
QString m_spacecraftNameLong
Full spacecraft name.
virtual double exposureDuration() const
Return the exposure duration for the pixel that the camera is set to.
void SetFocalLength()
Reads the focal length from the instrument kernel.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
void LoadCache()
This loads the spice cache big enough for this image.
QString m_instrumentNameShort
Shortened instrument name.
QString m_spacecraftNameShort
Shortened spacecraft name.
void SetDistortionMap(CameraDistortionMap *map, bool deleteExisting=true)
Sets the Distortion Map.
QString m_instrumentNameLong
Full instrument name.
Convert between undistorted focal plane and ra/dec coordinates.
IO Handler for Isis Cubes.
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Generic class for Framing Cameras.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)=0
Returns the shutter open and close times.
@ Unknown
A type of error that cannot be classified as any of the other error types.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Contains multiple PvlContainers.
Container for cube-like labels.
@ Traverse
Search child objects.
void setTime(const iTime &time)
By setting the time you essential set the position of the spacecraft and body as indicated in the cla...
virtual iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions.
virtual SpiceRotation * instrumentRotation() const
Accessor method for the instrument rotation.
SpiceInt naifIkCode() const
This returns the NAIF IK code to use when reading from instrument kernels.
SpiceDouble getDouble(const QString &key, int index=0)
This returns a value from the NAIF text pool.
virtual int CkReferenceId() const
CK Reference ID - J2000.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)
Returns the shutter open and close times.
virtual int CkFrameId() const
CK frame ID - TGO CaSSIS instrument code (TGO_CASSIS_FSA)
virtual int SpkTargetId() const
SPK Target Body ID - TGO spacecraft -143.
virtual int SpkReferenceId() const
SPK Reference ID - J2000.
TgoCassisCamera(Cube &cube)
Initialize the CaSSIS camera model.
~TgoCassisCamera()
Destroys the TgoCassisCamera object.
Distort/undistort focal plane coordinates.
Parse and return pieces of a time string.
This is free and unencumbered software released into the public domain.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
int toInt(const QString &string)
Global function to convert from a string to an integer.
double toDouble(const QString &string)
Global function to convert from a string to a double.
Namespace for the standard library.