Isis 3 Programmer Reference
RadarPulseMap.cpp
1 
6 /* SPDX-License-Identifier: CC0-1.0 */
7 
8 #include "RadarPulseMap.h"
9 #include "CameraFocalPlaneMap.h"
10 #include "iTime.h"
11 
12 namespace Isis {
24  bool RadarPulseMap::SetDetector(const double sample,
25  const double line) {
26  if(!CameraDetectorMap::SetDetector(sample, line)) return false;
27  double etDiff = p_camera->time().Et() - p_etStart;
28  p_parentLine = etDiff / p_lineRate + 1.0;
29  return true;
30  }
31 
43  bool RadarPulseMap::SetParent(const double sample,
44  const double line) {
45  // Apply base class summing/first sample corrections
46  if(!CameraDetectorMap::SetParent(sample, line)) return false;
47 
48  // line is really a function of time so set detector line to zero
49  p_detectorLine = 0;
50  double etLine = p_etStart + p_lineRate * (line - 1.0);
51  p_camera->setTime(etLine);
52  return true;
53  }
54 }
Isis::Spice::time
iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions.
Definition: Spice.cpp:884
Isis::CameraDetectorMap::p_parentLine
double p_parentLine
The parent line calculated from the detector.
Definition: CameraDetectorMap.h:141
Isis::RadarPulseMap::p_lineRate
double p_lineRate
iTime between lines in parent cube
Definition: RadarPulseMap.h:104
Isis::RadarPulseMap::SetDetector
virtual bool SetDetector(const double sample, const double line)
Compute alpha position from a detector coordinate.
Definition: RadarPulseMap.cpp:24
Isis::CameraDetectorMap::SetParent
virtual bool SetParent(const double sample, const double line)
Compute detector position from a parent image coordinate.
Definition: CameraDetectorMap.cpp:63
Isis::RadarPulseMap::SetParent
virtual bool SetParent(const double sample, const double line)
Compute radar (sample/time)from a alpha image coordinate.
Definition: RadarPulseMap.cpp:43
Isis::CameraDetectorMap::p_detectorLine
double p_detectorLine
Detector coordinate line value.
Definition: CameraDetectorMap.h:142
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::RadarPulseMap::p_etStart
double p_etStart
Starting time at the top of the 1st alpha line.
Definition: RadarPulseMap.h:103
Isis::CameraDetectorMap::SetDetector
virtual bool SetDetector(const double sample, const double line)
Compute parent position from a detector coordinate.
Definition: CameraDetectorMap.cpp:43
Isis::CameraDetectorMap::p_camera
Camera * p_camera
Pointer to the camera.
Definition: CameraDetectorMap.h:138
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16