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.";
257 if (instrument ==
"METRIC") {
265 else if (instrument ==
"PANORAMIC") {
273 else if (instrument ==
"HASSELBLAD") {
282 QString msg =
"Unknown instrument: " + instrument;
286 if (spacecraft ==
"APOLLO 15" ){
293 else if (spacecraft ==
"APOLLO 16") {
300 else if (spacecraft ==
"APOLLO 17") {
308 QString msg =
"Unknown spacecraft: " + spacecraft;
QString p_spacecraftName
Spacecraft name.
Parse and return pieces of a time string.
bool IsApollo17()
Checks if the spacecraft is Apollo 17.
QString InstrumentId()
Returns the instrument ID.
Apollo(QString filename)
Constructor.
bool IsHasselblad()
Checks if the instrument is an Apollo Hasselblad camera.
double PixelPitch()
Returns pixel pitch for the image.
int p_imageWidth
Image width.
QString SpacecraftName()
Returns the spacecraft name.
Apollo(QString spacecraft, QString instrument)
Constructor.
QString NaifFrameCode()
Returns the NAIF frame code.
int Width()
Returns the width of the image.
bool IsApollo15()
Checks if the spacecraft is Apollo 15.
~Apollo()
Destroys the Apollo object.
double p_imagePixelPitch
Pixel pitch.
iTime p_launchDate
Mission launch date.
#define _FILEINFO_
Macro for the filename and line number.
A type of error that could only have occurred due to a mistake on the user's part (e...
A type of error that cannot be classified as any of the other error types.
int p_imageHeight
Image height.
int Height()
Returns the height of the image.
int Bands()
Returns number of bands in the image.
Reads user Apollos from a data file.
QString TargetName()
Returns the target name which is always the Moon.
bool IsApollo16()
Checks if the spacecraft is Apollo 16.
Namespace for ISIS/Bullet specific routines.
bool IsPanoramic()
Checks if the instrument is an Apollo Panoramic camera.
int p_imageBands
Number of bands in the image.
void initialize(QString spacecraft, QString instrument)
Sets variables based on the spacecraft name and instrument.
int ReseauDimension()
Returns the reseau dimension of the image.
QString p_naifFrameCode
NAIF frame code.
bool IsMetric()
Checks if the instrument is an Apollo Metric camera.
iTime LaunchDate()
Returns the launch date of the mission.
int p_reseauDimension
Dimensions of the reseaus.
QString p_instrumentId
Instrument ID.