|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef ProcessExportPds4_h
2 #define ProcessExportPds4_h
13 #include <QDomDocument>
103 void addHistory(QString description, QString date =
"tbd", QString version =
"1.0");
111 QString transMapFile =
"$ISISROOT/appdata/translations/pds4ExportUnits.pvl");
113 void addSchema(QString sch, QString xsd, QString xmlns, QString xmlnsURI);
114 void addSchema(QString xsd, QString xmlns, QString xmlnsURI);
QString originalPath() const
Returns the path of the original file name.
Definition: FileName.cpp:84
static void translateUnits(QDomDocument &label, QString transMapFile="$ISISROOT/appdata/translations/pds4ExportUnits.pvl")
This function will go through an XML document and attempt to convert all "units" attributes to the ap...
Definition: ProcessExportPds4.cpp:1464
const short LOW_INSTR_SAT2
Definition: SpecialPixel.h:156
QDomDocument * m_domDoc
XML label.
Definition: ProcessExportPds4.h:129
~ProcessExportPds4()
Destructor.
Definition: ProcessExportPds4.cpp:71
void standardInstrument()
This method translates the information from the ISIS Instrument group to the PDS4 labels.
Definition: ProcessExportPds4.cpp:191
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
PvlGroup & group(const int index)
Return the group at the specified index.
Definition: PvlObject.cpp:452
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
QString PDS4PixelType(PixelType pixelType, ByteOrder endianType)
Helper function for converting ISIS pixel type and byte order to a PDS4 data_type value.
Definition: ProcessExportPds4.cpp:1359
void translateBandBinSpectrumBinSet(Pvl &inputLabel)
Export BandBin group for non-uniformly spaced 3D Spectral data format.
Definition: ProcessExportPds4.cpp:726
A single keyword-value pair.
Definition: PvlKeyword.h:82
const unsigned short LOW_INSTR_SATU2
Definition: SpecialPixel.h:165
QString m_versionId
QString with specified version id.
Definition: ProcessExportPds4.h:132
const unsigned short HIGH_REPR_SATU2
Definition: SpecialPixel.h:167
const float LOW_REPR_SAT4
Definition: SpecialPixel.h:137
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
ImageType
Definition: ProcessExportPds4.h:80
const float LOW_INSTR_SAT4
Definition: SpecialPixel.h:140
File name manipulation and expansion.
Definition: FileName.h:100
void addSchema(QString sch, QString xsd, QString xmlns, QString xmlnsURI)
Adds necessary information to the xml header for a pds4 class.
Definition: ProcessExportPds4.cpp:1044
QDomDocument & StandardPds4Label()
Create a standard PDS4 image label from the input cube.
Definition: ProcessExportPds4.cpp:82
int groups() const
Returns the number of groups contained.
Definition: PvlObject.h:75
QDomDocument & SpectralPds4Label()
void setSchemaLocation(QString schema)
Allows mission specific programs to use specified versions of dictionaries.
Definition: ProcessExportPds4.cpp:453
virtual void StartProcess(void funct(Isis::Buffer &in))
This method invokes the process operation over a single input cube.
Definition: ProcessExport.cpp:790
@ UnsignedWord
Definition: PixelType.h:31
void translateBandBinImage(Pvl &inputLabel)
Export BandBin group for 2D or 3D Image format.
Definition: ProcessExportPds4.cpp:572
virtual QString Name() const =0
This method returns the name of the map projection.
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Container for cube-like labels.
Definition: Pvl.h:119
void translateBandBinSpectrumUniform(Pvl &inputLabel)
Export BandBin group for uniformly spaced 3D Spectral data format.
Definition: ProcessExportPds4.cpp:584
const unsigned char NULL1
Definition: SpecialPixel.h:182
int objects() const
Returns the number of objects.
Definition: PvlObject.h:219
void StandardAllMapping()
Create the standard keywords for the IMAGE_MAP_PROJECTION group in a PDS label.
Definition: ProcessExportPds4.cpp:1164
@ SignedWord
Definition: PixelType.h:32
const unsigned char LOW_INSTR_SAT1
Definition: SpecialPixel.h:184
const unsigned short LOW_REPR_SATU2
Definition: SpecialPixel.h:164
PvlObject & object(const int index)
Return the object at the specified index.
Definition: PvlObject.cpp:489
void OutputLabel(std::ofstream &os)
Write the XML label to the supplied stream.
Definition: ProcessExportPds4.cpp:1066
void reorder()
This method reorders the existing m_domDoc to follow PDS4 standards and fixes time formatting if need...
Definition: ProcessExportPds4.cpp:284
void standardBandBin()
Export bandbin group to sp:Spectral Characteristics.
Definition: ProcessExportPds4.cpp:540
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
ByteOrder
Tests the current architecture for byte order.
Definition: Endian.h:42
Process class for exporting cubes to PDS4 standards.
Definition: ProcessExportPds4.h:74
@ UniformlySampledSpectrum
Definition: ProcessExportPds4.h:83
void addHistory(QString description, QString date="tbd", QString version="1.0")
Add a modification history instance by adding a Modification_Detail entry to the Modification_History...
Definition: ProcessExportPds4.cpp:1399
QString baseName() const
Returns the name of the file without the path and without extensions.
Definition: FileName.cpp:145
const unsigned char LOW_REPR_SAT1
Definition: SpecialPixel.h:183
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
QString m_lid
QString with specified logical identifier.
Definition: ProcessExportPds4.h:131
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void read(const QString &file)
Loads PVL information from a stream.
Definition: Pvl.cpp:90
QString m_pixelDescription
Description of pixel values.
Definition: ProcessExportPds4.h:135
@ StandardImage
Definition: ProcessExportPds4.h:81
const float HIGH_REPR_SAT4
Definition: SpecialPixel.h:146
void setLogicalId(QString lid)
Allows mission specific programs to set logical_identifier required for PDS4 labels.
Definition: ProcessExportPds4.cpp:407
static void translateChildUnits(QDomElement parent, QMap< QString, QString > transMap)
Recursive method that will translate the "unit" attribute of any child elements of a given element.
Definition: ProcessExportPds4.cpp:1545
virtual void StartProcess(void funct(Isis::Buffer &in))
This method invokes the process operation over a single input cube.
Definition: ProcessExport.cpp:790
void setTitle(QString title)
Allows mission specific programs to set the title required for PDS4 labels.
Definition: ProcessExportPds4.cpp:440
const unsigned char HIGH_INSTR_SAT1
Definition: SpecialPixel.h:185
Allows applications to translate simple text files.
Definition: PvlToXmlTranslationManager.h:51
const short HIGH_REPR_SAT2
Definition: SpecialPixel.h:158
void setImageType(ImageType imageType)
Create a standard PDS4 image label from the input cube.
Definition: ProcessExportPds4.cpp:94
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
@ BinSetSpectrum
Definition: ProcessExportPds4.h:82
const short HIGH_INSTR_SAT2
Definition: SpecialPixel.h:157
QString m_title
QString with specified title.
Definition: ProcessExportPds4.h:133
@ Msb
Definition: Endian.h:45
const float HIGH_INSTR_SAT4
Definition: SpecialPixel.h:143
const short NULL2
Definition: SpecialPixel.h:154
void CreateImageLabel()
Creates a PDS4 label.
Definition: ProcessExportPds4.cpp:108
QString name() const
Returns the container name.
Definition: PvlContainer.h:63
Isis exception class.
Definition: IException.h:91
const unsigned short NULLU2
Definition: SpecialPixel.h:163
bool hasObject(const QString &name) const
Returns a boolean value based on whether the object exists in the current PvlObject or not.
Definition: PvlObject.h:323
void setVersionId(QString versionId)
Allows mission specific programs to set version_id required for PDS4 labels.
Definition: ProcessExportPds4.cpp:425
QString extension() const
Returns the last extension of the file name.
Definition: FileName.cpp:178
PixelType
Enumerations for Isis Pixel Types.
Definition: PixelType.h:27
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
Namespace for the standard library.
static QMap< QString, QString > createUnitMap(Pvl configPvl)
Helper function for creating the unit translation map from a PVL object.
Definition: ProcessExportPds4.cpp:1505
const float NULL4
Definition: SpecialPixel.h:134
QString m_schemaLocation
QString with all schema locations required.
Definition: ProcessExportPds4.h:130
void setPixelDescription(QString description)
Sets the description string which describes the pixel vales in File_Area_Observational.
Definition: ProcessExportPds4.cpp:793
const unsigned short HIGH_INSTR_SATU2
Definition: SpecialPixel.h:166
ProcessExportPds4()
Default Constructor - Set to default the data members.
Definition: ProcessExportPds4.cpp:35
int size() const
Returns the number of values stored in this keyword.
Definition: PvlKeyword.h:125
QString unit(const int index=0) const
Returns the units of measurement of the element of the array of values for the object at the specifie...
Definition: PvlKeyword.cpp:357
void fileAreaObservational()
Create and internalize an image output label from the input image.
Definition: ProcessExportPds4.cpp:802
QDomDocument & GetLabel()
Return the internalized PDS4 label.
Definition: ProcessExportPds4.cpp:1089
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
void Auto(QDomDocument &outputLabel)
Automatically translate all the output names found in the translation table.
Definition: PvlToXmlTranslationManager.cpp:221
const unsigned char HIGH_REPR_SAT1
Definition: SpecialPixel.h:186
void StandardImageImage()
@ Lsb
Definition: Endian.h:44
Base class for Map Projections.
Definition: Projection.h:155
@ UnsignedByte
Definition: PixelType.h:29
ImageType m_imageType
Type of image data to be written.
Definition: ProcessExportPds4.h:134
QDomElement getElement(QStringList xmlPath, QDomElement parent=QDomElement())
Convenience method to get an element given a path and its parent.
Definition: ProcessExportPds4.cpp:1327
const short LOW_REPR_SAT2
Definition: SpecialPixel.h:155
void identificationArea()
This method writes the identification information to the PDS4 labels.
Definition: ProcessExportPds4.cpp:462
Process class for exporting cubes.
Definition: ProcessExport.h:111
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
void displaySettings()
This method writes the display direction information to the PDS4 labels.
Definition: ProcessExportPds4.cpp:521
@ Real
Definition: PixelType.h:35
@ None
Definition: PixelType.h:28
void WritePds4(QString outFile)
This method write out the labels and image data to the specified output file.
Definition: ProcessExportPds4.cpp:1110