USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::Cassini::VimsSkyMap Class Reference

#include <VimsSkyMap.h>

Inheritance diagram for Isis::Cassini::VimsSkyMap:

Inheritance graph
[legend]
Collaboration diagram for Isis::Cassini::VimsSkyMap:

Collaboration graph
[legend]
List of all members.

Detailed Description

Convert between undistorted focal plane and ground coordinates.

This base class is used to convert between undistorted focal plane coordinates (x/y) in millimeters and ground coordinates lat/lon. This class handles the case of framing cameras.

See also:
Camera

For internal use only.

History:
2006-04-05 Tracie Sucharski Original version
History:
2009-04-06 Steven Lambright Fixed problem that caused double deletion of sky map / ground map.

Definition at line 50 of file VimsSkyMap.h.

Public Member Functions

 VimsSkyMap (Camera *parent, Pvl &lab)
virtual ~VimsSkyMap ()
 Destructor.
virtual bool SetFocalPlane (const double ux, const double uy, const double uz)
 Compute ground position from focal plane coordinate.
virtual bool SetSky (const double ra, const double dec)
 Sets the sky position to the given ra and dec.
void Init (Pvl &lab)
 Initialize vims sky model.
double FocalPlaneX () const
 Return undistorted focal plane x.
double FocalPlaneY () const
 Return undistorted focal plane y.

Protected Attributes

Camerap_camera
double p_focalPlaneX
double p_focalPlaneY

Private Attributes

SpiceDouble p_etStart
double p_exposureDuration
double p_interlineDelay
std::string p_channel
double p_visExp
double p_irExp
int p_nsUv
int p_nlUv
int p_swathWidth
int p_swathLength
int p_camSampOffset
int p_camLineOffset
double p_unitVector [192][192][3]
double p_minRa
double p_maxRa
double p_minDec
double p_maxDec
double p_raMap [64][64]
double p_decMap [64][64]


Constructor & Destructor Documentation

virtual Isis::Cassini::VimsSkyMap::~VimsSkyMap (  )  [inline, virtual]

Destructor.

Definition at line 55 of file VimsSkyMap.h.


Member Function Documentation

double Isis::CameraSkyMap::FocalPlaneX (  )  const [inline, inherited]

Return undistorted focal plane x.

Definition at line 58 of file CameraSkyMap.h.

References Isis::CameraSkyMap::p_focalPlaneX.

Referenced by Isis::Camera::SetRightAscensionDeclination().

double Isis::CameraSkyMap::FocalPlaneY (  )  const [inline, inherited]

Return undistorted focal plane y.

Definition at line 61 of file CameraSkyMap.h.

Referenced by Isis::Camera::SetRightAscensionDeclination().

void Isis::Cassini::VimsSkyMap::Init ( Pvl lab  ) 

Initialize vims sky model.

Parameters:
[in] lab (Pvl &) Cube Pvl label
History:
2007-04-16 Tracie Sucharski - Look for unit vectors in the proper directory.
History:
2007-04-18 Tracie Sucharski, The inaccuracy of the 15 Mhz clock (exposure , interline_delay) is already taken care of in the labels values, so remove the adjustment from the code (exp * 1.01725). *Reference: email from John Ivens 11/27/2006.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! / DONT FORGET TO TAKE THIS OUT WHEN WE HAVE UNIT VECTORS FOR ALL BANDS. / This needs to be smartened up for different summing modes.

Definition at line 58 of file VimsSkyMap.cpp.

References _FILEINFO_, band, Isis::Sensor::Declination(), Isis::Filename::Expanded(), fin, Isis::PvlObject::FindGroup(), Isis::Camera::IgnoreProjection(), in, line, Isis::iException::Message(), Isis::NULL8, Isis::CameraSkyMap::p_camera, p_camLineOffset, p_camSampOffset, p_channel, p_decMap, p_etStart, p_interlineDelay, p_irExp, p_maxDec, p_maxRa, p_minDec, p_minRa, p_nlUv, p_nsUv, p_raMap, p_swathLength, p_swathWidth, p_unitVector, p_visExp, Isis::Camera::ParentLines(), Isis::Camera::ParentSamples(), Isis::Preference::Preferences(), Isis::Sensor::RightAscension(), Isis::Sensor::SetEphemerisTime(), Isis::Camera::SetImage(), Isis::iString::ToDouble(), Isis::iString::Token(), and Isis::PvlObject::Traverse.

bool Isis::Cassini::VimsSkyMap::SetFocalPlane ( const double  ux,
const double  uy,
const double  uz 
) [virtual]

Compute ground position from focal plane coordinate.

This method will compute the ground position given an undistorted focal plane coordinate. Note that the latitude/longitude value can be obtained from the camera class passed into the constructor.

Parameters:
ux distorted focal plane x in millimeters
uy distorted focal plane y in millimeters
uz distorted focal plane z in millimeters
Returns:
conversion was successful

Reimplemented from Isis::CameraSkyMap.

Definition at line 257 of file VimsSkyMap.cpp.

References Isis::CameraSkyMap::p_camera, p_camLineOffset, p_camSampOffset, p_channel, p_etStart, p_interlineDelay, p_irExp, p_nlUv, p_nsUv, p_swathWidth, p_unitVector, p_visExp, Isis::Camera::ParentLines(), Isis::Camera::ParentSamples(), Isis::Sensor::SetEphemerisTime(), and Isis::Sensor::SetLookDirection().

bool Isis::Cassini::VimsSkyMap::SetSky ( const double  ra,
const double  dec 
) [virtual]

Sets the sky position to the given ra and dec.

Parameters:
ra the right ascension
dec the declination
Returns:
set sky was successful

Reimplemented from Isis::CameraSkyMap.

Definition at line 310 of file VimsSkyMap.cpp.

References Isis::LeastSquares::AddKnown(), dist, Isis::LeastSquares::Evaluate(), Isis::Camera::IgnoreProjection(), Isis::LeastSquares::Knowns(), line, minLine, Isis::NULL8, Isis::CameraSkyMap::p_camera, p_decMap, Isis::CameraSkyMap::p_focalPlaneX, Isis::CameraSkyMap::p_focalPlaneY, p_maxDec, p_maxRa, p_raMap, Isis::Camera::ParentLines(), Isis::Camera::ParentSamples(), Isis::Camera::SetImage(), and Isis::LeastSquares::Solve().


The documentation for this class was generated from the following files: