Isis Developer Reference
DawnVirCamera.h
Go to the documentation of this file.
1 #ifndef DawnVirCamera_h
2 #define DawnVirCamera_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "LineScanCamera.h"
13 
14 #include <QString>
15 
16 #include <tnt/tnt_array2d.h>
17 
19 
20 namespace Isis {
76  class DawnVirCamera : public LineScanCamera {
77  public:
78  typedef TNT::Array2D<SpiceDouble> SMatrix;
79 
80  DawnVirCamera(Cube &cube);
81 
83 
85  virtual int CkFrameId() const;
86 
88  virtual int CkReferenceId() const;
89 
91  virtual int SpkReferenceId() const;
92 
93  private:
94  void readHouseKeeping(const QString &filename, double lineRate);
95  QString scrub(const QString &text) const;
96  double exposureTime() const;
97  double scanLineTime() const;
98  int pixelSumming() const;
99 
100  int hkLineCount() const;
101  double lineStartTime(const double midExpTime) const;
102  double lineEndTime(const double midExpTime) const;
103 
104  double startTime() const;
105  double endTime() const;
106 
107  Table getPointingTable(const QString &channelId,
108  const int zeroFrame);
109  SMatrix getStateRotation(const QString &frame1,
110  const QString &frame2,
111  const double &et) const;
112 
113  bool hasArticulationKernel(Pvl &label) const;
114 
121  struct ScanMirrorInfo {
122  int m_lineNum;
123  double m_scanLineEt;
124  double m_mirrorCos;
125  double m_mirrorSin;
126  double m_opticalAngle;
127  bool m_isDarkCurrent;
128  };
129 
130 
131  bool m_is1BCalibrated;
132  char m_slitMode;
133  double m_exposureTime;
134  int m_summing;
135  double m_scanRate;
136 
137  std::vector<LineRateChange> m_lineRates;
138  std::vector<ScanMirrorInfo> m_mirrorData;
139 
140  };
141 };
142 
143 #endif
Isis::LineScanCameraSkyMap
Convert between undistorted focal plane and ra/dec coordinates.
Definition: LineScanCameraSkyMap.h:34
Isis::CameraFocalPlaneMap::SetDetectorOrigin
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
Definition: CameraFocalPlaneMap.cpp:293
Isis::PvlObject::findGroup
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
LineScanCameraGroundMap.h
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::Spice::naifIkCode
SpiceInt naifIkCode() const
This returns the NAIF IK code to use when reading from instrument kernels.
Definition: Spice.cpp:968
Isis::iTime
Parse and return pieces of a time string.
Definition: iTime.h:65
Isis::DawnVirCamera::~DawnVirCamera
~DawnVirCamera()
Destructor.
Definition: DawnVirCamera.cpp:159
LineScanCameraSkyMap.h
Isis::Camera::m_instrumentNameLong
QString m_instrumentNameLong
Full instrument name.
Definition: Camera.h:496
Isis::Spice::getClockTime
virtual iTime getClockTime(QString clockValue, int sclkCode=-1, bool clockTicks=false)
This converts the spacecraft clock ticks value (clockValue) to an iTime.
Definition: Spice.cpp:1053
Isis::DawnVirCamera::SMatrix
TNT::Array2D< SpiceDouble > SMatrix
2-D buffer
Definition: DawnVirCamera.h:78
Isis::DawnVirCamera::SpkReferenceId
virtual int SpkReferenceId() const
SPK Reference ID - J2000.
Definition: DawnVirCamera.cpp:187
Isis::CameraDetectorMap::SetDetectorSampleSumming
void SetDetectorSampleSumming(const double summing)
Set sample summing mode.
Definition: CameraDetectorMap.h:108
Isis::TableRecord::Fields
int Fields() const
Returns the number of fields that are currently in the record.
Definition: TableRecord.cpp:78
NaifStatus.h
Isis::Spice::getInteger
SpiceInt getInteger(const QString &key, int index=0)
This returns a value from the NAIF text pool.
Definition: Spice.cpp:1025
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::VariableLineScanCameraDetectorMap
Convert between parent image coordinates and detector coordinates.
Definition: VariableLineScanCameraDetectorMap.h:49
NumericalApproximation.h
Isis::NaifStatus::CheckErrors
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Definition: NaifStatus.cpp:28
Isis::Camera
Definition: Camera.h:236
Isis::TableRecord
Definition: TableRecord.h:38
DawnVirCameraPlugin
Isis::Camera * DawnVirCameraPlugin(Isis::Cube &cube)
Instantiate a new DawnVirCamera model for the given label content.
Definition: DawnVirCamera.cpp:596
QStringList
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::SpiceRotation::MinimizeCache
void MinimizeCache(DownsizeStatus status)
Set the downsize status to minimize cache.
Definition: SpiceRotation.cpp:336
Isis::SpiceRotation::Cache
Table Cache(const QString &tableName)
Return a table with J2000 to reference rotations.
Definition: SpiceRotation.cpp:868
Isis::DawnVirCamera::CkReferenceId
virtual int CkReferenceId() const
CK Reference ID - J2000.
Definition: DawnVirCamera.cpp:177
IString.h
Isis::DawnVirCamera::DawnVirCamera
DawnVirCamera(Cube &cube)
Creates a camera for a Dawn VIR cube.
Definition: DawnVirCamera.cpp:45
Isis::Spice::instrumentRotation
virtual SpiceRotation * instrumentRotation() const
Accessor method for the instrument rotation.
Definition: Spice.cpp:1622
Isis::NumericalApproximation::NearestEndpoint
@ NearestEndpoint
Evaluate() returns the y-value of the nearest endpoint if a is outside of the domain.
Definition: NumericalApproximation.h:817
Isis::PvlObject::Traverse
@ Traverse
Search child objects.
Definition: PvlObject.h:158
Isis::SpiceRotation::LoadCache
void LoadCache(double startTime, double endTime, int size)
Cache J2000 rotation quaternion over a time range.
Definition: SpiceRotation.cpp:359
Isis::Sensor::setTime
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:97
Isis::iTime::Et
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
Definition: iTime.h:126
Isis::Camera::SetPixelPitch
void SetPixelPitch()
Reads the Pixel Pitch from the instrument kernel.
Definition: Camera.cpp:1418
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
VariableLineScanCameraDetectorMap.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::SpiceRotation::No
@ No
Do not downsize the cache.
Definition: SpiceRotation.h:270
Isis::DawnVirCamera
Camera model for both Danw VIR VIS and IR instruments.
Definition: DawnVirCamera.h:76
Isis::TableField::Double
@ Double
The values in the field are 8 byte doubles.
Definition: TableField.h:54
Isis::Table
Class for storing Table blobs information.
Definition: Table.h:61
Isis::LineScanCamera
Generic class for Line Scan Cameras.
Definition: LineScanCamera.h:36
LineScanCamera.h
Isis::PvlContainer::fileName
QString fileName() const
Returns the filename used to initialise the Pvl object.
Definition: PvlContainer.h:232
Isis::LineScanCameraGroundMap
Convert between undistorted focal plane and ground coordinates.
Definition: LineScanCameraGroundMap.h:49
CameraFocalPlaneMap.h
Isis::CameraDistortionMap
Distort/undistort focal plane coordinates.
Definition: CameraDistortionMap.h:41
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::Camera::m_spacecraftNameLong
QString m_spacecraftNameLong
Full spacecraft name.
Definition: Camera.h:498
Isis::DawnVirCamera::CkFrameId
virtual int CkFrameId() const
CK Frame ID - Instrument Code from spacit run on CK.
Definition: DawnVirCamera.cpp:167
Camera.h
IException.h
Isis::toDouble
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
Isis::Camera::FocalPlaneMap
CameraFocalPlaneMap * FocalPlaneMap()
Returns a pointer to the CameraFocalPlaneMap object.
Definition: Camera.cpp:2836
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
std
Namespace for the standard library.
Isis::Camera::LoadCache
void LoadCache()
This loads the spice cache big enough for this image.
Definition: Camera.cpp:2420
Isis::Camera::m_instrumentNameShort
QString m_instrumentNameShort
Shortened instrument name.
Definition: Camera.h:497
Isis::CameraFocalPlaneMap
Convert between distorted focal plane and detector coordinates.
Definition: CameraFocalPlaneMap.h:85
LineScanCameraDetectorMap.h
Isis::Cube::label
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition: Cube.cpp:1701
Isis::Camera::Lines
int Lines() const
Returns the number of lines in the image.
Definition: Camera.cpp:2786
iTime.h
Isis::Spice::getDouble
SpiceDouble getDouble(const QString &key, int index=0)
This returns a value from the NAIF text pool.
Definition: Spice.cpp:1039
Isis::Table::Records
int Records() const
Returns the number of records.
Definition: Table.cpp:313
Isis::Spice::naifSpkCode
SpiceInt naifSpkCode() const
This returns the NAIF SPK code to use when reading from SPK kernels.
Definition: Spice.cpp:950
Isis::SpiceRotation::SetFrame
void SetFrame(int frameCode)
Change the frame to the given frame code.
Definition: SpiceRotation.cpp:214
Isis::LineScanCamera::DetectorMap
LineScanCameraDetectorMap * DetectorMap()
Returns a pointer to the LineScanCameraDetectorMap object.
Definition: LineScanCamera.h:72
Isis::Camera::m_spacecraftNameShort
QString m_spacecraftNameShort
Shortened spacecraft name.
Definition: Camera.h:499
Kernels.h
Isis::Camera::SetFocalLength
void SetFocalLength()
Reads the focal length from the instrument kernel.
Definition: Camera.cpp:1411
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
DawnVirCamera.h
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126