8 #include "LineScanCameraSkyMap.h"
9 #include "CameraFocalPlaneMap.h"
10 #include "CameraDistortionMap.h"
12 #include "LineScanCameraDetectorMap.h"
30 p_camera->Sensor::SetRightAscensionDeclination(ra, dec);
33 p_camera->Sensor::LookDirection(lookC);
49 p_camera->Sensor::SetRightAscensionDeclination(ra, dec);
51 p_camera->Sensor::LookDirection(lookC);
64 if((startOffset < 0.0) && (endOffset < 0.0))
return false;
65 if((startOffset > 0.0) && (endOffset > 0.0))
return false;
68 double fl, fh, xl, xh;
69 if(startOffset < endOffset) {
72 xl =
p_camera->Spice::cacheStartTime().Et();
73 xh =
p_camera->Spice::cacheEndTime().Et();
78 xl =
p_camera->Spice::cacheEndTime().Et();
79 xh =
p_camera->Spice::cacheStartTime().Et();
85 double timeTol = detectorMap->
LineRate() / 10.0;
86 for(
int j = 0; j < 30; j++) {
87 double etGuess = xl + (xh - xl) * fl / (fl - fh);
89 p_camera->Sensor::SetRightAscensionDeclination(ra, dec);
90 p_camera->Sensor::LookDirection(lookC);
104 delTime = xl - etGuess;
109 delTime = xh - etGuess;
116 if(fabs(delTime) < timeTol || f == 0.0) {