46 p_camera->Sensor::SetRightAscensionDeclination(ra, dec);
49 p_camera->Sensor::LookDirection(lookC);
65 p_camera->Sensor::SetRightAscensionDeclination(ra, dec);
67 p_camera->Sensor::LookDirection(lookC);
80 if((startOffset < 0.0) && (endOffset < 0.0))
return false;
81 if((startOffset > 0.0) && (endOffset > 0.0))
return false;
84 double fl, fh, xl, xh;
85 if(startOffset < endOffset) {
88 xl =
p_camera->Spice::cacheStartTime().Et();
89 xh =
p_camera->Spice::cacheEndTime().Et();
94 xl =
p_camera->Spice::cacheEndTime().Et();
95 xh =
p_camera->Spice::cacheStartTime().Et();
101 double timeTol = detectorMap->
LineRate() / 10.0;
102 for(
int j = 0; j < 30; j++) {
103 double etGuess = xl + (xh - xl) * fl / (fl - fh);
105 p_camera->Sensor::SetRightAscensionDeclination(ra, dec);
106 p_camera->Sensor::LookDirection(lookC);
120 delTime = xl - etGuess;
125 delTime = xh - etGuess;
132 if(fabs(delTime) < timeTol || f == 0.0) {
CameraDetectorMap * DetectorMap()
Returns a pointer to the CameraDetectorMap object.
double p_focalPlaneY
Undistorted y value for the focal plane.
CameraDistortionMap * DistortionMap()
Returns a pointer to the CameraDistortionMap object.
double LineRate() const
Access the time, in seconds, between scan lines.
virtual bool SetFocalPlane(const double dx, const double dy)
Compute detector position (sample,line) from focal plane coordinates.
double FocalPlaneY() const
Gets the y-value in the focal plane coordinate system.
Convert between distorted focal plane and detector coordinates.
virtual bool SetUndistortedFocalPlane(double ux, double uy)
Compute distorted focal plane x/y.
double FocalLength() const
Returns the focal length.
Distort/undistort focal plane coordinates.
CameraFocalPlaneMap * FocalPlaneMap()
Returns a pointer to the CameraFocalPlaneMap object.
virtual bool SetSky(const double ra, const double dec)
Compute undistorted focal plane coordinate from ra/dec.
double DetectorLine() const
double DetectorLineOffset() const
double p_focalPlaneX
Undistorted x value for the focal plane.
Namespace for ISIS/Bullet specific routines.
Camera * p_camera
The main camera to calculate distortions on.
Convert between parent image coordinates and detector coordinates.
double FocalPlaneX() const
Gets the x-value in the focal plane coordinate system.