Isis 3 Programmer Reference
RadarGroundRangeMap.cpp
1 
6 /* SPDX-License-Identifier: CC0-1.0 */
7 #include "RadarGroundRangeMap.h"
8 
9 namespace Isis {
16  RadarGroundRangeMap::RadarGroundRangeMap(Camera *parent, const int naifIkCode)
17  : CameraFocalPlaneMap(parent, naifIkCode) {
18  }
19 
20  void RadarGroundRangeMap::setTransform(int naifIkCode,
21  double groundRangeResolution,
22  int samples, Radar::LookDirection ldir) {
23  // Setup map from radar(sample,time) to radar(groundRange,time)
24  double transx[3], transy[3];
25  double transs[3], transl[3];
26 
27  // There is no change for Left and Right look because the RangeCoefficientSet
28  // takes the look direction into account
29  transx[0] = -1.0 * groundRangeResolution;
30  transx[1] = groundRangeResolution;
31  transx[2] = 0.0;
32 
33  transs[0] = 1.0;
34  transs[1] = 1.0 / groundRangeResolution;
35  transs[2] = 0.0;
36 
37  transy[0] = 0.0;
38  transy[1] = 0.0;
39  transy[2] = 0.0;
40 
41  transl[0] = 0.0;
42  transl[1] = 0.0;
43  transl[2] = 0.0;
44 
45  std::string icode = "INS" + IString(naifIkCode);
46  pdpool_c((icode + "_TRANSX").c_str(), 3, transx);
47  pdpool_c((icode + "_TRANSY").c_str(), 3, transy);
48  pdpool_c((icode + "_ITRANSS").c_str(), 3, transs);
49  pdpool_c((icode + "_ITRANSL").c_str(), 3, transl);
50  }
51 }
52 
Isis::RadarGroundRangeMap::RadarGroundRangeMap
RadarGroundRangeMap(Camera *parent, const int naifIkCode)
Construct mapping between detectors and focal plane x/y.
Definition: RadarGroundRangeMap.cpp:16
Isis::Camera
Definition: Camera.h:236
Isis::CameraFocalPlaneMap
Convert between distorted focal plane and detector coordinates.
Definition: CameraFocalPlaneMap.h:85
Isis::IString
Adds specific functionality to C++ strings.
Definition: IString.h:165
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16