File failed to load: https://isis.astrogeology.usgs.gov/9.0.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
ClipperWacFcCamera.cpp
1
6
7/* SPDX-License-Identifier: CC0-1.0 */
8
9#include "ClipperWacFcCamera.h"
10
11#include <QString>
12
13#include "CameraDetectorMap.h"
14#include "CameraDistortionMap.h"
15#include "CameraFocalPlaneMap.h"
16#include "CameraGroundMap.h"
17#include "CameraSkyMap.h"
18#include "IString.h"
19#include "iTime.h"
20#include "NaifStatus.h"
21
22using namespace std;
23
24namespace Isis {
25
36 m_spacecraftNameLong = "Europa Clipper";
37 m_spacecraftNameShort = "Clipper";
38
39 m_instrumentNameLong = "Europa Imaging System Framing Wide Angle Camera";
40 m_instrumentNameShort = "EIS-FWAC";
41
43
46
47 // Set up detector map, focal plane map, and distortion map
48 new CameraDetectorMap(this);
50 CameraFocalPlaneMap *focalMap = new CameraFocalPlaneMap(this, naifIkCode());
51 focalMap->SetDetectorOrigin(2048.5, 1024.5);
52 new CameraDistortionMap(this);
53 CameraDistortionMap *distMap = new CameraDistortionMap(this);
54 distMap->SetDistortion(naifIkCode());
55
56 // Setup the ground and sky map
57 new CameraGroundMap(this);
58 new CameraSkyMap(this);
59
60 Pvl &lab = *cube.label();
61 PvlGroup &inst = lab.findGroup("Instrument", Pvl::Traverse);
62 QString startTime = inst["StartTime"];
63 iTime etStart(startTime);
64
65 // double exposureDuration = (double)inst["ExposureDuration"] / 1000.0;
66 // pair<iTime, iTime> startStop = ShutterOpenCloseTimes(et, exposureDuration);
67
68 setTime(etStart.Et()); // Set the time explicitly for now to prevent segfault
69
70 // Internalize all the NAIF SPICE information into memory.
71 LoadCache();
73 }
74
93}
94
104extern "C" Isis::Camera *ClipperWacFcCameraPlugin(Isis::Cube &cube) {
105 return new Isis::ClipperWacFcCamera(cube);
106}
Convert between parent image coordinates and detector coordinates.
Distort/undistort focal plane coordinates.
virtual void SetDistortion(int naifIkCode)
Load distortion coefficients.
Convert between distorted focal plane and detector coordinates.
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
Convert between undistorted focal plane and ground coordinates.
QString m_spacecraftNameLong
Full spacecraft name.
Definition Camera.h:499
virtual double exposureDuration() const
Return the exposure duration for the pixel that the camera is set to.
Definition Camera.cpp:3093
void SetFocalLength()
Reads the focal length from the instrument kernel.
Definition Camera.cpp:1422
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
Definition Camera.cpp:1429
void LoadCache()
This loads the spice cache big enough for this image.
Definition Camera.cpp:2450
QString m_instrumentNameShort
Shortened instrument name.
Definition Camera.h:498
QString m_spacecraftNameShort
Shortened spacecraft name.
Definition Camera.h:500
QString m_instrumentNameLong
Full instrument name.
Definition Camera.h:497
Convert between undistorted focal plane and ra/dec coordinates.
This is the camera model for the Europa Clipper WAC Framing Camera.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)
Reimplemented from FrameCamera.
ClipperWacFcCamera(Cube &cube)
Create a ClipperWacFcCamera.
IO Handler for Isis Cubes.
Definition Cube.h:168
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition Cube.cpp:1734
FramingCamera(Cube &cube)
Constructs the FramingCamera object.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)=0
Returns the shutter open and close times.
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Contains multiple PvlContainers.
Definition PvlGroup.h:41
Container for cube-like labels.
Definition Pvl.h:119
@ Traverse
Search child objects.
Definition PvlObject.h:158
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition PvlObject.h:129
void setTime(const iTime &time)
By setting the time you essential set the position of the spacecraft and body as indicated in the cla...
Definition Sensor.cpp:99
virtual iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions.
Definition Spice.cpp:891
SpiceInt naifIkCode() const
This returns the NAIF IK code to use when reading from instrument kernels.
Definition Spice.cpp:975
Parse and return pieces of a time string.
Definition iTime.h:65
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
Definition iTime.h:126
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
Namespace for the standard library.