USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::Sensor Class Reference
[Spice, Instruments, and Cameras]

Class for computing sensor ground coordinates. More...

#include <Sensor.h>

Inherits Isis::Spice.

Inherited by Isis::Camera.

List of all members.

Public Member Functions

 Sensor (Pvl &lab)
 Constructs a Sensor object and loads SPICE kernels using information from the label object.
virtual ~Sensor ()
 Destroys the Sensor.
void SetTime (const iTime &time)
 By setting the time you essential set the position of the spacecraft and body as indicated in the class Spice.
bool SetLookDirection (const double v[3])
 Sets the look direction of the spacecraft.
bool SetRightAscensionDeclination (const double ra, const double dec)
 Given the ra/dec compute the look direction.
bool SetUniversalGround (const double latitude, const double longitude, bool backCheck=true)
 This is the opposite routine for SetLookDirection.
bool SetUniversalGround (const double latitude, const double longitude, const double radius, bool backCheck=true)
 This overloaded method has the opposite function as SetLookDirection.
bool SetGround (const SurfacePoint &surfacePt, bool backCheck=true)
 This overloaded method has the opposite function as SetLookDirection.
bool HasSurfaceIntersection () const
 Returns if the last call to either SetLookDirection or SetUniversalGround had a valid intersection with the target.
void Coordinate (double p[3]) const
 Returns the x,y,z of the surface intersection in BodyFixed km.
double UniversalLatitude () const
 Returns the planetocentric latitude at the surface intersection point in body fixed.
Latitude GetLatitude () const
 Returns the latitude.
double UniversalLongitude () const
 Returns a positive east, 0-360 domain longitude at the surface intersection point in body fixed.
Longitude GetLongitude () const
 Returns the longitude.
SurfacePoint GetSurfacePoint () const
 Returns the surface point (most efficient accessor).
Distance LocalRadius () const
 Returns the local radius at the intersection point.
Distance LocalRadius (Latitude lat, Longitude lon)
 Returns the local radius at the intersection point.
Distance LocalRadius (double lat, double lon)
 Returns the local radius at the intersection point.
double PhaseAngle () const
 Returns the phase angle in degrees.
double EmissionAngle () const
 Returns the emission angle in degrees.
double IncidenceAngle () const
 Returns the incidence angle in degrees.
void LookDirection (double v[3]) const
 Returns the look direction in the camera coordinate system.
double RightAscension ()
 Returns the right ascension angle (sky longitude).
double Declination ()
 Returns the declination angle (sky latitude).
void SpacecraftSurfaceVector (double scSurfaceVector[3]) const
 Return vector between spacecraft and surface point in body-fixed.
double SlantDistance () const
 Return the distance between the spacecraft and surface point in kmv.
double LocalSolarTime ()
 Return the local solar time in hours.
double SolarDistance () const
 Returns the distance between the sun and surface point in AU.
double SpacecraftAltitude ()
 Returns the distance from the spacecraft to the subspacecraft point in km.
Distance DemRadius (const SurfacePoint &pt)
 Return local radius from dem.
Distance DemRadius (const Latitude &lat, const Longitude &lon)
 Gets the radius from the DEM, if we have one.
bool HasElevationModel ()
 Indicates whether the Kernels PvlGroup has an ElevationModel or ShapeModel PvlKeyword value.
virtual double Resolution ()
 Virtual method that returns the pixel resolution of the sensor in meters/pix.
void IgnoreElevationModel (bool ignore)
 This allows you to ignore the elevation model.
void InstrumentPosition (double p[3]) const
 Returns the spacecraft position in body-fixed frame km units.
SpicePositionInstrumentPosition () const
 Accessor method for the instrument position.
void SunPosition (double p[3]) const
 Fills the input vector with sun position information, in either body-fixed or J2000 reference frame and km units.
SpicePositionSunPosition () const
 Accessor method for the sun position.
double TargetCenterDistance () const
 Calculates and returns the distance from the spacecraft to the target center.
