55 Apollo (QString spacecraft, QString instrument) {
56 initialize(spacecraft.toUpper(), instrument.toUpper());
69 QString spacecraft, instrument;
70 if (filename.mid(0,4) ==
"AS15") spacecraft =
"APOLLO 15";
71 else if (filename.mid(0,4) ==
"AS16") spacecraft =
"APOLLO 16";
72 else if (filename.mid(0,4) ==
"AS17") spacecraft =
"APOLLO 17";
75 QString msg =
"The image filename does not match the required formatting.";
79 if (filename.mid(5,1) ==
"M") instrument =
"METRIC";
80 else if (filename.mid(5,1) ==
"P") instrument =
"PANORAMIC";
81 else if (filename.mid(5,1) ==
"H") instrument =
"HASSELBLAD";
84 QString msg =
"The image filename does not match the required formatting.";
88 initialize(spacecraft, instrument);
100 bool IsMetric () {
return p_instrumentId ==
"METRIC";}
151 int Width () {
return p_imageWidth;};
173 int Bands () {
return p_imageBands;};
256 void initialize(QString spacecraft, QString instrument) {
257 if (instrument ==
"METRIC") {
258 p_instrumentId =
"METRIC";
259 p_reseauDimension = 403;
260 p_imageWidth = 22900;
261 p_imageHeight = 22900;
263 p_imagePixelPitch = 200.5;
265 else if (instrument ==
"PANORAMIC") {
266 p_instrumentId =
"PANORAMIC";
267 p_reseauDimension = 0;
268 p_imageWidth = 231480;
269 p_imageHeight = 23007;
271 p_imagePixelPitch = 200.5;
273 else if (instrument ==
"HASSELBLAD") {
274 p_instrumentId =
"HASSELBLAD";
275 p_reseauDimension = 403;
276 p_imageWidth = 12800;
277 p_imageHeight = 12800;
279 p_imagePixelPitch = 200.5;
282 QString msg =
"Unknown instrument: " + instrument;
286 if (spacecraft ==
"APOLLO 15" ){
287 p_spacecraftName =
"APOLLO 15";
289 p_launchDate =
"1971-07-26T13:33:39.11";
290 if (
IsMetric()) p_naifFrameCode =
"-915240";
291 else if (
IsPanoramic()) p_naifFrameCode =
"-915230";
293 else if (spacecraft ==
"APOLLO 16") {
294 p_spacecraftName =
"APOLLO 16";
296 p_launchDate =
"1972-04-16T17:53:36.238";
297 if (
IsMetric()) p_naifFrameCode =
"-916240";
298 else if (
IsPanoramic()) p_naifFrameCode =
"-916230";
300 else if (spacecraft ==
"APOLLO 17") {
301 p_spacecraftName =
"APOLLO 17";
303 p_launchDate =
"1972-12-07T05:33:00.000";
304 if (
IsMetric()) p_naifFrameCode =
"-917240";
305 else if (
IsPanoramic()) p_naifFrameCode =
"-917230";
308 QString msg =
"Unknown spacecraft: " + spacecraft;
317 int p_reseauDimension;
318 double p_imagePixelPitch;
319 QString p_spacecraftName;
320 QString p_instrumentId;
321 QString p_naifFrameCode;
Parse and return pieces of a time string.
Definition: iTime.h:78
bool IsApollo17()
Checks if the spacecraft is Apollo 17.
Definition: Apollo.h:140
QString InstrumentId()
Returns the instrument ID.
Definition: Apollo.h:211
Apollo(QString filename)
Constructor.
Definition: Apollo.h:68
bool IsHasselblad()
Checks if the instrument is an Apollo Hasselblad camera.
Definition: Apollo.h:116
double PixelPitch()
Returns pixel pitch for the image.
Definition: Apollo.h:195
QString SpacecraftName()
Returns the spacecraft name.
Definition: Apollo.h:203
Apollo(QString spacecraft, QString instrument)
Constructor.
Definition: Apollo.h:55
QString NaifFrameCode()
Returns the NAIF frame code.
Definition: Apollo.h:222
int Width()
Returns the width of the image.
Definition: Apollo.h:151
bool IsApollo15()
Checks if the spacecraft is Apollo 15.
Definition: Apollo.h:124
~Apollo()
Destroys the Apollo object.
Definition: Apollo.h:93
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:40
A type of error that could only have occurred due to a mistake on the user's part (e...
Definition: IException.h:142
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:134
int Height()
Returns the height of the image.
Definition: Apollo.h:162
int Bands()
Returns number of bands in the image.
Definition: Apollo.h:173
Reads user Apollos from a data file.
Definition: Apollo.h:44
QString TargetName()
Returns the target name which is always the Moon.
Definition: Apollo.h:230
Isis exception class.
Definition: IException.h:107
bool IsApollo16()
Checks if the spacecraft is Apollo 16.
Definition: Apollo.h:132
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
bool IsPanoramic()
Checks if the instrument is an Apollo Panoramic camera.
Definition: Apollo.h:108
int ReseauDimension()
Returns the reseau dimension of the image.
Definition: Apollo.h:184
bool IsMetric()
Checks if the instrument is an Apollo Metric camera.
Definition: Apollo.h:100
iTime LaunchDate()
Returns the launch date of the mission.
Definition: Apollo.h:241