|
Isis Developer Reference
|
Go to the documentation of this file.
40 Apollo (QString spacecraft, QString instrument) {
41 initialize(spacecraft.toUpper(), instrument.toUpper());
54 QString spacecraft, instrument;
55 if (filename.mid(0,4) ==
"AS15") spacecraft =
"APOLLO 15";
56 else if (filename.mid(0,4) ==
"AS16") spacecraft =
"APOLLO 16";
57 else if (filename.mid(0,4) ==
"AS17") spacecraft =
"APOLLO 17";
60 QString msg =
"The image filename does not match the required formatting.";
64 if (filename.mid(5,1) ==
"M") instrument =
"METRIC";
65 else if (filename.mid(5,1) ==
"P") instrument =
"PANORAMIC";
66 else if (filename.mid(5,1) ==
"H") instrument =
"HASSELBLAD";
69 QString msg =
"The image filename does not match the required formatting.";
73 initialize(spacecraft, instrument);
85 bool IsMetric () {
return p_instrumentId ==
"METRIC";}
136 int Width () {
return p_imageWidth;};
158 int Bands () {
return p_imageBands;};
241 void initialize(QString spacecraft, QString instrument) {
242 if (instrument ==
"METRIC") {
243 p_instrumentId =
"METRIC";
244 p_reseauDimension = 403;
245 p_imageWidth = 22900;
246 p_imageHeight = 22900;
248 p_imagePixelPitch = 200.5;
250 else if (instrument ==
"PANORAMIC") {
251 p_instrumentId =
"PANORAMIC";
252 p_reseauDimension = 0;
253 p_imageWidth = 231480;
254 p_imageHeight = 23007;
256 p_imagePixelPitch = 200.5;
258 else if (instrument ==
"HASSELBLAD") {
259 p_instrumentId =
"HASSELBLAD";
260 p_reseauDimension = 403;
261 p_imageWidth = 12800;
262 p_imageHeight = 12800;
264 p_imagePixelPitch = 200.5;
267 QString msg =
"Unknown instrument: " + instrument;
271 if (spacecraft ==
"APOLLO 15" ){
272 p_spacecraftName =
"APOLLO 15";
274 p_launchDate =
"1971-07-26T13:33:39.11";
275 if (
IsMetric()) p_naifFrameCode =
"-915240";
276 else if (
IsPanoramic()) p_naifFrameCode =
"-915230";
278 else if (spacecraft ==
"APOLLO 16") {
279 p_spacecraftName =
"APOLLO 16";
281 p_launchDate =
"1972-04-16T17:53:36.238";
282 if (
IsMetric()) p_naifFrameCode =
"-916240";
283 else if (
IsPanoramic()) p_naifFrameCode =
"-916230";
285 else if (spacecraft ==
"APOLLO 17") {
286 p_spacecraftName =
"APOLLO 17";
288 p_launchDate =
"1972-12-07T05:33:00.000";
289 if (
IsMetric()) p_naifFrameCode =
"-917240";
290 else if (
IsPanoramic()) p_naifFrameCode =
"-917230";
293 QString msg =
"Unknown spacecraft: " + spacecraft;
302 int p_reseauDimension;
303 double p_imagePixelPitch;
304 QString p_spacecraftName;
305 QString p_instrumentId;
306 QString p_naifFrameCode;
QString NaifFrameCode()
Returns the NAIF frame code.
Definition: Apollo.h:207
int Width()
Returns the width of the image.
Definition: Apollo.h:136
bool IsApollo15()
Checks if the spacecraft is Apollo 15.
Definition: Apollo.h:109
Parse and return pieces of a time string.
Definition: iTime.h:65
int Height()
Returns the height of the image.
Definition: Apollo.h:147
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
int Bands()
Returns number of bands in the image.
Definition: Apollo.h:158
QString TargetName()
Returns the target name which is always the Moon.
Definition: Apollo.h:215
bool IsApollo16()
Checks if the spacecraft is Apollo 16.
Definition: Apollo.h:117
bool IsPanoramic()
Checks if the instrument is an Apollo Panoramic camera.
Definition: Apollo.h:93
int ReseauDimension()
Returns the reseau dimension of the image.
Definition: Apollo.h:169
iTime LaunchDate()
Returns the launch date of the mission.
Definition: Apollo.h:226
bool IsMetric()
Checks if the instrument is an Apollo Metric camera.
Definition: Apollo.h:85
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Apollo(QString filename)
Constructor.
Definition: Apollo.h:53
Reads user Apollos from a data file.
Definition: Apollo.h:29
bool IsHasselblad()
Checks if the instrument is an Apollo Hasselblad camera.
Definition: Apollo.h:101
Isis exception class.
Definition: IException.h:91
double PixelPitch()
Returns pixel pitch for the image.
Definition: Apollo.h:180
bool IsApollo17()
Checks if the spacecraft is Apollo 17.
Definition: Apollo.h:125
QString InstrumentId()
Returns the instrument ID.
Definition: Apollo.h:196
QString SpacecraftName()
Returns the spacecraft name.
Definition: Apollo.h:188
~Apollo()
Destroys the Apollo object.
Definition: Apollo.h:78
Apollo(QString spacecraft, QString instrument)
Constructor.
Definition: Apollo.h:40
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126