Longitude SolarLongitude ()
 Returns the solar longitude.
void InstrumentVelocity (double v[3]) const
 Returns the spacecraft velocity in body-fixed frame km/sec units.
iTime Time () const
 Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions.
void Radii (Distance r[3]) const
 Returns the radii of the body in km.
void CreateCache (iTime startTime, iTime endTime, const int size, double tol)
 This method creates an internal cache of spacecraft and sun positions over a specified time range.
iTime CacheStartTime () const
 Accessor method for the cache start time.
iTime CacheEndTime () const
 Accessor method for the cache end time.
void SubSpacecraftPoint (double &lat, double &lon)
 Returns the sub-spacecraft latitude/longitude in universal coordinates (0-360 positive east, ocentric).
void SubSolarPoint (double &lat, double &lon)
 Returns the sub-solar latitude/longitude in universal coordinates (0-360 positive east, ocentric).
iString Target () const
 Returns the string name of the target.
bool IsSky () const
 Return if our target is the sky.
iTime getClockTime (iString clockValue, int sclkCode=-1)
 This converts the spacecraft clock ticks value (clockValue) to an iTime.
SpiceDouble GetDouble (const iString &key, int index=0)
 This returns a value from the NAIF text pool.
SpiceInt GetInteger (const iString &key, int index=0)
 This returns a value from the NAIF text pool.
iString GetString (const iString &key, int index=0)
 This returns a value from the NAIF text pool.
SpiceRotationBodyRotation () const
 Accessor method for the body rotation.
SpiceRotationInstrumentRotation () const
 Accessor method for the instrument rotation.
bool HasKernels (Pvl &lab)
 Returns true if the kernel group has kernel files.
SpiceInt NaifBodyCode () const
 This returns the NAIF body code of the target indicated in the labels.
SpiceInt NaifSpkCode () const
 This returns the NAIF SPK code to use when reading from SPK kernels.
SpiceInt NaifCkCode () const
 This returns the NAIF CK code to use when reading from CK kernels.
SpiceInt NaifIkCode () const
 This returns the NAIF IK code to use when reading from instrument kernels.
SpiceInt NaifSclkCode () const
 This returns the NAIF SCLK code to use when reading from instrument kernels.
PvlObject getStoredNaifKeywords () const
 This returns the PvlObject that stores all of the requested Naif data and can be a replacement for furnishing text kernels.

Protected Types

enum  SpiceValueType { SpiceDoubleType, SpiceStringType, SpiceIntType, SpiceByteCodeType }

Protected Member Functions

QVariant readValue (iString key, SpiceValueType type, int index=0)
 This should be used for reading ALL text naif kernel values.
void storeResult (iString name, SpiceValueType type, QVariant value)
QVariant getStoredResult (iString name, SpiceValueType type)
void storeValue (iString key, int index, SpiceValueType type, QVariant value)
QVariant readStoredValue (iString key, SpiceValueType type, int index)

Protected Attributes

bool p_hasIntersection
 This indicates if the surface point or look direction is valid.
Cubep_demCube
 The cube containing the model.
SurfacePointp_surfacePoint
 Surface intersection point.
SpiceDouble p_uB [3]
 This contains the sun position (u) in the bodyfixed reference frame (B).
SpiceDouble p_BJ [3][3]
 This contains the transformation matrix from J2000 (J) to Body fixed (B).
Distancep_radii
 The radii of the target.

Detailed Description

Class for computing sensor ground coordinates.

The sensor class allows for the computation of parameters related to orbiting instruments. In particular, a time and look direction can be set and from those the ground coordinate (latitude/longitude) along with phase, incidence, and emission angles can be computed. Likewise, a ground point can be set and look direction can be computed. This class is derived from the Spice class.

An important capability of this class is the ability to use a surface model other than an ellipsoid when intersecting the look direction of the sensor with the planetary body. This allows for the generation of othrorectified products. The file containing the surface model is a cube and is obtained from the labels in the follow form:

     Group = Kernels
       ElevationModel = file.cub
     EndGroup
