USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::ProcessExportPds Class Reference

Process class for exporting cubes to PDS standards. More...

#include <ProcessExportPds.h>

Inheritance diagram for Isis::ProcessExportPds:
Inheritance graph
Collaboration diagram for Isis::ProcessExportPds:
Collaboration graph

Public Types

enum  PdsFileType { Image, Qube, SpectralQube, JP2Image }
 File type to be exported. More...
 
enum  PdsResolution { Meter, Kilometer }
 Resolution units per pixel of the exported PDS file. More...
 
enum  PdsExportType { Stream, Fixed }
 Record format type of exported PDS file. More...
 
enum  ExportFormat { BSQ, BIL, BIP, JP2 }
 Storage order enumeration. More...
 

Public Member Functions

 ProcessExportPds ()
 Default Constructor - Set to default the data members.
 
 ~ProcessExportPds ()
 Destructor.
 
void StandardAllMapping (Pvl &mainPvl)
 Create the standard keywords for the IMAGE_MAP_PROJECTION group in a PDS label.
 
void StreamImageRoot (Pvl &mainPvl)
 Create the standard keywords for the ROOT object in a PDS IMAGE file.
 
void FixedImageRoot (Pvl &mainPvl)
 Create the fixed keywords for the ROOT object in a PDS IMAGE file.
 
void StreamJP2ImageRoot (Pvl &mainPvl)
 Create the standard keywords for the ROOT object in a PDS JP2 IMAGE file.
 
void FixedJP2ImageRoot (Pvl &mainPvl)
 Create the fixed keywords for the ROOT object in a PDS JP2 IMAGE file.
 
void StandardImageImage (Pvl &mainPvl)
 Create the standard keywords for an IMAGE object in a PDS IMAGE file.
 
void StandardJP2Image (Pvl &mainPvl)
 Create the standard keywords for an IMAGE object in a PDS JP2 IMAGE file.
 
void SetPdsResolution (PdsResolution resolutionUnits)
 Mutator method to set the output PDS image resolution to meters per pixel or kilometers per pixel.
 
void SetExportType (PdsExportType recordFormat)
 Mutator method to set the output PDS image record type to stream or fixed.
 
virtual PvlStandardPdsLabel (ProcessExportPds::PdsFileType type)
 Create a standard PDS label of the type specified.
 
void OutputLabel (std::ofstream &pdsFileStream)
 Write the PDS label to the supplied stream.
 
void OutputDetachedLabel ()
 Write the PDS label to the a detached file.
 
void ExportTable (Isis::Table isisTable, QString detachedPdsTableFileName="")
 This method will add a table to be exported to PDS.
 
void StartProcess (std::ofstream &fout)
 This method fills the image data of the PDS file using the parent class ProcessExport::StartProcess, then appends any attached tables.
 
bool Detached ()
 Accessor function returns true if the output PDS file is set to detached.
 
bool Attached ()
 Accessor function returns true if the output PDS file is set to attached.
 
void SetDetached (QString detachedLabelFile)
 Mutator method to set the output PDS file to detached.
 
void SetAttached ()
 Mutator method to set the output PDS file to attached.
 
void ForceBands (bool force)
 Mutator method to set how the the BANDS keyword will be handled.
 
void ForceBandName (bool force)
 Mutator method to set how the BAND_NAME keyword will be handled.
 
void ForceCenterFilterWavelength (bool force)
 Mutator method to set how the CENTER_FILTER_WAVELENGTH keyword will be handled.
 
void ForceBandwidth (bool force)
 Mutator method to set how the BANDWIDTH keyword will be handled.
 
void ForceBandStorageType (bool force)
 Mutator method to set how the BAND_STORAGE_TYPE keyword will be handled.
 
void ForceOffset (bool force)
 Mutator method to set how the OFFSET keyword will be handled.
 
void ForceScalingFactor (bool force)
 Mutator method to set how the SCALING_FACTOR keyword will be handled.
 
void ForceSampleBits (bool force)
 Mutator method to set how the SAMPLE_BITS keyword will be handled.
 
void ForceSampleBitMask (bool force)
 Mutator method to set how the SAMPLE_BIT_MASK keyword will be handled.
 
void ForceSampleType (bool force)
 Mutator method to set how the SAMPLE_TYPE keyword will be handled.
 
void ForceCoreNull (bool force)
 Mutator method to set how the CORE_NULL keyword will be handled.
 
void ForceCoreLrs (bool force)
 Mutator method to set how the CORE_LOW_REPR_SATURATION keyword will be handled.
 
void ForceCoreLis (bool force)
 Mutator method to set how the CORE_LOW_INSTR_SATURATION keyword will be handled.
 
void ForceCoreHrs (bool force)
 Mutator method to set how the CORE_HIGH_REPR_SATURATION keyword will be handled.
 
void ForceCoreHis (bool force)
 Mutator method to set how the CORE_HIGH_INSTR_SATURATION keyword will be handled.
 
virtual void StartProcess (void funct(Isis::Buffer &in))
 This method invokes the process operation over a single input cube.
 
virtual void StartProcess (void funct(std::vector< Isis::Buffer * > &in))
 
virtual void StartProcess (void funct())
 In the base class, this method will invoked a user-specified function exactly one time.
 
void SetOutputRange (const double minimum, const double maximum)
 Set output pixel range in Buffer.
 
void SetOutputNull (const double value)
 Set output special pixel value for NULL.
 
void SetOutputLis (const double value)
 Set output special pixel value for LIS.
 
void SetOutputLrs (const double value)
 Set output special pixel value for LRS.
 
void SetOutputHis (const double value)
 Set output special pixel value for HIS.
 
void SetOutputHrs (const double value)
 Set output special pixel value for HRS.
 
double OutputNull ()
 Return the output special pixel value for NULL.
 
double OutputLis ()
 Return the output special pixel value for LIS.
 
double OutputLrs ()
 Return the output special pixel value for LRS.
 
double OutputHis ()
 Return the output special pixel value for HIS.
 
double OutputHrs ()
 Return the output special pixel value for HRS.
 
bool HasInputRange () const
 
void SetInputRange ()
 Set input pixel range from user.
 
void SetInputRange (const double minimum, const double maximum)
 Set input pixel range from to a linear stretch.
 
void SetInputRange (const double minimum, const double maximum, const int index)
 Set input pixel range from to a linear stretch.
 
void SetInputRange (const double minimum, const double middle, const double maximum)
 Set input pixel range from to a piecewise linear stretch.
 
void SetInputRange (const double minimum, const double middle, const double maximum, const int index)
 Set input pixel range from to a piecewise linear stretch.
 
void CreateWorldFile (const QString &worldFile)
 Create a standard world file for the input cube.
 
void SetOutputEndian (enum ByteOrder endianness)
 Set byte endianness of the output cube.
 
void SetOutputType (Isis::PixelType pixelIn)
 Set output pixel bit type in Buffer.
 
double GetInputMinimum (unsigned int n=0) const
 Get the valid minimum pixel value for the Nth input cube.
 
double GetInputMaximum (unsigned int n=0) const
 Get the valid maximum pixel value for the Nth input cube.
 
double GetOutputMinimum ()
 Get the valid minimum pixel value to be written to the output file.
 
double GetOutputMaximum ()
 Get the valid maximum pixel value to be written to the output file.
 
void setFormat (ExportFormat format)
 Sets the storage order of the output file.
 
template<typename Functor >
void ProcessCubes (const Functor &functor)
 
virtual void EndProcess ()
 End the processing sequence and cleans up by closing cubes, freeing memory, etc.
 
virtual void Finalize ()
 Cleans up by closing cubes and freeing memory for owned cubes.
 
virtual Isis::CubeSetInputCube (const QString &parameter, const int requirements=0)
 Opens an input cube specified by the user and verifies requirements are met.
 
virtual Isis::CubeSetInputCube (const QString &fname, const Isis::CubeAttributeInput &att, int requirements=0)
 Opens an input cube specified by the programmer and verifies requirements are met.
 
virtual void SetInputCube (Isis::Cube *inCube)
 Set the InputCube vector to an opened Cube which was dynamically allocated.
 
virtual Isis::CubeSetOutputCube (const QString &parameter)
 Allocates a user-specified output cube whose size matches the first input cube.
 
virtual Isis::CubeSetOutputCube (const QString &parameter, const int nsamps, const int nlines, const int nbands=1)
 Allocates a user specified output cube whose size is specified by the programmer.
 
virtual Isis::CubeSetOutputCube (const QString &fname, const Isis::CubeAttributeOutput &att, const int nsamps, const int nlines, const int nbands=1)
 Allocates a output cube whose name and size is specified by the programmer.
 
void AddInputCube (Cube *cube, bool owned=true)
 
void AddOutputCube (Cube *cube, bool owned=true)
 
void ClearCubes ()
 Close owned cubes from the list and clear the list.
 
void ClearInputCubes ()
 Close owned input cubes from the list and clear the list.
 
void ClearOutputCubes ()
 Close owned output cubes from the list and clear the list.
 
void PropagateLabels (const bool prop)
 This method allows the programmer to turn on/off the propagation of labels from the 1st input cube to any of the output cubes.
 
void PropagateLabels (const QString &cube)
 This method allows the programmer to propagate labels from a specific secondary cube.
 
void PropagateTables (const bool prop)
 This method allows the programmer to propagate input tables to the output cube (default is true)
 
void PropagateTables (const QString &fromName)
 Propagate the tables from the cube with the given filename to the output cube.
 
void PropagatePolygons (const bool prop)
 This method allows the programmer to propagate input blobs to the output cube (default is true)
 
void PropagateHistory (const bool prop)
 This method allows the programmer to propagate history to the output cube (default is true)
 
void PropagateOriginalLabel (const bool prop)
 This method allows the programmer to propagate original labels to the output cube (default is true)
 
