Isis Developer Reference
RosettaVirtisCamera.h
Go to the documentation of this file.
1 #ifndef RosettaVirtisCamera_h
2 #define RosettaVirtisCamera_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 {
33  public:
34  typedef TNT::Array2D<SpiceDouble> SMatrix;
35 
37 
39 
41  virtual int CkFrameId() const;
42 
44  virtual int CkReferenceId() const;
45 
47  virtual int SpkReferenceId() const;
48 
49  private:
50  void readHouseKeeping(const QString &filename, double lineRate);
51  void readSCET(const QString &filename);
52 
53  QString scrub(const QString &text) const;
54  double exposureTime() const;
55  double scanLineTime() const;
56  int pixelSumming() const;
57 
58  int hkLineCount() const;
59  double lineStartTime(const double midExpTime) const;
60  double lineEndTime(const double midExpTime) const;
61 
62  double startTime() const;
63  double endTime() const;
64 
65  Table getPointingTable(const QString &channelId,
66  const int zeroFrame);
67  SMatrix getStateRotation(const QString &frame1,
68  const QString &frame2,
69  const double &et) const;
70 
71  bool hasArticulationKernel(Pvl &label) const;
72 
79  struct ScanMirrorInfo {
80  int m_lineNum;
81  double m_scanLineEt;
82  double m_mirrorCos;
83  double m_mirrorSin;
84  double m_opticalAngle;
85  bool m_isDarkCurrent;
86  };
87 
88 
89  bool m_is1BCalibrated;
90  char m_slitMode;
91  double m_exposureTime;
92  int m_summing;
93  double m_scanRate;
94 
95  std::vector<LineRateChange> m_lineRates;
96  std::vector<ScanMirrorInfo> m_mirrorData;
97 
98  };
99 };
100 
101 #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
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::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::RosettaVirtisCamera::~RosettaVirtisCamera
~RosettaVirtisCamera()
Destructor.
Definition: RosettaVirtisCamera.cpp:179
RosettaVirtisCameraPlugin
Isis::Camera * RosettaVirtisCameraPlugin(Isis::Cube &cube)
Instantiate a new RosettaVirtisCamera model for the given label content.
Definition: RosettaVirtisCamera.cpp:643
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
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
IString.h
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::RosettaVirtisCamera
Camera model for both Rosetta VIRTIS-M instruments.
Definition: RosettaVirtisCamera.h:32
Isis::RosettaVirtisCamera::SMatrix
TNT::Array2D< SpiceDouble > SMatrix
2-D buffer
Definition: RosettaVirtisCamera.h:34
Isis::Camera::instrumentId
QString instrumentId()
This method returns the InstrumentId as it appears in the cube.
Definition: Camera.cpp:2876
Isis::TableField::Double
@ Double
The values in the field are 8 byte doubles.
Definition: TableField.h:54
Isis::RosettaVirtisCamera::CkFrameId
virtual int CkFrameId() const
CK Frame ID - Instrument Code from spacit run on CK.
Definition: RosettaVirtisCamera.cpp:187
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
RosettaVirtisCamera.h
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::IException
Isis exception class.
Definition: IException.h:91
Isis::Camera::m_spacecraftNameLong
QString m_spacecraftNameLong
Full spacecraft name.
Definition: Camera.h:498
Camera.h
Isis::RosettaVirtisCamera::CkReferenceId
virtual int CkReferenceId() const
CK Reference ID - J2000.
Definition: RosettaVirtisCamera.cpp:197
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::SpiceRotation::SetCacheTime
void SetCacheTime(std::vector< double > cacheTime)
Definition: SpiceRotation.cpp:2117
Isis::Camera::Lines
int Lines() const
Returns the number of lines in the image.
Definition: Camera.cpp:2786
Isis::RosettaVirtisCamera::RosettaVirtisCamera
RosettaVirtisCamera(Cube &cube)
Creates a camera for a Rosetta VIRTIS-M cube.
Definition: RosettaVirtisCamera.cpp:45
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::RosettaVirtisCamera::SpkReferenceId
virtual int SpkReferenceId() const
SPK Reference ID - J2000.
Definition: RosettaVirtisCamera.cpp:207
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
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