Author:
2003-04-11 Jeff Anderson

Member Enumeration Documentation

enum Isis::Spice::SpiceValueType [protected, inherited]
Enumerator:
SpiceDoubleType 
SpiceStringType 
SpiceIntType 
SpiceByteCodeType 

Constructor & Destructor Documentation

Isis::Sensor::Sensor ( Pvl lab  ) 
Isis::Sensor::~Sensor (  )  [virtual]

Destroys the Sensor.

References p_demCube, and p_surfacePoint.


Member Function Documentation

SpiceRotation* Isis::Spice::BodyRotation (  )  const [inline, inherited]
iTime Isis::Spice::CacheEndTime (  )  const [inherited]

Accessor method for the cache end time.

Returns:
iTime End time for the image.
Author:
Steven Lambright
iTime Isis::Spice::CacheStartTime (  )  const [inherited]

Accessor method for the cache start time.

Returns:
iTime Start time for the image.
Author:
Steven Lambright
void Isis::Sensor::Coordinate ( double  p[3]  )  const
void Isis::Spice::CreateCache ( iTime  startTime,
iTime  endTime,
const int  size,
double  tol 
) [inherited]

This method creates an internal cache of spacecraft and sun positions over a specified time range.

The SPICE kernels are then immediately unloaded. This allows multiple instances of the Spice object to be created as the NAIF toolkit can clash if multiple sets of SPICE kernels are loaded. Note that the cache size is specified as an argument. Therefore, times requested via SetTime() which are not directly loaded in the cache will be interpolated. If the instrument position is not cached and cacheSize is greater than 3, the tolerance is passed to the SpicePosition Memcache2HermiteCache() method.

Note: Before this method is called, the private variables p_cacheSize, p_startTime and p_endTime must be set. This is done in the Camera classes using the methods SetCacheSize() and SetStartEndEphemerisTime().

Parameters:
startTime Starting ephemeris time to cache
endTime Ending ephemeris time to cache
size Size of the cache.
tol Tolerance.
Exceptions:
Isis::iException::Programmer - "Argument cacheSize must be greater than zero"
Isis::iException::Programmer - "Argument startTime must be less than or equal to endTime"
Isis::iException::User - "This instrument does not support time padding"
History:
2011-04-10 Debbie A. Cook - Updated to only create cache for instrumentPosition if type is Spice.

References _FILEINFO_, Isis::NaifStatus::CheckErrors(), Isis::iTime::Et(), Isis::SpicePosition::GetSource(), Isis::Spice::InstrumentPosition(), Isis::SpicePosition::IsCached(), Isis::SpicePosition::LoadCache(), Isis::SpicePosition::Memcache, Isis::SpicePosition::Memcache2HermiteCache(), Isis::iException::Message(), Isis::iException::Programmer, Isis::SpicePosition::SetAberrationCorrection(), and Isis::iException::User.

Referenced by Isis::Camera::LoadCache(), Isis::MiniRF::MiniRF(), and Isis::VimsCamera::VimsCamera().

double Isis::Sensor::Declination (  ) 

Returns the declination angle (sky latitude).

Returns:
double Declination angle.

Referenced by Isis::VimsSkyMap::Init(), Isis::Camera::RaDecRange(), and Isis::Camera::RaDecResolution().

Distance Isis::Sensor::DemRadius ( const Latitude lat,
const Longitude lon 
)
Distance Isis::Sensor::DemRadius ( const SurfacePoint pt  ) 

Return local radius from dem.

Gets the radius from the DEM, if we have one.

Returns:
double Local radius from the DEM

References Isis::SurfacePoint::GetLatitude(), and Isis::SurfacePoint::GetLongitude().

Referenced by Isis::Camera::GetLocalNormal(), LocalRadius(), and SetLookDirection().

double Isis::Sensor::EmissionAngle (  )  const

Returns the emission angle in degrees.

This does not use the surface model.

Returns:
double Emission angle, in degrees.