Isis::ProgressProgress ()
 This method returns a pointer to a Progress object.
 
QString MissionData (const QString &mission, const QString &file, bool highestVersion=false)
 This method reads the mission specific data directory from the user preference file, makes sure that mission is available in the Isis installation, and the attaches the provided input file to the directory in order to create a full file specification.
 
void WriteHistory (Cube &cube)
 Writes out the History blob to the cube.
 
void CalculateStatistics ()
 Calculates and stores off statistics on every band of every cube added to this process via the SetInputCube method.
 
std::vector< Isis::Statistics * > BandStatistics (const unsigned index)
 Get the vector of Statistics objects for each band separately of a specified input cube.
 
Isis::StatisticsCubeStatistics (const unsigned index)
 Get the Statistics object for all bands of a specified input cube.
 

Protected Member Functions

int LineBytes ()
 Return the line bytes (record size) for the input cube, at present this is based on the number of samples and the bytes per pixel.
 
int LabelSize ()
 Return the size of the output PDS label.
 
virtual void CreateImageLabel ()
 Create a standard PDS label for type IMAGE.
 
void CreateQubeLabel ()
 Create a standard PDS label for type QUBE.
 
void CreateSpectralQubeLabel ()
 Create a standard PDS label for type SPECTRAL_QUBE.
 
QString ProjectionName (Pvl &inputLabel)
 Return a projection name.
 
std::vector< BufferManager * > GetBuffers ()
 
std::vector< BufferManager * > GetBuffersBSQ ()
 A single line of input data from each input cube will be passed to the line processing function.
 
std::vector< BufferManager * > GetBuffersBIL ()
 A single line of input data from each input cube will be passed to the line processing function.
 
std::vector< BufferManager * > GetBuffersBIP ()
 A single band of input data from each input cube will be passed to the band processing function.
 

Protected Attributes

PvlFormatPdsm_formatter
 
 Used to determine how to format the 

keyword values in the PDS file.

 
Pvlm_label
 Exported PDS label.
 
PdsExportType m_exportType
 Stream or Fixed.
 
ExportFormat p_format
 Current storage order.
 
double p_outputMinimum
 Desired minimum pixel value in the Buffer.
 
double p_outputMiddle
 
  Middle pixel value (minimum+maximun)/2.0 in

the Buffer

 
double p_outputMaximum
 Desired maximum pixel value in the Buffer.
 
std::vector< double > p_inputMinimum
 Minimum pixel value in the input cube to be mapped to the minimum value in the Buffer.
 
std::vector< double > p_inputMiddle
 Middle pixel value in the input cube to be mapped to the (minimum+maximum)/2.0 value in the Buffer.
 
std::vector< double > p_inputMaximum
 Maximum pixel value in the input cube to be mapped to the maximum value in the Buffer.
 
EndianSwapperp_endianSwap
 
Object to swap the endianness of the

raw output to either MSB or LSB

 
ByteOrder p_endianType
 The byte order of the output file.
 
PixelType p_pixelType
 The bits per pixel of the output image.
 
std::vector< Stretch * > p_str
 Stretch object to ensure a reasonable range of pixel values in the output data.
 
double p_Null
 The output value for pixels whose input DNs are Null values.
 
double p_Lis
 
  The output value for pixels whose input DNs are 

Low Instrument Saturation values.

 
double p_Lrs
 
  The output value for pixels whose input DNs are 

Low Representation Saturation values.

 
double p_His
 
  The output value for pixels whose input DNs are 

High Instrument Saturation values.

 
double p_Hrs
 
  The output value for pixels whose input DNs are 

High Representation Saturation values.

 
bool p_Null_Set
 
 Indicates whether p_Null has been set 

