9#include "HiriseCamera.h"
16#include "CameraDistortionMap.h"
17#include "CameraFocalPlaneMap.h"
19#include "LineScanCameraDetectorMap.h"
20#include "LineScanCameraGroundMap.h"
21#include "LineScanCameraSkyMap.h"
22#include "NaifStatus.h"
49 int tdiMode = inst[
"Tdi"];
50 double binMode = inst[
"Summing"];
51 int chan = inst[
"ChannelNumber"];
52 int cpmm = inst[
"CpmmNumber"];
53 double deltaLineTimerCount = inst[
"DeltaLineTimerCount"];
54 QString stime = inst[
"SpacecraftClockStartCount"];
57 static int cpmm2ccd[] = {0, 1, 2, 3, 12, 4, 10, 11, 5, 13, 6, 7, 8, 9};
58 int ccd = cpmm2ccd[cpmm];
62 double unBinnedRate = (74.0 + (deltaLineTimerCount / 16.0)) / 1000000.0;
63 double lineRate = unBinnedRate * binMode;
75 et -= unBinnedRate * (((double) tdiMode / 2.0) - 0.5);
79 et += unBinnedRate * (((double) binMode / 2.0) - 0.5);
89 double ccdLine_c = -64.0 + ((double) tdiMode / 2.0);
96 detectorMap->SetDetectorSampleSumming(binMode);
97 detectorMap->SetDetectorLineSumming(binMode);
99 detectorMap->SetStartingDetectorSample(1025.0);
107 focalMap->SetDetectorOrigin(1024.5, 0.0);
108 focalMap->SetDetectorOffset(0.0, ccdLine_c);
Distort/undistort focal plane coordinates.
Convert between distorted focal plane and detector coordinates.
QString m_spacecraftNameLong
Full spacecraft name.
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.
QString m_instrumentNameLong
Full instrument name.
IO Handler for Isis Cubes.
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
HiriseCamera(Cube &cube)
Creates a Hirise Camera Model.
~HiriseCamera()
Destroys the HiriseCamera object.
Convert between parent image coordinates and detector coordinates.
Convert between undistorted focal plane and ground coordinates.
Generic class for Line Scan Cameras.
Convert between undistorted focal plane and ra/dec coordinates.
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.
virtual iTime getClockTime(QString clockValue, int sclkCode=-1, bool clockTicks=false)
This converts the spacecraft clock ticks value (clockValue) to an iTime.
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.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.