References Isis::Spice::BodyRotation(), Coordinate(), and Isis::Spice::InstrumentPosition().

Referenced by Isis::Camera::OffNadirAngle(), and Isis::ControlNetValidMeasure::ValidStandardOptions().

iTime Isis::Spice::getClockTime ( iString  clockValue,
int  sclkCode = -1 
) [inherited]
SpiceDouble Isis::Spice::GetDouble ( const iString key,
int  index = 0 
) [inherited]
SpiceInt Isis::Spice::GetInteger ( const iString key,
int  index = 0 
) [inherited]

This returns a value from the NAIF text pool.

It is a static convience

Parameters:
key Name of NAIF keyword to obtain from the pool
index If the keyword is an array, the element to obtain. Defaults to 0
Returns:
SpiceInt Spice integer from NAIF text pool
Exceptions:
Isis::iException::Io - "Can not find key in instrument kernels

References Isis::Spice::readValue(), and Isis::Spice::SpiceIntType.

Referenced by Isis::IssNACamera::IssNACamera(), Isis::IssWACamera::IssWACamera(), and Isis::LroWideAngleCamera::LroWideAngleCamera().

Latitude Isis::Sensor::GetLatitude (  )  const

Returns the latitude.

References Isis::SurfacePoint::GetLatitude(), and p_surfacePoint.

Referenced by Isis::VimsGroundMap::Init().

Longitude Isis::Sensor::GetLongitude (  )  const

Returns the longitude.

References Isis::SurfacePoint::GetLongitude(), and p_surfacePoint.

Referenced by Isis::VimsGroundMap::Init().

PvlObject Isis::Spice::getStoredNaifKeywords (  )  const [inherited]

This returns the PvlObject that stores all of the requested Naif data and can be a replacement for furnishing text kernels.

QVariant Isis::Spice::getStoredResult ( iString  name,
SpiceValueType  type 
) [protected, inherited]
iString Isis::Spice::GetString ( const iString key,
int  index = 0 
) [inherited]

This returns a value from the NAIF text pool.

It is a static convience method

Parameters:
key Name of NAIF keyword to obtain from the pool
index If the keyword is an array, the element to obtain. Defaults to 0
Returns:
string Value from the NAIF text pool
Exceptions:
Isis::iException::Io - "Can not find key in instrument kernels."

References Isis::Spice::readValue(), and Isis::Spice::SpiceStringType.

Referenced by Isis::MdisCamera::MdisCamera().

SurfacePoint Isis::Sensor::GetSurfacePoint (  )  const

Returns the surface point (most efficient accessor).

References p_surfacePoint.

bool Isis::Sensor::HasElevationModel (  )  [inline]

Indicates whether the Kernels PvlGroup has an ElevationModel or ShapeModel PvlKeyword value.

Returns:
bool True if an elevation model exists.
bool Isis::Spice::HasKernels ( Pvl lab  )  [inherited]

Returns true if the kernel group has kernel files.

Parameters:
lab Label containing Instrument and Kernels groups.
Returns:
bool status of kernel files in the kernel group

References Isis::PvlObject::FindGroup(), Isis::PvlContainer::HasKeyword(), Isis::PvlKeyword::Size(), and Isis::PvlObject::Traverse.

bool Isis::Sensor::HasSurfaceIntersection (  )  const [inline]

Returns if the last call to either SetLookDirection or SetUniversalGround had a valid intersection with the target.

If so then other methods such as Coordinate, UniversalLatitude, UniversalLongitude, etc can be used with confidence.

Returns:
bool True if the look direction intersects with the target.

References p_hasIntersection.

Referenced by Isis::Camera::DetectorResolution(), Isis::Chip::Load(), Isis::VimsGroundMap::SetGround(), and Isis::Camera::SetImage().

void Isis::Sensor::IgnoreElevationModel ( bool  ignore  ) 

This allows you to ignore the elevation model.

Parameters:
ignore True if the elevation model is ignored

Referenced by Isis::ImagePolygon::Create(), and Isis::ImagePolygon::initCube().

