1 #ifndef ProcessExportPds4_h 2 #define ProcessExportPds4_h 25 #include <QDomDocument> 95 UniformlySampledSpectrum
99 QDomDocument &SpectralPds4Label();
103 void StandardImageImage();
115 void addHistory(QString description, QString date =
"tbd", QString version =
"1.0");
123 QString transMapFile =
"$base/translations/pds4ExportUnits.pvl");
125 void addSchema(QString sch, QString xsd, QString xmlns, QString xmlnsURI);
126 void addSchema(QString xsd, QString xmlns, QString xmlnsURI);
void WritePds4(QString outFile)
This method write out the labels and image data to the specified output file.
void displaySettings()
This method writes the display direction information to the PDS4 labels.
void translateBandBinSpectrumBinSet(Pvl &inputLabel)
Export BandBin group for non-uniformly spaced 3D Spectral data format.
Process class for exporting cubes to PDS4 standards.
QDomDocument * m_domDoc
XML label.
~ProcessExportPds4()
Destructor.
QString m_versionId
QString with specified version id.
static void translateUnits(QDomDocument &label, QString transMapFile="$base/translations/pds4ExportUnits.pvl")
This function will go through an XML document and attempt to convert all "units" attributes to the ap...
Process class for exporting cubes.
QString PDS4PixelType(PixelType pixelType, ByteOrder endianType)
Helper function for converting ISIS pixel type and byte order to a PDS4 data_type value...
QDomDocument & StandardPds4Label()
Create a standard PDS4 image label from the input cube.
void translateBandBinImage(Pvl &inputLabel)
Export BandBin group for 2D or 3D Image format.
void addSchema(QString sch, QString xsd, QString xmlns, QString xmlnsURI)
Adds necessary information to the xml header for a pds4 class.
void translateBandBinSpectrumUniform(Pvl &inputLabel)
Export BandBin group for uniformly spaced 3D Spectral data format.
ByteOrder
Tests the current architecture for byte order.
void StandardAllMapping()
Create the standard keywords for the IMAGE_MAP_PROJECTION group in a PDS label.
void setSchemaLocation(QString schema)
Allows mission specific programs to use specified versions of dictionaries.
void OutputLabel(std::ofstream &os)
Write the XML label to the supplied stream.
void standardBandBin()
Export bandbin group to sp:Spectral Characteristics.
void reorder()
This method reorders the existing m_domDoc to follow PDS4 standards and fixes time formatting if need...
PixelType
Enumerations for Isis Pixel Types.
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...
void setLogicalId(QString lid)
Allows mission specific programs to set logical_identifier required for PDS4 labels.
void setTitle(QString title)
Allows mission specific programs to set the title required for PDS4 labels.
QString m_lid
QString with specified logical identifier.
void setImageType(ImageType imageType)
Create a standard PDS4 image label from the input cube.
QString m_pixelDescription
Description of pixel values.
QString m_title
QString with specified title.
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...
virtual void StartProcess(void funct(Isis::Buffer &in))
This method invokes the process operation over a single input cube.
Container for cube-like labels.
void CreateImageLabel()
Creates a PDS4 label.
ProcessExportPds4()
Default Constructor - Set to default the data members.
void setVersionId(QString versionId)
Allows mission specific programs to set version_id required for PDS4 labels.
Namespace for ISIS/Bullet specific routines.
static QMap< QString, QString > createUnitMap(Pvl configPvl)
Helper function for creating the unit translation map from a PVL object.
QString m_schemaLocation
QString with all schema locations required.
void setPixelDescription(QString description)
Sets the description string which describes the pixel vales in File_Area_Observational.
QDomElement getElement(QStringList xmlPath, QDomElement parent=QDomElement())
Convenience method to get an element given a path and its parent.
ImageType m_imageType
Type of image data to be written.
void identificationArea()
This method writes the identification information to the PDS4 labels.
QDomDocument & GetLabel()
Return the internalized PDS4 label.
void fileAreaObservational()
Create and internalize an image output label from the input image.
void StartProcess(std::ofstream &fout)
This method fills the image data of the PDS4 file using the parent class ProcessExport::StartProcess...
void standardInstrument()
This method translates the information from the ISIS Instrument group to the PDS4 labels...