|
Isis 3 Programmer Reference
|
9 #include "OsirisRexOcamsCamera.h"
14 #include "CameraDetectorMap.h"
15 #include "OsirisRexDistortionMap.h"
16 #include "CameraFocalPlaneMap.h"
17 #include "CameraGroundMap.h"
18 #include "CameraSkyMap.h"
21 #include "NaifStatus.h"
45 if (frameCode == -64361) {
49 else if (frameCode == -64362) {
53 else if (frameCode == -64360) {
58 QString msg =
"Unable to construct OSIRIS-REx camera model. "
59 "Unrecognized NaifFrameCode [" +
toString(frameCode) +
"].";
66 QString ikCode =
toString(frameCode);
67 if (inst.
hasKeyword(
"PolyCamFocusPositionNaifId") && frameCode == -64360) {
68 if (QString::compare(
"NONE", inst[
"PolyCamFocusPositionNaifId"],
69 Qt::CaseInsensitive) != 0) {
70 ikCode = inst[
"PolyCamFocusPositionNaifId"][0];
74 QString focalLength =
"INS" + ikCode +
"_FOCAL_LENGTH";
78 QString pitch =
"INS" + ikCode +
"_PIXEL_SIZE";
83 QString clockCount = inst[
"SpacecraftClockStartCount"];
109 QString filterName = bandBin[
"FilterName"];
185 double exposureDuration) {
Distort/undistort focal plane coordinates for OSIRIS REx's cameras.
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
virtual double exposureDuration() const
Return the exposure duration for the pixel that the camera is set to.
This class models the behavior and attributes of the OSIRIS-REx Cameras: Mapping Camera,...
iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
virtual int CkFrameId() const
The frame ID for the spacecraft (or instrument) used by the Camera-matrix Kernel.
Convert between parent image coordinates and detector coordinates.
SpiceInt naifIkCode() const
This returns the NAIF IK code to use when reading from instrument kernels.
Parse and return pieces of a time string.
virtual void SetDistortion(int naifIkCode, QString filterName)
Load distortion coefficients and center-of-distortion for OCAMS.
QString m_instrumentNameLong
Full instrument name.
virtual iTime getClockTime(QString clockValue, int sclkCode=-1, bool clockTicks=false)
This converts the spacecraft clock ticks value (clockValue) to an iTime.
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Container for cube-like labels.
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.
Generic class for Framing Cameras.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Convert between undistorted focal plane and ground coordinates.
@ 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...
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
Contains multiple PvlContainers.
virtual int SpkReferenceId() const
The reference frame ID for the Spacecraft Kernel is 1, representing J2000.
virtual int CkReferenceId() const
The frame ID for the reference coordinate system used by the Camera-matrix Kernel.
IO Handler for Isis Cubes.
QString m_spacecraftNameLong
Full spacecraft name.
Namespace for the standard library.
void LoadCache()
This loads the spice cache big enough for this image.
QString m_instrumentNameShort
Shortened instrument name.
Convert between distorted focal plane and detector coordinates.
virtual std::pair< iTime, iTime > ShutterOpenCloseTimes(double time, double exposureDuration)
Returns the shutter open and close times.
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Convert between undistorted focal plane and ra/dec coordinates.
~OsirisRexOcamsCamera()
Destroys the MapCamera object.
SpiceDouble getDouble(const QString &key, int index=0)
This returns a value from the NAIF text pool.
QString m_spacecraftNameShort
Shortened spacecraft name.
void SetFocalLength()
Reads the focal length from the instrument kernel.
This is free and unencumbered software released into the public domain.
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....