(i.e.

 
bool p_Lis_Set
 
  Indicates whether p_Lis has been set 

(i.e.

 
bool p_Lrs_Set
 
  Indicates whether p_Lrs has been set 

(i.e.

 
bool p_His_Set
 
  Indicates whether p_His has been set 

(i.e.

 
bool p_Hrs_Set
 
  Indicates whether p_Hrs has been set 

(i.e.

 
Isis::Progressp_progress
 Pointer to a Progress object.
 
bool p_propagateLabels
 Flag indicating if labels are be propagated to output cubes.
 
bool p_propagateTables
 Flag indicating if tables are be propagated to output cubes.
 
bool p_propagatePolygons
 Flag indicating if blobs are be propagated to output cubes.
 
bool p_propagateHistory
 Flag indicating if history is to be propagated to output cubes.
 
bool p_propagateOriginalLabel
 Flag indicating if original lable is to be propagated to output cubes.
 
std::vector< std::vector
< Isis::Statistics * > > 
p_bandStats
 Holds the calculated statistics for each band separately of every input cubei after the CalculateStatistics method is called.
 
std::vector< Isis::Statistics * > p_cubeStats
 Holds the calculated statistics for every band together of every input cubei after the CalculateStatistics method is called.
 
std::vector< Isis::Cube * > InputCubes
 A vector of pointers to opened Cube objects.
 
std::vector< Isis::Cube * > OutputCubes
 A vector of pointers to allocated Cube objects.
 
QSet< Isis::Cube * > * m_ownedCubes
 A list of cubes owned by this instant.
 

Private Attributes

PdsResolution m_exportResolution
 Meters or kilometers.
 
bool m_forceBands
 
             Indicates whether to keep the 

BANDS keyword in the PDS labels.

 
bool m_forceBandName
 
          Indicates whether to keep the 

BAND_NAME keyword in the PDS labels.

 
bool m_forceCenterFilterWavelength
 
      Indicates whether to keep the

CENTER_FILTER_WAVELENGTH keyword in the PDS labels.

 
bool m_forceBandwidth
 
         Indicates whether to keep the

BANDWIDTH keyword in the PDS labels.

 
bool m_forceBandStorageType
 
   Indicates whether to add the

BAND_STORAGE_TYPE keyword in the PDS labels.

 
bool m_forceOffset
 
            Indicates whether to add the

OFFSET keyword in the PDS labels.

 
bool m_forceScalingFactor
 
     Indicates whether to add the

SCALING_FACTOR keyword in the PDS labels.

 
bool m_forceSampleBits
 
        Indicates whether to add the

SAMPLE_BITS keyword in the PDS labels.

 
bool m_forceSampleBitMask
 
     Indicates whether to add the

SAMPLE_BIT_MASK keyword in the PDS labels.

 
bool m_forceSampleType
 
        Indicates whether to add the

SAMPLE_TYPE keyword in the PDS labels.

 
bool m_forceCoreNull
 
          Indicates whether to add the

CORE_NULL keyword in the PDS labels.

 
bool m_forceCoreLrs
 
           Indicates whether to add the

CORE_LOW_REPR_SATURATION keyword in the PDS labels.

 
bool m_forceCoreLis
 
           Indicates whether to add the

CORE_LOW_INSTR_SATURATION keyword in the PDS labels.

 
bool m_forceCoreHrs
 
           Indicates whether to add the

CORE_HIGH_REPR_SATURATION keyword in the PDS labels.

 
bool m_forceCoreHis
 
           Indicates whether to add the

CORE_HIGH_INSTR_SATURATION keyword in the PDS labels.

 
bool m_detachedLabel
 
          Indicates whether the PDS file

will be detached.

 
QString m_detachedPdsLabelFile
 
The name of the detached PDS label

file.

 
PdsFileType m_pdsFileType
 
     Image, Qube, Spectral Qube, or 

JP2 Image

 
std::vector< int > m_tableStartRecord
 Record number where the added table data begins.
 
std::vector< int > m_tableRecords
 Number of records in each added table.
 
std::vector< char * > m_tableBuffers
 Vector containing the binary table data for each of the added tables.
 

Detailed Description

Process class for exporting cubes to PDS standards.

This class extends the ProcessExport class to allow the user to export cubes to PDS format.

Tables from the cube may also be exported. These exported PDS tables may be attached or detached. This should correspond to whether the labels of the exported PDS file are attached or detached. NOTE: If attached, the labels of the table should not be altered in the export program unless functionality is added to deal with the new start byte values for the tables.

Author
2006-09-05 Stuart Sides
History:

2006-09-05 Stuart Sides - Original version

2006-12-14 Stuart Sides - Modified keword units to be PDS compliant

2008-05-20 Steven Lambright - Fixed documentation

2008-08-07 Christopher Austin - Added fixed label export capability

2008-10-02 Christopher Austin - Fixed LabelSize() and OutputLabel() in accordace to the pds end of line sequence requirement

2008-12-17 Steven Lambright - Added calculations for OFFSET and SCALEFACTOR keywords

2009-05-31 Kris Becker - Included the number of bands in the computation of the number of FILE_RECORDS for fixed PDS type products. It assumed only 1 band.

2010-02-24 Janet Barrett - Added code to support JPEG2000.

2010-07-21 Sharmila Prasad - Fixed error while converting resolution from Meters to Kilometers

2012-04-06 Kris Becker - Correct label padding whereby spaces are used as the fill character instead of '\0'. This makes it compliant with PDS specifications.

2012-11-21 Jeannie Backer - Added functionality to allow export of Isis3 Table objects to binary PDS tables. The PDS tables may be attached or detached. If attached, the labels of the table should not be altered in the export program unless functionality is added to deal with the new start byte values. References #678.

2014-06-06 Kristin Berry - Added default units to assume if there are no units on certain values in the input Isis cube. Unlabeled radii are assumed to be in meters; map scales to be in meters/pixel, and map resolutions to be in pixels/degree.

Definition at line 81 of file ProcessExportPds.h.

Member Enumeration Documentation

Storage order enumeration.

Enumerator
BSQ 

Band sequential.

BIL 

Band interleaved by line.

BIP 

Band interleaved by pixel.

JP2 

Compressed JPEG2000.

Definition at line 121 of file ProcessExport.h.

Record format type of exported PDS file.

See Also
http://pds.nasa.gov/documents/sr/Chapter15.pdf
Enumerator
Stream 

Stream Records. This type is generally used for ASCII files.

Fixed 

Fixed length records.

PDS recommends that FIXED_LENGTH records are used whenever possible.

Definition at line 113 of file ProcessExportPds.h.

File type to be exported.

See Also
http://pds.nasa.gov/documents/sr/AppendixA.pdf
Enumerator
Image 

Two dimensional array of line/sample values.

These files generallly have the extension *.img or *.imq

Qube 

Multi-dimensional array (1-3 dimensional) whose axes may be interpreted as line/sample/band.

These files generally have the extension *.qub

SpectralQube 

Three dimensional objects with two spatial dimensions and one spectral dimension.

These files generally have the extension *.qub

JP2Image 

Image coding system JPEG 2000 formatted image.

These files generally have the extension *.jp2

Definition at line 87 of file ProcessExportPds.h.

Resolution units per pixel of the exported PDS file.

Enumerator
Meter 

Meters per pixel.

Kilometer 

Kilometers per pixel.

Definition at line 103 of file ProcessExportPds.h.

Constructor & Destructor Documentation

Isis::ProcessExportPds::ProcessExportPds ( )

Default Constructor - Set to default the data members.

Definition at line 48 of file ProcessExportPds.cpp.

Isis::ProcessExportPds::~ProcessExportPds ( )

Destructor.

Definition at line 80 of file ProcessExportPds.cpp.

Member Function Documentation

bool Isis::ProcessExportPds::Attached ( )

Accessor function returns true if the output PDS file is set to attached.

Returns
bool Indicates whether the PDS file is attached.

Definition at line 1081 of file ProcessExportPds.cpp.

std::vector<Isis::Statistics *> Isis::Process::BandStatistics ( const unsigned  index)
inlineinherited

Get the vector of Statistics objects for each band separately of a specified input cube.

Parameters
indexThe index of the input cube in InputCubes
Returns
vector<Statistics*> A list of statistics ordered by band

Definition at line 283 of file Process.h.

References Isis::Process::p_bandStats.

void Isis::Process::CalculateStatistics ( )
inherited

Calculates and stores off statistics on every band of every cube added to this process via the SetInputCube method.

The newly calculated statistics are stored in two ways: as a vector where each entry is a single Statistics object for every band of a particular input cube, and as a vector where each entry is a vector of Statistics objects, for each band separately, of a particular input cube.

Definition at line 721 of file Process.cpp.

References Isis::Statistics::AddData(), Isis::Cube::bandCount(), Isis::Progress::CheckStatus(), Isis::Buffer::DoubleBuffer(), Isis::Cube::lineCount(), Isis::Cube::read(), Isis::LineManager::SetLine(), Isis::Progress::SetMaximumSteps(), Isis::Progress::SetText(), Isis::Buffer::size(), and Isis::toString().

void Isis::Process::ClearCubes ( )
inherited

Close owned cubes from the list and clear the list.

Definition at line 506 of file Process.cpp.

void Isis::Process::ClearInputCubes ( )
inherited

Close owned input cubes from the list and clear the list.

Definition at line 516 of file Process.cpp.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube(), Isis::FileTool::saveAsReducedCube(), and Isis::ProcessMapMosaic::SetOutputCube().

void Isis::Process::ClearOutputCubes ( )
inherited

Close owned output cubes from the list and clear the list.

Definition at line 530 of file Process.cpp.

void Isis::ProcessExportPds::CreateImageLabel ( )
protectedvirtual

Create a standard PDS label for type IMAGE.

Definition at line 131 of file ProcessExportPds.cpp.

References _FILEINFO_.

void Isis::ProcessExportPds::CreateQubeLabel ( )
protected

Create a standard PDS label for type QUBE.

Definition at line 173 of file ProcessExportPds.cpp.

References Isis::PvlObject::findObject(), and Isis::PvlObject::hasObject().

void Isis::ProcessExportPds::CreateSpectralQubeLabel ( )
protected

Create a standard PDS label for type SPECTRAL_QUBE.

Definition at line 194 of file ProcessExportPds.cpp.

References Isis::PvlObject::findObject(), and Isis::PvlObject::hasObject().

void Isis::ProcessExport::CreateWorldFile ( const QString &  worldFile)
inherited

Create a standard world file for the input cube.

This method creates a standard world file from the mapping group of the input cube.

Parameters
worldFile[in] Reference to a string containing the name of a file to write the world information to.

Definition at line 1182 of file ProcessExport.cpp.

References Isis::Process::InputCubes, Isis::Projection::Resolution(), Isis::Projection::SetWorld(), Isis::Projection::XCoord(), and Isis::Projection::YCoord().

Referenced by Isis::ImageExporter::createWorldFile().

Isis::Statistics* Isis::Process::CubeStatistics ( const unsigned  index)
inlineinherited

Get the Statistics object for all bands of a specified input cube.

Parameters
indexThe index of the input cube in InputCubes
Returns
Statistics* Collections of statistics gathered on all bands

Definition at line 297 of file Process.h.

References Isis::Process::p_cubeStats.

bool Isis::ProcessExportPds::Detached ( )

Accessor function returns true if the output PDS file is set to detached.

Returns
bool Indicates whether the PDS file is detached.

Definition at line 1072 of file ProcessExportPds.cpp.

void Isis::Process::EndProcess ( )
virtualinherited
void Isis::ProcessExportPds::ExportTable ( Isis::Table  isisTable,
QString  detachedPdsTableFileName = "" 
)

This method will add a table to be exported to PDS.

If the output PDS labels are set to detached, the PDS table will be written to a detached file in this method. If the output PDS product is set to attached, the table will be added to a buffer and written to the PDS file when the StartProcess() method is called. Attached tables are written to the file after the image data.

Warning: If attached tables are exported and the labels of these tables are modified, the start byte value of the labels will need to be updated. There is no existing method (UpdateAttachedTableLabels) to do this in ProcessExportPds. If this functionality is needed, this class will need to be modified accordingly.

Exceptions
IException::Unknown- "The output PDS file has been set to attached and a detached PDS table file name has been given. If detached is preferred, set the process to detached SetDetached() and call StandardPdsLabel() before calling ExportTable()." @throw IException::Unknown - "The output PDS file has been set to detached. A file name for the detached ouput PDS table file is required. If an attached output file is prefered, use the method ProcessExportPds::SetAttached() before calling ExportTable()."
Parameters
isisTableThe Isis3 Table object to be exported to PDS.
detachedPdsTableFileNameThe name of the exported PDS table file, if detached. This value should not include a path. The path from the label file will be used.

Definition at line 986 of file ProcessExportPds.cpp.

References _FILEINFO_, Isis::PvlObject::addObject(), Isis::ExportPdsTable::exportTable(), Isis::ExportPdsTable::formatPdsTableName(), Isis::FileName::path(), Isis::Table::Records(), and Isis::toString().

void Isis::Process::Finalize ( )
virtualinherited

Cleans up by closing cubes and freeing memory for owned cubes.

Clears the lists for all cubes.

Reimplemented in Isis::ProcessImportPds, Isis::ProcessByBrick, Isis::ProcessByBoxcar, Isis::ProcessByTile, Isis::ProcessGroundPolygons, and Isis::ProcessPolygons.

Definition at line 488 of file Process.cpp.

Referenced by Isis::ProcessByBoxcar::Finalize().

void Isis::ProcessExportPds::FixedImageRoot ( Pvl mainPvl)

Create the fixed keywords for the ROOT object in a PDS IMAGE file.

Parameters
mainPvl

Definition at line 303 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::FixedJP2ImageRoot ( Pvl mainPvl)

Create the fixed keywords for the ROOT object in a PDS JP2 IMAGE file.

Parameters
mainPvl

Definition at line 335 of file ProcessExportPds.cpp.

References _FILEINFO_, Isis::PvlObject::addObject(), and Isis::toString().

void Isis::ProcessExportPds::ForceBandName ( bool  force)

Mutator method to set how the BAND_NAME keyword will be handled.

If false and the BAND_NAME keyword exists in the IMAGE object of the PDS labels, the keyword will be removed. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to keep the BAND_NAME keyword in the PDS image labels.

Definition at line 1127 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceBands ( bool  force)

Mutator method to set how the the BANDS keyword will be handled.

If false, the BANDS keyword will be removed from the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to keep the BANDS keyword in the PDS image labels.

Definition at line 1114 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceBandStorageType ( bool  force)

Mutator method to set how the BAND_STORAGE_TYPE keyword will be handled.

If true, the BAND_STORAGE_TYPE keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the BAND_STORAGE_TYPE keyword in the PDS image labels.

Definition at line 1166 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceBandwidth ( bool  force)

Mutator method to set how the BANDWIDTH keyword will be handled.

If false and the BANDWIDTH keyword exists in the IMAGE object of the PDS labels, the keyword will be removed. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to keep the BANDWIDTH keyword in the PDS image labels.

Definition at line 1153 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceCenterFilterWavelength ( bool  force)

Mutator method to set how the CENTER_FILTER_WAVELENGTH keyword will be handled.

If false and the CENTER_FILTER_WAVELENGTH keyword exists in the IMAGE object of the PDS labels, the keyword will be removed. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to keep the CENTER_FILTER_WAVELENGTH keyword in the PDS image labels.

Definition at line 1140 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceCoreHis ( bool  force)

Mutator method to set how the CORE_HIGH_INSTR_SATURATION keyword will be handled.

If true, the CORE_HIGH_INSTR_SATURATION keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the CORE_HIGH_INSTR_SATURATION keyword in the PDS image labels.

Definition at line 1299 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceCoreHrs ( bool  force)

Mutator method to set how the CORE_HIGH_REPR_SATURATION keyword will be handled.

If true, the CORE_HIGH_REPR_SATURATION keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the CORE_HIGH_REPR_SATURATION keyword in the PDS image labels.

Definition at line 1285 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceCoreLis ( bool  force)

Mutator method to set how the CORE_LOW_INSTR_SATURATION keyword will be handled.

If true, the CORE_LOW_INSTR_SATURATION keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the CORE_LOW_INSTR_SATURATION keyword in the PDS image labels.

Definition at line 1271 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceCoreLrs ( bool  force)

Mutator method to set how the CORE_LOW_REPR_SATURATION keyword will be handled.

If true, the CORE_LOW_REPR_SATURATION keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the CORE_LOW_REPR_SATURATION keyword in the PDS image labels.

Definition at line 1257 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceCoreNull ( bool  force)

Mutator method to set how the CORE_NULL keyword will be handled.

If true, the CORE_NULL keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the CORE_NULL keyword in the PDS image labels.

Definition at line 1244 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceOffset ( bool  force)

Mutator method to set how the OFFSET keyword will be handled.

If true, the OFFSET keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the OFFSET keyword in the PDS image labels.

Definition at line 1179 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceSampleBitMask ( bool  force)

Mutator method to set how the SAMPLE_BIT_MASK keyword will be handled.

If true, the SAMPLE_BIT_MASK keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the SAMPLE_BIT_MASK keyword in the PDS image labels.

Definition at line 1218 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceSampleBits ( bool  force)

Mutator method to set how the SAMPLE_BITS keyword will be handled.

If true, the SAMPLE_BITS keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the SAMPLE_BITS keyword in the PDS image labels.

Definition at line 1205 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceSampleType ( bool  force)

Mutator method to set how the SAMPLE_TYPE keyword will be handled.

If true, the SAMPLE_TYPE keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the SAMPLE_TYPE keyword in the PDS image labels.

Definition at line 1231 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::ForceScalingFactor ( bool  force)

Mutator method to set how the SCALING_FACTOR keyword will be handled.

If true, the SCALING_FACTOR keyword will be added to the IMAGE object of the PDS labels. This member variable defaults to true in the ProcessExportPds constructor.

Parameters
forceIndicates whether to force the process to add the SCALING_FACTOR keyword in the PDS image labels.

Definition at line 1192 of file ProcessExportPds.cpp.

vector< BufferManager * > Isis::ProcessExport::GetBuffersBIL ( )
protectedinherited

A single line of input data from each input cube will be passed to the line processing function.

Note the data will be stretched based on the invocations of the SetInputRange and SetOutputRange methods.

Parameters
funct(Isis::Buffer &b) Name of your line processing function. The buffer in will contain stretched input cube pixels for an entire line of each input cube. These pixels must be written to the foreign output file (e.g, jpg, tif, etc).

Definition at line 896 of file ProcessExport.cpp.

References _FILEINFO_, Isis::BufferManager::begin(), Isis::Process::InputCubes, and Isis::IException::Programmer.

vector< BufferManager * > Isis::ProcessExport::GetBuffersBIP ( )
protectedinherited

A single band of input data from each input cube will be passed to the band processing function.

Note the data will be stretched based on the invocations of the SetInputRange and SetOutputRange methods.

Parameters
funct(Isis::Buffer &b) Name of your band processing function. The buffer in will contain stretched input cube pixels for an entire line of each input cube. These pixels must be written to the foreign output file (e.g, jpg, tif, etc).

Definition at line 934 of file ProcessExport.cpp.

References _FILEINFO_, Isis::BufferManager::begin(), Isis::Process::InputCubes, and Isis::IException::Programmer.

vector< BufferManager * > Isis::ProcessExport::GetBuffersBSQ ( )
protectedinherited

A single line of input data from each input cube will be passed to the line processing function.

Note the data will be stretched based on the invocations of the SetInputRange and SetOutputRange methods.

Parameters
funct(Isis::Buffer &b) Name of your line processing function. The buffer in will contain stretched input cube pixels for an entire line of each input cube. These pixels must be written to the foreign output file (e.g, jpg, tif, etc).

Definition at line 857 of file ProcessExport.cpp.

References _FILEINFO_, Isis::BufferManager::begin(), Isis::Process::InputCubes, and Isis::IException::Programmer.

double Isis::ProcessExport::GetInputMaximum ( unsigned int  n = 0) const
inherited

Get the valid maximum pixel value for the Nth input cube.

Definition at line 431 of file ProcessExport.cpp.

References _FILEINFO_, Isis::ProcessExport::p_inputMaximum, and Isis::IException::Programmer.

double Isis::ProcessExport::GetInputMinimum ( unsigned int  n = 0) const
inherited

Get the valid minimum pixel value for the Nth input cube.

Definition at line 420 of file ProcessExport.cpp.

References _FILEINFO_, Isis::ProcessExport::p_inputMinimum, and Isis::IException::Programmer.

double Isis::ProcessExport::GetOutputMaximum ( )
inlineinherited

Get the valid maximum pixel value to be written to the output file.

Definition at line 164 of file ProcessExport.h.

References Isis::ProcessExport::p_outputMaximum.

double Isis::ProcessExport::GetOutputMinimum ( )
inlineinherited

Get the valid minimum pixel value to be written to the output file.

Definition at line 160 of file ProcessExport.h.

References Isis::ProcessExport::p_outputMinimum.

int Isis::ProcessExportPds::LabelSize ( )
protected

Return the size of the output PDS label.

Returns
Number of bytes in the label.

Definition at line 859 of file ProcessExportPds.cpp.

int Isis::ProcessExportPds::LineBytes ( )
protected

Return the line bytes (record size) for the input cube, at present this is based on the number of samples and the bytes per pixel.

Returns
Total number of bytes per line.

Definition at line 846 of file ProcessExportPds.cpp.

References Isis::Cube::sampleCount(), and Isis::SizeOf().

QString Isis::Process::MissionData ( const QString &  mission,
const QString &  file,
bool  highestVersion = false 
)
inherited

This method reads the mission specific data directory from the user preference file, makes sure that mission is available in the Isis installation, and the attaches the provided input file to the directory in order to create a full file specification.

Parameters
missionName of the mission data directory
fileName of the file to attach to the end of the directory
highestVersionIf set to true the method will return the highest version number of the given file. Therefore, file must contain question marks such as "file???.dat". See the FileName class for more information on versioned files. Defaults to false.

Definition at line 666 of file Process.cpp.

References _FILEINFO_, and Isis::PvlObject::findGroup().

void Isis::ProcessExportPds::OutputDetachedLabel ( )

Write the PDS label to the a detached file.

The PDS keywords that have place holder "?" for their values (such as LABEL_RECORDS and ^IMAGE) will be updated to their correct values before they are written.

Definition at line 875 of file ProcessExportPds.cpp.

References _FILEINFO_.

double Isis::ProcessExport::OutputHis ( )
inherited

Return the output special pixel value for HIS.

Definition at line 571 of file ProcessExport.cpp.

References Isis::ProcessExport::p_His, Isis::ProcessExport::p_His_Set, and Isis::ProcessExport::p_outputMaximum.

Referenced by Isis::ProcessExport::InitProcess().

double Isis::ProcessExport::OutputHrs ( )
inherited

Return the output special pixel value for HRS.

Definition at line 579 of file ProcessExport.cpp.

References Isis::ProcessExport::p_Hrs, Isis::ProcessExport::p_Hrs_Set, and Isis::ProcessExport::p_outputMaximum.

Referenced by Isis::ProcessExport::InitProcess().

void Isis::ProcessExportPds::OutputLabel ( std::ofstream &  os)

Write the PDS label to the supplied stream.

The PDS keywords that have place holder "?" for their values (such as LABEL_RECORDS and ^IMAGE) will be updated to their correct values before they are written.

Parameters
Outputfile stream to which the pds label will be written.

Definition at line 894 of file ProcessExportPds.cpp.

References Isis::toString().

double Isis::ProcessExport::OutputLis ( )
inherited

Return the output special pixel value for LIS.

Definition at line 555 of file ProcessExport.cpp.

References Isis::ProcessExport::p_Lis, Isis::ProcessExport::p_Lis_Set, and Isis::ProcessExport::p_outputMinimum.

Referenced by Isis::ProcessExport::InitProcess().

double Isis::ProcessExport::OutputLrs ( )
inherited

Return the output special pixel value for LRS.

Definition at line 563 of file ProcessExport.cpp.

References Isis::ProcessExport::p_Lrs, Isis::ProcessExport::p_Lrs_Set, and Isis::ProcessExport::p_outputMinimum.

Referenced by Isis::ProcessExport::InitProcess().

double Isis::ProcessExport::OutputNull ( )
inherited

Return the output special pixel value for NULL.

Definition at line 547 of file ProcessExport.cpp.

References Isis::ProcessExport::p_Null, Isis::ProcessExport::p_Null_Set, and Isis::ProcessExport::p_outputMinimum.

Referenced by Isis::ProcessExport::InitProcess().

Isis::Progress* Isis::Process::Progress ( )
inlineinherited

This method returns a pointer to a Progress object.

Returns
Progress*

Definition at line 263 of file Process.h.

References Isis::Process::p_progress.

Referenced by Isis::Equalization::calculateStatistics(), Isis::ProcessMapMosaic::RingsSetOutputCube(), and Isis::ProcessMapMosaic::SetOutputCube().

QString Isis::ProcessExportPds::ProjectionName ( Pvl inputLabel)
protected

Return a projection name.

Parameters
inputLabel
Returns
String containing the name of the projection

Definition at line 832 of file ProcessExportPds.cpp.

References Isis::Projection::Name().

void Isis::Process::PropagateHistory ( const bool  prop)
inherited

This method allows the programmer to propagate history to the output cube (default is true)

Parameters
propFlag indicating if history is to be propagated to output cubes.

Definition at line 635 of file Process.cpp.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube(), and Isis::ProcessMapMosaic::SetOutputCube().

void Isis::Process::PropagateLabels ( const bool  prop)
inherited

This method allows the programmer to turn on/off the propagation of labels from the 1st input cube to any of the output cubes.

By default, propagation occurs automatically in the Process class when a call to either of the SetOutputCube methods is invoked. If the program * requires no propagation then utilize this method. This method can be invoked between successive calls of SetOutputCube so that some cube will have labels propagated while others will not.

Parameters
propFlag indicating if labels are be propagated to output cubes.

Definition at line 552 of file Process.cpp.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube(), and Isis::ProcessMapMosaic::SetOutputCube().

void Isis::Process::PropagateLabels ( const QString &  cube)
inherited

This method allows the programmer to propagate labels from a specific secondary cube.

Parameters
cubeIString containing the name of the cube containing the labels to propagate.

Definition at line 563 of file Process.cpp.

References Isis::PvlObject::addGroup(), Isis::PvlObject::addObject(), Isis::PvlObject::findObject(), Isis::PvlObject::group(), Isis::PvlObject::groups(), and Isis::PvlObject::hasObject().

void Isis::Process::PropagateOriginalLabel ( const bool  prop)
inherited

This method allows the programmer to propagate original labels to the output cube (default is true)

Parameters
propFlag indicating if original labels is to be propagated to output cubes.

Definition at line 646 of file Process.cpp.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube(), and Isis::ProcessMapMosaic::SetOutputCube().

void Isis::Process::PropagatePolygons ( const bool  prop)
inherited

This method allows the programmer to propagate input blobs to the output cube (default is true)

Parameters
propFlag indicating if input blobs are to be propagated to output cubes.

Definition at line 625 of file Process.cpp.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube(), and Isis::ProcessMapMosaic::SetOutputCube().

void Isis::Process::PropagateTables ( const bool  prop)
inherited

This method allows the programmer to propagate input tables to the output cube (default is true)

Parameters
propFlag indicating if input tables are to be propagated to output cubes.

Definition at line 591 of file Process.cpp.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube(), and Isis::ProcessMapMosaic::SetOutputCube().

void Isis::Process::PropagateTables ( const QString &  fromName)
inherited

Propagate the tables from the cube with the given filename to the output cube.

This is done at the time this method is called, not during normal processing.

Definition at line 600 of file Process.cpp.

References Isis::Cube::label(), Isis::PvlObject::object(), Isis::PvlObject::objects(), Isis::Cube::open(), and Isis::Cube::read().

void Isis::ProcessExportPds::SetAttached ( )

Mutator method to set the output PDS file to attached.

In this case, there will be a single output file containing the PDS label, image data, and any PDS tables that are added.

Definition at line 1062 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::SetDetached ( QString  detachedLabelFile)

Mutator method to set the output PDS file to detached.

In this case, there will be separate output files containing the PDS label, image data, and any PDS tables that are added.

Parameters
detachedLabelFileA string containing the name of the detached PDS label file

Definition at line 1051 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::SetExportType ( PdsExportType  recordFormat)

Mutator method to set the output PDS image record type to stream or fixed.

Parameters
recordFormatEnumerated value for the record type of the exported PDS file.

Definition at line 1102 of file ProcessExportPds.cpp.

void Isis::ProcessExport::setFormat ( ExportFormat  format)
inlineinherited

Sets the storage order of the output file.

Definition at line 169 of file ProcessExport.h.

References Isis::ProcessExport::p_format.

Referenced by Isis::ImageExporter::initializeProcess(), and Isis::ProcessExport::ProcessExport().

Isis::Cube * Isis::Process::SetInputCube ( const QString &  parameter,
const int  requirements = 0 
)
virtualinherited

Opens an input cube specified by the user and verifies requirements are met.

Returns
Cube*
Parameters
parameterUser parameter to obtain file to open. Typically, the value is "FROM". For example, the user can specify on the command line FROM=myfile.cub and this method will attempt to open the cube "myfile.cub" if the parameter was set to "FROM".
requirementsUse to specify requirements for the input file. The following are requirments are checked against 1) ic_base::SizeMatch checks to make sure the input cube has the same bands, samples, and lines as the first input cube open using this method, 2) ic_base::SpatialMatch checks to make sure the input cube has the same samples and lines as the first input cube, 3) ic_base::Georeferenced checks to make sure latitude/longitudes can be obtained from the input cube, 4) ic_base::FullyGeoreferenced checks to make sure latitude/longitude, phase/incidence/emission, and other geometric parameters can be obtained from the input cube, 5) ic_base::OneBand checks to make sure the input cube has exactly one band. Note, that these requirements can be logically or'ed. For example, ic_base::SpatialMatch | ic_base::georeferenced. Defaults to 0
Exceptions
Isis::iException::Message

