14#include "CameraDetectorMap.h"
15#include "CameraFocalPlaneMap.h"
16#include "CameraGroundMap.h"
17#include "CameraSkyMap.h"
19#include "JunoDistortionMap.h"
20#include "NaifStatus.h"
54 int sumMode = (int) inst[
"SummingMode"];
55 int summing = sumMode;
60 detMap->SetDetectorSampleSumming(summing);
61 detMap->SetDetectorLineSumming(summing);
71 double bsSample =
getDouble(
"INS" + juno +
"_BORESIGHT_SAMPLE");
72 double bsLine =
getDouble(
"INS" + juno +
"_BORESIGHT_LINE");
73 focalMap->SetDetectorOrigin(bsSample, bsLine);
77 QString filterIkCode = bandBin.
findKeyword(
"NaifIkCode")[0];
78 detMap->SetStartingDetectorLine(
getDouble(
"INS" + filterIkCode +
"_FILTER_OFFSET"));
82 distortionMap->SetDistortion(
CkFrameId());
89 QString startClockCount = inst[
"SpacecraftClockStartCount"];
90 double observationStartEt =
getClockTime(startClockCount).Et();
91 double frameNumber = (double) inst[
"FrameNumber"];
92 double interFrameDelay = (double) inst[
"InterFrameDelay"];
93 double exposureDur = ((double) inst[
"ExposureDuration"]) / 1000.0;
96 double startTimeBias =
getDouble(
"INS" + juno +
"_START_TIME_BIAS");
97 double interFrameDelayBias =
getDouble(
"INS" + juno +
"_INTERFRAME_DELTA");
100 double frameStartEt = observationStartEt + startTimeBias + (frameNumber - 1)
101 * (interFrameDelay + interFrameDelayBias);
103 setTime(frameStartEt + exposureDur / 2.0);
135 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.
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.
Juno's JNC (JunoCam) camera model.
virtual int CkFrameId() const
Retrieves the CK frame ID for the JunoCam instrument.
virtual int CkReferenceId() const
Retrieves the J2000 CK Reference ID for the JunoCam instrument.
virtual int SpkReferenceId() const
Retrieves the J2000 SPK Reference ID for the JunoCam instrument.
~JunoCamera()
Destroys the JunoCamera object.
JunoCamera(Cube &cube)
Initialize the Juno camera model.
virtual int SpkTargetId() const
Retrieves the SPK Target Body ID for the JunoCam instrument.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)
Returns the shutter open and close times.
Distort/undistort focal plane coordinates for Juno's JunoCam camera.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
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 getClockTime(QString clockValue, int sclkCode=-1, bool clockTicks=false)
This converts the spacecraft clock ticks value (clockValue) to an iTime.
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.
This is free and unencumbered software released into the public domain.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Namespace for the standard library.