double Isis::Sensor::IncidenceAngle (  )  const

Returns the incidence angle in degrees.

This does not use the surface model.

Returns:
double Incidence angle, in degrees.

References Isis::Displacement::GetKilometers(), Isis::SurfacePoint::GetX(), Isis::SurfacePoint::GetY(), Isis::SurfacePoint::GetZ(), p_surfacePoint, Isis::Spice::p_uB, and Isis::PI().

Referenced by Isis::ControlNetValidMeasure::ValidStandardOptions().

SpicePosition* Isis::Spice::InstrumentPosition (  )  const [inline, inherited]
void Isis::Spice::InstrumentPosition ( double  p[3]  )  const [inherited]
SpiceRotation* Isis::Spice::InstrumentRotation (  )  const [inline, inherited]
void Isis::Spice::InstrumentVelocity ( double  v[3]  )  const [inherited]

Returns the spacecraft velocity in body-fixed frame km/sec units.

Parameters:
v[] Spacecraft velocity

References _FILEINFO_, Isis::iException::Message(), Isis::iException::Programmer, and Isis::SpicePosition::Velocity().

bool Isis::Spice::IsSky (  )  const [inline, inherited]
Distance Isis::Sensor::LocalRadius ( double  lat,
double  lon 
)

Returns the local radius at the intersection point.

This is either the radius on the ellipsoid, the radius from the surface model passed into the constructor, or the radius set with SetUniversalGround.

Returns:
Distance The distance from the center of the planet to this lat,lon in meters

References a, c, Isis::Angle::Degrees, DemRadius(), Isis::Distance::GetKilometers(), Isis::Distance::Kilometers, Isis::Spice::p_radii, and radius.

Distance Isis::Sensor::LocalRadius ( Latitude  lat,
Longitude  lon 
)

Returns the local radius at the intersection point.

This is either the radius on the ellipsoid, the radius from the surface model passed into the constructor, or the radius set with SetUniversalGround.

Returns:
Distance The distance from the center of the planet to this lat,lon in meters

References Isis::Angle::GetDegrees(), and LocalRadius().

Distance Isis::Sensor::LocalRadius (  )  const
double Isis::Sensor::LocalSolarTime (  ) 

Return the local solar time in hours.

Returns:
double Local solar time, in hours

References slat, slon, Isis::Spice::SubSolarPoint(), and UniversalLongitude().

void Isis::Sensor::LookDirection ( double  v[3]  )  const

Returns the look direction in the camera coordinate system.

Parameters:
v[] The look vector

References Isis::Spice::BodyRotation(), and Isis::Spice::InstrumentRotation().

SpiceInt Isis::Spice::NaifBodyCode (  )  const [inherited]

This returns the NAIF body code of the target indicated in the labels.

Returns:
SpiceInt NAIF body code

References _FILEINFO_, code, Isis::iException::Io, and Isis::iException::Message().

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

SpiceInt Isis::Spice::NaifCkCode (  )  const [inherited]

This returns the NAIF CK code to use when reading from CK kernels.

Returns:
SpiceInt NAIF CK code
SpiceInt Isis::Spice::NaifIkCode (  )  const [inherited]
SpiceInt Isis::Spice::NaifSclkCode (  )  const [inherited]

This returns the NAIF SCLK code to use when reading from instrument kernels.

Returns:
SpiceInt NAIF SCLK code

Referenced by Isis::Spice::getClockTime().

SpiceInt Isis::Spice::NaifSpkCode (  )  const [inherited]

This returns the NAIF SPK code to use when reading from SPK kernels.

Returns:
SpiceInt NAIF SPK code

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

double Isis::Sensor::PhaseAngle (  )  const
void Isis::Spice::Radii ( Distance  r[3]  )  const [inherited]

Returns the radii of the body in km.

The radii are obtained from the appropriate SPICE kernel for the body specified by TargetName in the Instrument group of the labels.

Parameters:
r[] Radii of the target in kilometers