Reimplemented in Isis::ProcessByBrick, Isis::ProcessByLine, Isis::ProcessBySpectra, and Isis::ProcessBySample.

Definition at line 243 of file Process.cpp.

Referenced by Isis::ImageExporter::addChannel(), Isis::FileTool::saveAsEnlargedCube(), and Isis::ProcessGroundPolygons::SetStatCubes().

Isis::Cube * Isis::Process::SetInputCube ( const QString &  fname,
const Isis::CubeAttributeInput att,
int  requirements = 0 
)
virtualinherited

Opens an input cube specified by the programmer and verifies requirements are met.

Parameters
fnameProgrammer specified work file. For example, "myfile.cub".
attThe cube attributes to use when opening the input cube.
requirementsSame as requirements on SetInputCube. See that method for more details. Defaults to 0
Returns
Cube*
Exceptions
Isis::iException::Message

Reimplemented in Isis::ProcessByBrick.

Definition at line 82 of file Process.cpp.

References _FILEINFO_, Isis::Cube::bandCount(), Isis::CubeAttributeInput::bands(), Isis::Cube::lineCount(), Isis::Cube::open(), Isis::Cube::sampleCount(), and Isis::Cube::setVirtualBands().

void Isis::Process::SetInputCube ( Isis::Cube inCube)
virtualinherited

