Isis 3 Programmer Reference
RadarGroundRangeMap.cpp
Go to the documentation of this file.
1 
23 #include "RadarGroundRangeMap.h"
24 
25 namespace Isis {
32  RadarGroundRangeMap::RadarGroundRangeMap(Camera *parent, const int naifIkCode)
33  : CameraFocalPlaneMap(parent, naifIkCode) {
34  }
35 
36  void RadarGroundRangeMap::setTransform(int naifIkCode,
37  double groundRangeResolution,
38  int samples, Radar::LookDirection ldir) {
39  // Setup map from radar(sample,time) to radar(groundRange,time)
40  double transx[3], transy[3];
41  double transs[3], transl[3];
42 
43  // There is no change for Left and Right look because the RangeCoefficientSet
44  // takes the look direction into account
45  transx[0] = -1.0 * groundRangeResolution;
46  transx[1] = groundRangeResolution;
47  transx[2] = 0.0;
48 
49  transs[0] = 1.0;
50  transs[1] = 1.0 / groundRangeResolution;
51  transs[2] = 0.0;
52 
53  transy[0] = 0.0;
54  transy[1] = 0.0;
55  transy[2] = 0.0;
56 
57  transl[0] = 0.0;
58  transl[1] = 0.0;
59  transl[2] = 0.0;
60 
61  std::string icode = "INS" + IString(naifIkCode);
62  pdpool_c((icode + "_TRANSX").c_str(), 3, transx);
63  pdpool_c((icode + "_TRANSY").c_str(), 3, transy);
64  pdpool_c((icode + "_ITRANSS").c_str(), 3, transs);
65  pdpool_c((icode + "_ITRANSL").c_str(), 3, transl);
66  }
67 }
68 
Convert between distorted focal plane and detector coordinates.
RadarGroundRangeMap(Camera *parent, const int naifIkCode)
Construct mapping between detectors and focal plane x/y.
Adds specific functionality to C++ strings.
Definition: IString.h:181
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31