References Isis::Spice::p_radii.

Referenced by Isis::Camera::GroundRange(), Isis::MiniRF::MiniRF(), Isis::RadarGroundMap::RadarGroundMap(), and Isis::VimsGroundMap::SetGround().

QVariant Isis::Spice::readStoredValue ( iString  key,
SpiceValueType  type,
int  index 
) [protected, inherited]
QVariant Isis::Spice::readValue ( iString  key,
SpiceValueType  type,
int  index = 0 
) [protected, inherited]

This should be used for reading ALL text naif kernel values.

This will read it from Naif if we're using naif/not attached kernels. If we have attached kernels and a NaifKeywords label object we will grab it from there instead. This allows us to not furnish kernels after spiceinit.

Parameters:
key The naif keyword/value name
type The naif value's primitive type
index The index into the naif keyword array to read

References _FILEINFO_, Isis::NaifStatus::CheckErrors(), Isis::iException::Io, Isis::iException::Message(), Isis::Spice::readStoredValue(), Isis::iException::Spice, Isis::Spice::SpiceDoubleType, Isis::Spice::SpiceIntType, Isis::Spice::SpiceStringType, and Isis::Spice::storeValue().

Referenced by Isis::Spice::GetDouble(), Isis::Spice::GetInteger(), and Isis::Spice::GetString().

virtual double Isis::Sensor::Resolution (  )  [inline, virtual]

Virtual method that returns the pixel resolution of the sensor in meters/pix.

Returns:
double Resolution value of 1.0

Reimplemented in Isis::Camera.

Referenced by SetLookDirection().

double Isis::Sensor::RightAscension (  ) 

Returns the right ascension angle (sky longitude).

Referenced by Isis::VimsSkyMap::Init(), Isis::Camera::RaDecRange(), and Isis::Camera::RaDecResolution().

bool Isis::Sensor::SetGround ( const SurfacePoint surfacePt,
bool  backCheck = true 
)

This overloaded method has the opposite function as SetLookDirection.

Instead of computing a point on the target, a point is set and the look direction is computed. Other methods such as lat/lon, phase, incidence, etc. can be used if this method returns a true.

Parameters:
backCheck If true this method will check the lat/lon point to see if it falls on the backside of the target (or beyond the horizon). If false this test will not occur. Defaults to true
Returns:
bool

References Isis::Spice::IsSky(), p_hasIntersection, and p_surfacePoint.

bool Isis::Sensor::SetLookDirection ( const double  v[3]  ) 

Sets the look direction of the spacecraft.

This routine will then attempt to intersect the look direction with the target. If successful you can utilize the methods which return the lat/lon, phase, incidence, etc. This routine returns false if the look direction does not intersect the target.

Parameters:
v[] A look vector in camera coordinates. For example, (0,0,1) is usually the look direction out of the boresight of a camera.
Returns:
bool True if the look direction intersected the target.

References a, Isis::Spice::BodyRotation(), c, Isis::NaifStatus::CheckErrors(), Coordinate(), d, DemRadius(), dist, Isis::E(), Isis::SurfacePoint::FromNaifArray(), Isis::Distance::GetKilometers(), Isis::Spice::InstrumentPosition(), Isis::Spice::InstrumentRotation(), Isis::Projection::IsEquatorialCylindrical(), Isis::Spice::IsSky(), Isis::IsSpecial(), MAX, p_hasIntersection, Isis::Spice::p_radii, p_surfacePoint, Isis::PI(), r1, r2, Resolution(), and tolerance.

Referenced by Isis::LineScanCameraGroundMap::FindFocalPlane(), Isis::RadarGroundMap::RadarGroundMap(), Isis::VimsSkyMap::SetFocalPlane(), Isis::VimsGroundMap::SetFocalPlane(), Isis::CameraGroundMap::SetFocalPlane(), and SetRightAscensionDeclination().

bool Isis::Sensor::SetRightAscensionDeclination ( const double  ra,
const double  dec 
)

Given the ra/dec compute the look direction.