Set the InputCube vector to an opened Cube which was dynamically allocated.

This is used if there already exists a valid opened cube

Author
Sharmila Prasad (5/7/2011)
Parameters
inCube- Pointer to input Cube

Reimplemented in Isis::ProcessByLine.

Definition at line 201 of file Process.cpp.

References _FILEINFO_, and Isis::Cube::isOpen().

void Isis::ProcessExport::SetInputRange ( )
inherited

Set input pixel range from user.

This method performs the same function as SetInputRange(min,max) and SetInputRange(min,mid,max). However, the information for min/mid/max is obtained from the user via the command line. Therefore you must include the following parameter group in your application XML file:

<group name="Stretch Options">
<parameter name="STRETCH">
<type>string</type>
<default>
<item>LINEAR</item>
</default>
<brief>Type of stretch</brief>
<description>
This parameter is used to select one of three ways to stretch
(or map) output pixels. They are LINEAR, PIECEWISE, or MANUAL.
</description>
<list>
<option value="LINEAR">
<brief> Linear stretch </brief>
<description>
A minimum and maximum are automatically computed based on
the statistics of the selected band. A histogram of the
band is used to pick the minimum at 0.5% of the data and
the maximum at 99.5% of the data. Input pixels less than
or equal to the minimum are stretched to black while
pixels greater than the or equal to the maximum are
stretched to white. A linear mapping occurs between the
minimum and maximum.
</description>
<inclusions>
<item>MINPERCENT</item>
<item>MAXPERCENT</item>
</inclusions>
<exclusions>
<item>MINIMUM</item>
<item>MAXIMUM</item>
</exclusions>
</option>
<option value="PIECEWISE">
<brief> Piecewise-linear stretch </brief>
<description>
This option is similar to the LINEAR option. A minimum and
maximum are automatically computed. Additionally, the
median is computed and it is mapped to the middle gray
value (halfway between white and black). Therefore, it is
a piecewise-linear stretch with input pixels mapped
linearly between either 1) the minimum/median or 2) the
median/maximum. This option is useful for contrast
stretching cubes with skewed histograms to ensure a
balanced contrast.
</description>
<inclusions>
<item>MINPERCENT</item>
<item>MAXPERCENT</item>
</inclusions>
<exclusions>
<item>MINIMUM</item>
<item>MAXIMUM</item>
</exclusions>
</option>
<option value="MANUAL">
<brief> Manual stretch </brief>
<description>
This option allows you to pick your own stretch. You must
enter a value for MINIMUM and MAXIMUM
</description>
<inclusions>
<item>MINIMUM</item>
<item>MAXIMUM</item>
</inclusions>
<exclusions>
<item>MINPERCENT</item>
<item>MAXPERCENT</item>
</exclusions>
</option>
</list>
</parameter>
<parameter name="MINIMUM">
<type>double</type>
<brief>Minimum pixel value</brief>
<description>
The minimum input pixel value which will be mapped to black.
</description>
<lessThan>
<item>MAXIMUM</item>
</lessThan>
</parameter>
<parameter name="MAXIMUM">
<type>double</type>
<brief>Maximum pixel value</brief>
<description>
The maximum input pixel value which will be mapped to white.
</description>
<greaterThan>
<item>MINIMUM</item>
</greaterThan>
</parameter>
<parameter name="MINPERCENT">
<type>double</type>
<brief>Minimum Percent</brief>
<description>
The percentage of data in the histogram used to compute
the minimum pixel value in the stretch.
</description>
<default><item>0.5</item></default>
<lessThan>
<item>MAXPERCENT</item>
</lessThan>
</parameter>
<parameter name="MAXPERCENT">
<type>double</type>
<brief>Maximum Percent</brief>
<description>
The percentage of data in the histogram used to compute
the maximum pixel value in the stretch.
</description>
<default><item>99.5</item></default>
<greaterThan>
<item>MINPERCENT</item>
</greaterThan>
</parameter>
</group>

