14#include "IException.h"
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.";
242 if (instrument ==
"METRIC") {
250 else if (instrument ==
"PANORAMIC") {
258 else if (instrument ==
"HASSELBLAD") {
267 QString msg =
"Unknown instrument: " + instrument;
271 if (spacecraft ==
"APOLLO 15" ){
278 else if (spacecraft ==
"APOLLO 16") {
285 else if (spacecraft ==
"APOLLO 17") {
293 QString msg =
"Unknown spacecraft: " + spacecraft;
Reads user Apollos from a data file.
QString p_naifFrameCode
NAIF frame code.
bool IsApollo15()
Checks if the spacecraft is Apollo 15.
QString TargetName()
Returns the target name which is always the Moon.
bool IsPanoramic()
Checks if the instrument is an Apollo Panoramic camera.
int p_imageBands
Number of bands in the image.
QString NaifFrameCode()
Returns the NAIF frame code.
QString p_instrumentId
Instrument ID.
Apollo(QString filename)
Constructor.
iTime LaunchDate()
Returns the launch date of the mission.
int p_imageWidth
Image width.
iTime p_launchDate
Mission launch date.
int ReseauDimension()
Returns the reseau dimension of the image.
double PixelPitch()
Returns pixel pitch for the image.
bool IsMetric()
Checks if the instrument is an Apollo Metric camera.
QString SpacecraftName()
Returns the spacecraft name.
bool IsHasselblad()
Checks if the instrument is an Apollo Hasselblad camera.
~Apollo()
Destroys the Apollo object.
int Bands()
Returns number of bands in the image.
int Height()
Returns the height of the image.
Apollo(QString spacecraft, QString instrument)
Constructor.
int p_imageHeight
Image height.
bool IsApollo17()
Checks if the spacecraft is Apollo 17.
QString p_spacecraftName
Spacecraft name.
int Width()
Returns the width of the image.
int p_reseauDimension
Dimensions of the reseaus.
bool IsApollo16()
Checks if the spacecraft is Apollo 16.
double p_imagePixelPitch
Pixel pitch.
void initialize(QString spacecraft, QString instrument)
Sets variables based on the spacecraft name and instrument.
QString InstrumentId()
Returns the instrument ID.
@ Unknown
A type of error that cannot be classified as any of the other error types.
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Parse and return pieces of a time string.
This is free and unencumbered software released into the public domain.