Parameters:
ra Right ascension in degrees (sky longitude)
dec Declination in degrees (sky latitude)
Returns:
bool True if successful

Reimplemented in Isis::Camera.

References Isis::Spice::InstrumentRotation(), Isis::PI(), and SetLookDirection().

void Isis::Sensor::SetTime ( const iTime time  ) 
bool Isis::Sensor::SetUniversalGround ( const double  latitude,
const double  longitude,
const double  radius,
bool  backCheck = true 
)

This overloaded method has the opposite function as SetLookDirection.

Instead of computing a point on the target, a point is set and the look direction is computed. Other methods such as lat/lon, phase, incidence, etc. can be used if this method returns a true.

Parameters:
latitude Planetocentric latitude in degrees
longitude Positive east longitude in degrees
radius Radius in meters
backCheck If true this method will check the lat/lon point to see if it falls on the backside of the target (or beyond the horizon). If false this test will not occur. Defaults to true
Returns:
bool True if the look direction intersects the target.

References Isis::Angle::Degrees, Isis::Spice::IsSky(), Isis::Distance::Meters, p_hasIntersection, p_surfacePoint, and Isis::SurfacePoint::SetSpherical().

bool Isis::Sensor::SetUniversalGround ( const double  latitude,
const double  longitude,
bool  backCheck = true 
)

This is the opposite routine for SetLookDirection.

Instead of computing a point on the target, a point is set and the look direction is computed. Other methods such as lat/lon, phase, incidence, etc. can be used if this method returns a true.

Parameters:
latitude Planetocentric latitude
longitude Positive east longitude
backCheck If true this method will check the lat/lon point to see if it falls on the backside of the target (or beyond the horizon). If false this test will not occur. Defaults to true
Returns:
bool True if the look direction intersects the target.

References Isis::Angle::Degrees, Isis::Spice::IsSky(), LocalRadius(), p_hasIntersection, p_surfacePoint, Isis::SurfacePoint::SetSpherical(), and Isis::SurfacePoint::Valid().

double Isis::Sensor::SlantDistance (  )  const
double Isis::Sensor::SolarDistance (  )  const

Returns the distance between the sun and surface point in AU.

Returns:
double Solar distance

References Isis::Displacement::GetKilometers(), Isis::SurfacePoint::GetX(), Isis::SurfacePoint::GetY(), Isis::SurfacePoint::GetZ(), p_surfacePoint, and Isis::Spice::SunPosition().

Longitude Isis::Spice::SolarLongitude (  )  [inherited]

Returns the solar longitude.

Returns:
double The Solar Longitude
double Isis::Sensor::SpacecraftAltitude (  ) 

Returns the distance from the spacecraft to the subspacecraft point in km.

It uses the ellipsoid, not the shape model

Returns:
double Spacecraft altitude.

References Isis::Distance::GetKilometers(), Isis::Spice::InstrumentPosition(), LocalRadius(), Isis::PI(), and Isis::Spice::SubSpacecraftPoint().

Referenced by Isis::Camera::LoadCache(), Isis::MiniRF::MiniRF(), and Isis::VimsCamera::VimsCamera().

void Isis::Sensor::SpacecraftSurfaceVector ( double  scSurfaceVector[3]  )  const

Return vector between spacecraft and surface point in body-fixed.

Return the vector between the spacecraft and surface point in body-fixed.

Author:
2011-12-20 Tracie Sucharski
void Isis::Spice::storeResult ( iString  name,
SpiceValueType  type,
QVariant  value 
) [protected, inherited]
void Isis::Spice::storeValue ( iString  key,
int  index,
SpiceValueType  type,
QVariant  value 
) [protected, inherited]
void Isis::Spice::SubSolarPoint ( double &  lat,
double &  lon 
) [inherited]

Returns the sub-solar latitude/longitude in universal coordinates (0-360 positive east, ocentric).

Parameters:
lat Sub-solar latitude
lon Sub-solar longitude
See also:
SetTime()
Exceptions:
Isis::iException::Programmer - "You must call SetTime first."