Definition at line 366 of file ProcessExport.cpp.

References IsisAml::Clear(), IsisAml::GetDouble(), IsisAml::GetString(), Isis::Application::GetUserInterface(), Isis::Process::InputCubes, Isis::Histogram::Median(), Isis::ProcessExport::p_inputMaximum, Isis::ProcessExport::p_inputMiddle, Isis::ProcessExport::p_inputMinimum, Isis::Histogram::Percent(), and IsisAml::PutDouble().

Referenced by Isis::ImageExporter::addChannel(), Isis::ProcessExport::SetInputRange(), and Isis::ImageExporter::write().

void Isis::ProcessExport::SetInputRange ( const double  minimum,
const double  maximum 
)
inherited

Set input pixel range from to a linear stretch.

This method allows the programmer to define what range of input pixels in the input cube get mapped to the output range in the Buffer. By default the output range is 0.0 to 1.0 (can be overridden using the SetOutputRange method). This version of SetInputRange allows the programmer to perform a simple linear stretch. That is, "minimum:0.0 maximum:1.0" or minimum is mapped to 0.0, maximum is mapped to 1.0 everything inbetween is mapped linearly (e.g., (minimum+maximum)/2.0:0.5). Also, everything less than the minimum is mapped to 0.0 and everything more than the maximum is mapped to 1.0. If you are uncertain about how stretches operate see the Stretch object. If the input range is never set, no stretch will occur.

Parameters
minimumMinimum pixel value in the input cube to be mapped to the minimum value in the Buffer
maximumMaximum pixel value in the input cube to be mapped to the maximum value in the Buffer
Exceptions
Isis::iException::Message

Definition at line 100 of file ProcessExport.cpp.

References Isis::ProcessExport::SetInputRange().

void Isis::ProcessExport::SetInputRange ( const double  minimum,
const double  maximum,
const int  index 
)
inherited

Set input pixel range from to a linear stretch.

This method allows the programmer to define what range of input pixels in the input cube get mapped to the output range in the Buffer. By default the output range is 0.0 to 1.0 (can be overridden using the SetOutputRange method). This version of SetInputRange allows the programmer to perform a simple linear stretch. That is, "minimum:0.0 maximum:1.0" or minimum is mapped to 0.0, maximum is mapped to 1.0 everything inbetween is mapped linearly (e.g., (minimum+maximum)/2.0:0.5). Also, everything less than the minimum is mapped to 0.0 and everything more than the maximum is mapped to 1.0. If you are uncertain about how stretches operate see the Stretch object. If the input range is never set, no stretch will occur.

Parameters
minimumMinimum pixel value in the input cube to be mapped to the minimum value in the Buffer
maximumMaximum pixel value in the input cube to be mapped to the maximum value in the Buffer
indexThe index of the channel you are setting
Exceptions
Isis::iException::Message

Definition at line 129 of file ProcessExport.cpp.

References Isis::ProcessExport::SetInputRange().

void Isis::ProcessExport::SetInputRange ( const double  minimum,
const double  middle,
const double  maximum 
)
inherited

Set input pixel range from to a piecewise linear stretch.

This method allows the programmer to define what range of input pixels in the input cube get mapped to the output range in the Buffer. By default the output range is 0.0 to 1.0 (can be overridden using the SetOutputRange method). This version of SetInputRange allows the programmer to perform a piecewise linear stretch. That is,"minimum:0.0 middle:0.5 maximum:1.0". The pixels from the input cube between minimum and middle are mapped to 0.0 and 0.5 linearly, while pixels between middle and maximum are mapped to 0.5 and 1.0 linearly. Those outside the range of minimum and maximum are mapped to 0.0 and 1.0 respectively. If you are uncertain about how stretches operate see the Stretch object. If the input range is never set, no stretch will occur.

Parameters
minimumMinimum pixel value in the input cube to be mapped to the minimum value in the Buffer
middleMiddle pixel value in the input cube to be mapped to the (minimum+maximum)/2.0 value in the Buffer
maximumMaximum pixel value in the input cube to be mapped to the maximum value in the Buffer
Exceptions
Isis::IException::Message

Definition at line 160 of file ProcessExport.cpp.

References _FILEINFO_, Isis::Process::InputCubes, Isis::ProcessExport::p_inputMaximum, Isis::ProcessExport::p_inputMiddle, Isis::ProcessExport::p_inputMinimum, and Isis::IException::Programmer.

void Isis::ProcessExport::SetInputRange ( const double  minimum,
const double  middle,
const double  maximum,
const int  index 
)
inherited

Set input pixel range from to a piecewise linear stretch.

This method allows the programmer to define what range of input pixels in the input cube get mapped to the output range in the Buffer. By default the output range is 0.0 to 1.0 (can be overridden using the SetOutputRange method). This version of SetInputRange allows the programmer to perform a piecewise linear stretch. That is,"minimum:0.0 middle:0.5 maximum:1.0". The pixels from the input cube between minimum and middle are mapped to 0.0 and 0.5 linearly, while pixels between middle and maximum are mapped to 0.5 and 1.0 linearly. Those outside the range of minimum and maximum are mapped to 0.0 and 1.0 respectively. If you are uncertain about how stretches operate see the Stretch object. If the input range is never set, no stretch will occur.

Parameters
minimumMinimum pixel value in the input cube to be mapped to the minimum value in the Buffer
middleMiddle pixel value in the input cube to be mapped to the (minimum+maximum)/2.0 value in the Buffer
maximumMaximum pixel value in the input cube to be mapped to the maximum value in the Buffer
indexThe index of the channel you are setting
Exceptions
Isis::iException::Message

Definition at line 208 of file ProcessExport.cpp.

References _FILEINFO_, Isis::Process::InputCubes, Isis::ProcessExport::p_inputMaximum, Isis::ProcessExport::p_inputMiddle, Isis::ProcessExport::p_inputMinimum, and Isis::IException::Programmer.

Isis::Cube * Isis::Process::SetOutputCube ( const QString &  parameter)
virtualinherited

Allocates a user-specified output cube whose size matches the first input cube.

Returns
Cube*
Parameters
parameterUser specified output file. For example, "TO" is a popular user parameter. If the user specified TO=output.cub, then this routine would allocate the file output.cub with size specified by the first opened input cube. The output pixel type will be propagated from the first loaded input cube or will use the value in the application XML file for pixelType.
Exceptions
Isis::iException::Message

Reimplemented in Isis::ProcessMosaic, Isis::ProcessImport, and Isis::ProcessMapMosaic.

Definition at line 266 of file Process.cpp.

References _FILEINFO_.

Referenced by Isis::FileTool::saveAsEnlargedCube(), and Isis::ProcessImport::SetOutputCube().

Isis::Cube * Isis::Process::SetOutputCube ( const QString &  parameter,
const int  ns,
const int  nl,
const int  nb = 1 
)
virtualinherited

Allocates a user specified output cube whose size is specified by the programmer.

Returns
Cube*
Parameters
parameterUser specified output file. For example, "TO" is a popular user parameter. If the user specified TO=output.cub, then this routine would allocate the file output.cub with size specified by the first opened input cube. The output pixel type will be propagated from the first loaded input cube or will use the value in the application XML file for pixelType.
nsNumber of samples to allocate
nlNumber of lines to allocate
nbNumber of bands to allocate
Exceptions
Isis::iException::Message

Definition at line 302 of file Process.cpp.

References _FILEINFO_.

Isis::Cube * Isis::Process::SetOutputCube ( const QString &  fname,
const Isis::CubeAttributeOutput att,
const int  ns,
const int  nl,
const int  nb = 1 
)
virtualinherited
void Isis::ProcessExport::SetOutputEndian ( enum ByteOrder  byteOrderIn)
inherited

Set byte endianness of the output cube.

This method allows the programmer to specify whether the first byte of data output from the ProcessExport will be the most significant byte or the least significant byte. If the user does not explicitly set the endianness, it will default to that of the current system architecture

Parameters
byteOrderInenumeration of the endianness (MSB or LSB)

Definition at line 651 of file ProcessExport.cpp.

References Isis::ProcessExport::p_endianSwap, and Isis::ProcessExport::p_endianType.

Referenced by Isis::ProcessExport::ProcessExport().

void Isis::ProcessExport::SetOutputHis ( const double  value)
inherited

Set output special pixel value for HIS.

Sets the value for output special pixel HISs. HIS pixels values from the input cube will be set to this value. Be default this value will be set to the maximum out value set with SetOutputRange

Parameters
valueThe output pixel value for all HIS pixels

Definition at line 523 of file ProcessExport.cpp.

References Isis::ProcessExport::p_His, and Isis::ProcessExport::p_His_Set.

void Isis::ProcessExport::SetOutputHrs ( const double  value)
inherited

Set output special pixel value for HRS.

Sets the value for output special pixel HRSs. HRS pixels values from the input cube will be set to this value. Be default this value will be set to the maximum out value set with SetOutputRange

Parameters
valueThe output pixel value for all HRS pixels

Definition at line 538 of file ProcessExport.cpp.

References Isis::ProcessExport::p_Hrs, and Isis::ProcessExport::p_Hrs_Set.

void Isis::ProcessExport::SetOutputLis ( const double  value)
inherited

Set output special pixel value for LIS.

Sets the value for output special pixel LISs. LIS pixels values from the input cube will be set to this value. Be default this value will be set to the minimum out value set with SetOutputRange

Parameters
valueThe output pixel value for all LIS pixels

Definition at line 493 of file ProcessExport.cpp.

References Isis::ProcessExport::p_Lis, and Isis::ProcessExport::p_Lis_Set.

void Isis::ProcessExport::SetOutputLrs ( const double  value)
inherited

Set output special pixel value for LRS.

Sets the value for output special pixel LRSs. LRS8 pixels values from the input cube will be set to this value. Be default this value will be set to the minimum out value set with SetOutputRange

Parameters
valueThe output pixel value for all LRS pixels

Definition at line 508 of file ProcessExport.cpp.

References Isis::ProcessExport::p_Lrs, and Isis::ProcessExport::p_Lrs_Set.

void Isis::ProcessExport::SetOutputNull ( const double  value)
inherited

Set output special pixel value for NULL.

Sets the value for output special pixel NULLs. NULL pixels values from the input cube will be set to this value. Be default this value will be set to the minimum out value set with SetOutputRange

Parameters
valueThe output pixel value for all NULL pixels

Definition at line 478 of file ProcessExport.cpp.

References Isis::ProcessExport::p_Null, and Isis::ProcessExport::p_Null_Set.

Referenced by Isis::ImageExporter::initializeProcess().

void Isis::ProcessExport::SetOutputRange ( const double  minimum,
const double  maximum 
)
inherited

Set output pixel range in Buffer.

This method allows the programmer to specify the acceptable range of values contained in the Buffer. If this method is never invoked, all pixel values received in the Buffer of the export function will be in the range of 0.0 to 1.0. However, this can be overridden, for example, to 0.0 and 255.0, by invoking this method.

Parameters
minimumDesired minimum pixel value in the Buffer
maximumDesired maximum pixel value in the Buffer
Exceptions
Isis::iException::Message

Definition at line 456 of file ProcessExport.cpp.

References _FILEINFO_, Isis::ProcessExport::p_outputMaximum, Isis::ProcessExport::p_outputMiddle, Isis::ProcessExport::p_outputMinimum, and Isis::IException::Programmer.

Referenced by Isis::ImageExporter::initializeProcess(), and Isis::ProcessExport::SetOutputType().

void Isis::ProcessExport::SetOutputType ( Isis::PixelType  pixelIn)
inherited

Set output pixel bit type in Buffer.

This method specifies the type of pixel data that is going to be output. Essentially, it is a convenience method that will automatically calculate the necessary output range based on the minimum and maximum values of the bit type that is specified. Currently, the method only supported data types are Isis::UnsignedByte (Range of 0 to 255), Isis::SignedWord (Range of -32768 to 32767), Isis::UnsignedWord (Range of 0 to 65535), and Isis::Real (Range from the minimum floating-point value to the maximum floating-point value supported in C++; -FLT_MAX to FLT_MAX), since these are the only formats that can be output by ProcessExport. If neither this method nor the SetOutputRange method is invoked, all pixel values received in the Buffer of the export function will be in the range of 0.0 to 1.0.

NOTE: You must set the format type of the output data with SetFormat before calling this method. Otherwise, you will get an error.

Parameters
pixelInthis is an enumeration of the different pixel types. The only values that are recognized as valid are Isis::UnsignedByte, Isis::SignedWord, Isis::UnsignedWord, and Isis::Real.
Exceptions
Isis::iException::Message

Definition at line 610 of file ProcessExport.cpp.

References _FILEINFO_, Isis::ProcessExport::JP2, Isis::ProcessExport::p_format, Isis::ProcessExport::p_pixelType, Isis::IException::Programmer, and Isis::ProcessExport::SetOutputRange().

Referenced by Isis::ImageExporter::initializeProcess(), and Isis::ProcessExport::ProcessExport().

void Isis::ProcessExportPds::SetPdsResolution ( PdsResolution  resolutionUnits)

Mutator method to set the output PDS image resolution to meters per pixel or kilometers per pixel.

Parameters
resolutionUnitsEnumerated value for the units type to be set.

Definition at line 1091 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::StandardAllMapping ( Pvl outputPvl)

Create the standard keywords for the IMAGE_MAP_PROJECTION group in a PDS label.

Parameters
mainPvl
Exceptions
Isis::IException::Message

Definition at line 679 of file ProcessExportPds.cpp.

References Isis::PvlObject::findGroup(), Isis::PvlContainer::findKeyword(), Isis::PvlObject::findKeyword(), Isis::PvlObject::findObject(), Isis::PvlObject::hasKeyword(), Isis::PvlObject::hasObject(), Isis::PvlKeyword::setValue(), Isis::toString(), and Isis::PvlKeyword::unit().

void Isis::ProcessExportPds::StandardImageImage ( Pvl mainPvl)

Create the standard keywords for an IMAGE object in a PDS IMAGE file.

This should not be called until after all settings have been made. The labels may contain the wrong data if it is.

Parameters
mainPvl
Exceptions
Isis::IException::Message

Definition at line 395 of file ProcessExportPds.cpp.

References _FILEINFO_, Isis::PvlContainer::deleteKeyword(), Isis::PvlObject::findObject(), Isis::PvlObject::hasKeyword(), and Isis::toString().

void Isis::ProcessExportPds::StandardJP2Image ( Pvl mainPvl)

Create the standard keywords for an IMAGE object in a PDS JP2 IMAGE file.

This should not be called until after all settings have been made. The labels may contain the wrong data if it is.

Parameters
mainPvl
Exceptions
Isis::IException::Message

Definition at line 536 of file ProcessExportPds.cpp.

References _FILEINFO_, Isis::PvlContainer::deleteKeyword(), Isis::PvlObject::findObject(), Isis::PvlObject::hasKeyword(), and Isis::toString().

Pvl & Isis::ProcessExportPds::StandardPdsLabel ( ProcessExportPds::PdsFileType  type)
virtual

Create a standard PDS label of the type specified.

Create a standard PDS label of the type specified. The type must be Image. Qube and SpectralQube are not supported.

NOTE: This method should not be called until all setting have been finished. For example ProcessExport::SetOutputEndian

Parameters
typeThe type of PDS label to be created.
Returns
Pvl containing label information
Exceptions
Isis::iException::Message

Definition at line 104 of file ProcessExportPds.cpp.

References _FILEINFO_.

void Isis::ProcessExport::StartProcess ( void   functIsis::Buffer &in)
virtualinherited

This method invokes the process operation over a single input cube.

In the cases of BSQ and BIL this is a process by line. In the case of BIP, this is a process by band. A single buffer of input data will be padd to the buffer processing function. Note the data will be stretched based on the invocations of the SetInputRange and SetpOutputRange methods.

Parameters
funct(Isis::Buffer &b) Name of your buffer processing function. The buffer in will contain stretched input cube pixels for an entire buffer. These pixels must be written to the foreign output file (e.g, jpg, tif, etc).

Definition at line 742 of file ProcessExport.cpp.

References _FILEINFO_, Isis::BufferManager::begin(), Isis::ProcessExport::BIL, Isis::ProcessExport::BIP, Isis::ProcessExport::BSQ, Isis::Progress::CheckStatus(), Isis::BufferManager::end(), Isis::ProcessExport::InitProcess(), Isis::Process::InputCubes, Isis::ProcessExport::JP2, Isis::BufferManager::next(), Isis::ProcessExport::p_format, Isis::Process::p_progress, Isis::ProcessExport::p_str, Isis::IException::Programmer, and Isis::Buffer::size().

void Isis::ProcessExportPds::StartProcess ( std::ofstream &  fout)
virtual

This method fills the image data of the PDS file using the parent class ProcessExport::StartProcess, then appends any attached tables.

Parameters
foutOutput file stream to be filled with the PDS data.

Reimplemented from Isis::ProcessExport.

Definition at line 1310 of file ProcessExportPds.cpp.

References _FILEINFO_.

virtual void Isis::Process::StartProcess ( void   funct())
inlinevirtualinherited

In the base class, this method will invoked a user-specified function exactly one time.

In derived classes such as ProcessByLine, the StartProcess will invoke a user-specified function for every line in a cube.

Parameters
funct()Name of your processing function

Definition at line 221 of file Process.h.

void Isis::ProcessExportPds::StreamImageRoot ( Pvl mainPvl)

Create the standard keywords for the ROOT object in a PDS IMAGE file.

Parameters
mainPvl

Definition at line 217 of file ProcessExportPds.cpp.

void Isis::ProcessExportPds::StreamJP2ImageRoot ( Pvl mainPvl)

Create the standard keywords for the ROOT object in a PDS JP2 IMAGE file.

Parameters
mainPvl

Definition at line 247 of file ProcessExportPds.cpp.

References _FILEINFO_, Isis::PvlObject::addObject(), and Isis::toString().

void Isis::Process::WriteHistory ( Cube cube)
inherited

Member Data Documentation

bool Isis::ProcessExportPds::m_detachedLabel
private

          Indicates whether the PDS file

will be detached.

Definition at line 227 of file ProcessExportPds.h.

QString Isis::ProcessExportPds::m_detachedPdsLabelFile
private

The name of the detached PDS label

file.

Definition at line 229 of file ProcessExportPds.h.

PdsResolution Isis::ProcessExportPds::m_exportResolution
private

Meters or kilometers.

Definition at line 187 of file ProcessExportPds.h.

PdsExportType Isis::ProcessExportPds::m_exportType
protected

Stream or Fixed.

Definition at line 184 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceBandName
private

          Indicates whether to keep the 

BAND_NAME keyword in the PDS labels.

Definition at line 190 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceBands
private

             Indicates whether to keep the 

BANDS keyword in the PDS labels.

Definition at line 188 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceBandStorageType
private

   Indicates whether to add the

BAND_STORAGE_TYPE keyword in the PDS labels.

Definition at line 197 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceBandwidth
private

         Indicates whether to keep the

BANDWIDTH keyword in the PDS labels.

Definition at line 195 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceCenterFilterWavelength
private

      Indicates whether to keep the