References _FILEINFO_, a, c, Isis::NaifStatus::CheckErrors(), dist, Isis::Distance::GetKilometers(), Isis::iException::Message(), Isis::Spice::p_radii, Isis::Spice::p_uB, Isis::PI(), and Isis::iException::Programmer.

Referenced by LocalSolarTime(), and Isis::Camera::SunAzimuth().

void Isis::Spice::SubSpacecraftPoint ( double &  lat,
double &  lon 
) [inherited]

Returns the sub-spacecraft latitude/longitude in universal coordinates (0-360 positive east, ocentric).

Parameters:
lat Sub-spacecraft latitude
lon Sub-spacecraft longitude
See also:
SetTime()
Exceptions:
Isis::iException::Programmer - "You must call SetTime first."

References _FILEINFO_, a, c, Isis::NaifStatus::CheckErrors(), Isis::SpicePosition::Coordinate(), dist, Isis::Distance::GetKilometers(), Isis::iException::Message(), Isis::Spice::p_radii, Isis::PI(), and Isis::iException::Programmer.

Referenced by SpacecraftAltitude(), and Isis::Camera::SpacecraftAzimuth().

SpicePosition* Isis::Spice::SunPosition (  )  const [inline, inherited]

Accessor method for the sun position.

Returns:
iTime Sun position for the image.
Author:
Steven Lambright

Referenced by SolarDistance().

void Isis::Spice::SunPosition ( double  p[3]  )  const [inherited]

Fills the input vector with sun position information, in either body-fixed or J2000 reference frame and km units.

Parameters:
p[] Sun position
See also:
SetTime()

References _FILEINFO_, Isis::iException::Message(), Isis::Spice::p_uB, and Isis::iException::Programmer.

iString Isis::Spice::Target (  )  const [inherited]

Returns the string name of the target.

Returns:
string

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

double Isis::Spice::TargetCenterDistance (  )  const [inherited]

Calculates and returns the distance from the spacecraft to the target center.

Returns:
double Distance to the center of the target from the spacecraft

References Isis::SpicePosition::Coordinate().

iTime Isis::Spice::Time (  )  const [inherited]

Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions.

Returns:
double

Referenced by Isis::LineScanCameraGroundMap::FindFocalPlane(), Isis::Camera::StartEndEphemerisTimes(), and Isis::VariableLineScanCameraDetectorMap::VariableLineScanCameraDetectorMap().

double Isis::Sensor::UniversalLatitude (  )  const
double Isis::Sensor::UniversalLongitude (  )  const

Member Data Documentation

SpiceDouble Isis::Spice::p_BJ[3][3] [protected, inherited]

This contains the transformation matrix from J2000 (J) to Body fixed (B).

Recall that the transpose of this matrix JB will convert from body-fixed to J2000. It is left in protected space so that conversions between double and SpiceDouble do not have to occur in inheriting classes.

The cube containing the model.

Referenced by DemRadius(), Sensor(), and ~Sensor().

This indicates if the surface point or look direction is valid.

It is made protected so inheriting classes can change it if necessary.

Referenced by HasSurfaceIntersection(), Sensor(), SetGround(), Isis::Camera::SetGround(), Isis::Camera::SetImage(), SetLookDirection(), Isis::Camera::SetRightAscensionDeclination(), SetTime(), SetUniversalGround(), and Isis::Camera::SetUniversalGround().

Distance* Isis::Spice::p_radii [protected, inherited]
SpiceDouble Isis::Spice::p_uB[3] [protected, inherited]

This contains the sun position (u) in the bodyfixed reference frame (B).

It is left protected so that conversions between double and SpiceDouble do not have to occur in inheriting classes. Units are km

Referenced by IncidenceAngle(), Isis::Camera::LocalPhotometricAngles(), PhaseAngle(), Isis::Spice::SetTime(), Isis::Spice::SubSolarPoint(), and Isis::Spice::SunPosition().


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