CENTER_FILTER_WAVELENGTH keyword in the PDS labels.

Definition at line 192 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceCoreHis
private

           Indicates whether to add the

CORE_HIGH_INSTR_SATURATION keyword in the PDS labels.

Definition at line 224 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceCoreHrs
private

           Indicates whether to add the

CORE_HIGH_REPR_SATURATION keyword in the PDS labels.

Definition at line 221 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceCoreLis
private

           Indicates whether to add the

CORE_LOW_INSTR_SATURATION keyword in the PDS labels.

Definition at line 218 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceCoreLrs
private

           Indicates whether to add the

CORE_LOW_REPR_SATURATION keyword in the PDS labels.

Definition at line 215 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceCoreNull
private

          Indicates whether to add the

CORE_NULL keyword in the PDS labels.

Definition at line 213 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceOffset
private

            Indicates whether to add the

OFFSET keyword in the PDS labels.

Definition at line 200 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceSampleBitMask
private

     Indicates whether to add the

SAMPLE_BIT_MASK keyword in the PDS labels.

Definition at line 207 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceSampleBits
private

        Indicates whether to add the

SAMPLE_BITS keyword in the PDS labels.

Definition at line 205 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceSampleType
private

        Indicates whether to add the

SAMPLE_TYPE keyword in the PDS labels.

Definition at line 210 of file ProcessExportPds.h.

bool Isis::ProcessExportPds::m_forceScalingFactor
private

     Indicates whether to add the

SCALING_FACTOR keyword in the PDS labels.

Definition at line 202 of file ProcessExportPds.h.

PvlFormatPds* Isis::ProcessExportPds::m_formatter
protected

 Used to determine how to format the 

keyword values in the PDS file.

Definition at line 181 of file ProcessExportPds.h.

Pvl* Isis::ProcessExportPds::m_label
protected

Exported PDS label.

Definition at line 183 of file ProcessExportPds.h.

QSet<Isis::Cube *>* Isis::Process::m_ownedCubes
protectedinherited

A list of cubes owned by this instant.

These cubes will be deleted on finalization. Process will not take ownership of cubes allocated outside of Process. It is the caller's responsibility to delete such cubes.

Definition at line 207 of file Process.h.

PdsFileType Isis::ProcessExportPds::m_pdsFileType
private

     Image, Qube, Spectral Qube, or 

JP2 Image

Definition at line 231 of file ProcessExportPds.h.

std::vector<char *> Isis::ProcessExportPds::m_tableBuffers
private

Vector containing the binary table data for each of the added tables.

The order of the tables represented in this vector corresponds to the order of the table data in m_tableRecords.

Definition at line 244 of file ProcessExportPds.h.

std::vector<int> Isis::ProcessExportPds::m_tableRecords
private

Number of records in each added table.

The order of the tables represented in this vector corresponds to the order of the table data in m_tableBuffers.

Definition at line 239 of file ProcessExportPds.h.

std::vector<int> Isis::ProcessExportPds::m_tableStartRecord
private

Record number where the added table data begins.

The order of the tables represented in this vector corresponds to the order of the table data in m_tableBuffers

Definition at line 234 of file ProcessExportPds.h.

std::vector<Isis::Cube *> Isis::Process::OutputCubes
protectedinherited
std::vector< std::vector< Isis::Statistics * > > Isis::Process::p_bandStats
protectedinherited

Holds the calculated statistics for each band separately of every input cubei after the CalculateStatistics method is called.

Definition at line 180 of file Process.h.

Referenced by Isis::Process::BandStatistics().

std::vector< Isis::Statistics * > Isis::Process::p_cubeStats
protectedinherited

Holds the calculated statistics for every band together of every input cubei after the CalculateStatistics method is called.

Definition at line 187 of file Process.h.

Referenced by Isis::Process::CubeStatistics().

EndianSwapper* Isis::ProcessExport::p_endianSwap
protectedinherited
ByteOrder Isis::ProcessExport::p_endianType
protectedinherited

The byte order of the output file.

Definition at line 238 of file ProcessExport.h.

Referenced by Isis::ProcessExport::SetOutputEndian().

ExportFormat Isis::ProcessExport::p_format
protectedinherited
double Isis::ProcessExport::p_His
protectedinherited

  The output value for pixels whose input DNs are 

High Instrument Saturation values.

Definition at line 251 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputHis(), and Isis::ProcessExport::SetOutputHis().

bool Isis::ProcessExport::p_His_Set
protectedinherited

  Indicates whether p_His has been set 

(i.e.

if setHis() has been called).

Definition at line 262 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputHis(), Isis::ProcessExport::ProcessExport(), and Isis::ProcessExport::SetOutputHis().

double Isis::ProcessExport::p_Hrs
protectedinherited

  The output value for pixels whose input DNs are 

High Representation Saturation values.

Definition at line 253 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputHrs(), and Isis::ProcessExport::SetOutputHrs().

bool Isis::ProcessExport::p_Hrs_Set
protectedinherited

  Indicates whether p_Hrs has been set 

(i.e.

if setHrs() has been called).

Definition at line 264 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputHrs(), Isis::ProcessExport::ProcessExport(), and Isis::ProcessExport::SetOutputHrs().

std::vector<double> Isis::ProcessExport::p_inputMaximum
protectedinherited

Maximum pixel value in the input cube to be mapped to the maximum value in the Buffer.

Definition at line 233 of file ProcessExport.h.

Referenced by Isis::ProcessExport::GetInputMaximum(), Isis::ProcessExport::InitProcess(), Isis::ProcessExport::ProcessExport(), and Isis::ProcessExport::SetInputRange().

std::vector<double> Isis::ProcessExport::p_inputMiddle
protectedinherited

Middle pixel value in the input cube to be mapped to the (minimum+maximum)/2.0 value in the Buffer.

Definition at line 229 of file ProcessExport.h.

Referenced by Isis::ProcessExport::InitProcess(), Isis::ProcessExport::ProcessExport(), and Isis::ProcessExport::SetInputRange().

std::vector<double> Isis::ProcessExport::p_inputMinimum
protectedinherited

Minimum pixel value in the input cube to be mapped to the minimum value in the Buffer.

Definition at line 226 of file ProcessExport.h.

Referenced by Isis::ProcessExport::GetInputMinimum(), Isis::ProcessExport::InitProcess(), Isis::ProcessExport::ProcessExport(), and Isis::ProcessExport::SetInputRange().

double Isis::ProcessExport::p_Lis
protectedinherited

  The output value for pixels whose input DNs are 

Low Instrument Saturation values.

Definition at line 247 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputLis(), and Isis::ProcessExport::SetOutputLis().

bool Isis::ProcessExport::p_Lis_Set
protectedinherited

  Indicates whether p_Lis has been set 

(i.e.

if setLis() has been called).

Definition at line 258 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputLis(), Isis::ProcessExport::ProcessExport(), and Isis::ProcessExport::SetOutputLis().

double Isis::ProcessExport::p_Lrs
protectedinherited

  The output value for pixels whose input DNs are 

Low Representation Saturation values.

Definition at line 249 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputLrs(), and Isis::ProcessExport::SetOutputLrs().

bool Isis::ProcessExport::p_Lrs_Set
protectedinherited

  Indicates whether p_Lrs has been set 

(i.e.

if setLrs() has been called).

Definition at line 260 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputLrs(), Isis::ProcessExport::ProcessExport(), and Isis::ProcessExport::SetOutputLrs().

double Isis::ProcessExport::p_Null
protectedinherited

The output value for pixels whose input DNs are Null values.

Definition at line 246 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputNull(), and Isis::ProcessExport::SetOutputNull().

bool Isis::ProcessExport::p_Null_Set
protectedinherited

 Indicates whether p_Null has been set 

(i.e.

if setNull() has been called).

Definition at line 256 of file ProcessExport.h.

Referenced by Isis::ProcessExport::OutputNull(), Isis::ProcessExport::ProcessExport(), and Isis::ProcessExport::SetOutputNull().

double Isis::ProcessExport::p_outputMaximum
protectedinherited
double Isis::ProcessExport::p_outputMiddle
protectedinherited

  Middle pixel value (minimum+maximun)/2.0 in

the Buffer

Definition at line 222 of file ProcessExport.h.

Referenced by Isis::ProcessExport::InitProcess(), Isis::ProcessExport::ProcessExport(), and Isis::ProcessExport::SetOutputRange().

PixelType Isis::ProcessExport::p_pixelType
protectedinherited

The bits per pixel of the output image.

Definition at line 240 of file ProcessExport.h.

Referenced by Isis::ProcessExport::SetOutputType(), and Isis::ProcessExport::StartProcess().

bool Isis::Process::p_propagateHistory
protectedinherited

Flag indicating if history is to be propagated to output cubes.

Definition at line 169 of file Process.h.

bool Isis::Process::p_propagateLabels
protectedinherited

Flag indicating if labels are be propagated to output cubes.

Definition at line 157 of file Process.h.

bool Isis::Process::p_propagateOriginalLabel
protectedinherited

Flag indicating if original lable is to be propagated to output cubes.

Definition at line 173 of file Process.h.

bool Isis::Process::p_propagatePolygons
protectedinherited

Flag indicating if blobs are be propagated to output cubes.

Definition at line 165 of file Process.h.

bool Isis::Process::p_propagateTables
protectedinherited

Flag indicating if tables are be propagated to output cubes.

Definition at line 161 of file Process.h.

std::vector<Stretch *> Isis::ProcessExport::p_str
protectedinherited

Stretch object to ensure a reasonable range of pixel values in the output data.

Definition at line 242 of file ProcessExport.h.

Referenced by Isis::ProcessExport::InitProcess(), Isis::ProcessExport::StartProcess(), and Isis::ProcessExport::~ProcessExport().


The documentation for this class was generated from the following files: