ISIS Application Documentation
      Import an MRO CTX image as an Isis cube
    
            Description
              Categories
              Groups
              History
          Description
        
        This program takes an image from the Mars Reconnaissance Orbiter Context Imager
        and produces an Isis cube containing the image data.
    
          Categories
        
                Parameter Groups
            
Files
| 
                    Name
                     | 
                    Description
                     | 
| FROM | 
                    Input file
                 | 
| TO | 
                    Output cube
                 | 
Options
Files:
                        FROM
                         Description
                       
                    The image to be processed
                
| 
                             Type
                            | filename | 
| 
                               File Mode
                              | input | 
| 
                               Filter
                              | 
                    *.img
                 | 
 
Files:
                        TO
                         Description
                       
                    This is the resultant cube, containing the image and label data.
                
| 
                             Type
                            | cube | 
| 
                               File Mode
                              | output | 
| 
                               Filter
                              | 
                    *.cub
                 | 
 
Options:
                        PREFIX
                         Description
                       
                Prefix dark pixels to strip off and put in a BLOB table. The default value is computed.  This will compute
                what is believed to be the number of suffix pixels based on data in the labels.  If you find that suffix pixels are 
                being left on the edge of the image, adjust this parameter accordingly.
            
| 
                             Type
                            | integer | 
| 
                               Internal Default
                              | Computed | 
| 
                               Minimum
                              | 0
                                   (inclusive)
                                  | 
 
Options:
                        SUFFIX
                         Description
                       
                Suffix dark pixels to strip off and put in a BLOB table.  The default value is computed.  This will compute
                what is believed to be the number of suffix pixels based on data in the labels.  If you find that suffix pixels are 
                being left on the edge of the image, adjust this parameter accordingly.
            
| 
                             Type
                            | integer | 
| 
                               Internal Default
                              | Computed | 
| 
                               Minimum
                              | 0
                                   (inclusive)
                                  | 
 
Options:
                        FILLGAP
                         Description
                       
              The CTX table for the SQROOT SAMPLE_BIT_MODE_ID correlates the DN value 
              zero to one. Errorenous data is also set to a DN value of zero. When enabled, this
              option assumes the DN values of zero are errenous data and thus zeros are set to NULL. 
              When disabled, this data is preserved.
            
| 
                             Type
                            | boolean | 
| 
                               Default
                              | true | 
 
              History
          
| Brendan George  | 2006-06-15 | 
            Original Version
         | 
| Elizabeth Miller | 2006-09-21 | 
          Added NaifFrameCode keyword to the Kernels group
         | 
| Brendan George | 2006-09-28 | 
            Documentation fixes
         | 
| Elizabeth Miller | 2006-09-28 | 
          Modified to convert from 8 to 12 bit data and pulled prefix and suffix data out of cube
         | 
| Elizabeth Miller | 2006-11-06 | 
          Put dark prefix data in a table blob
         | 
| Elizabeth Miller | 2006-11-15 | 
          Modified keywords to handle keywords that were modified in new data files.  Modified
          the PREFIX and SUFFIX parameters to automatically compute, and added documentation.
         | 
| Steven Lambright | 2007-08-15 | 
          Added an application test
         | 
| Steven Lambright | 2008-02-14 | 
          Added a fillgap option
         | 
| Christopher Austin | 2008-03-18 | 
          Checks if input file is rdr.
         | 
| Steven Lambright | 2008-05-13 | 
          Removed references to CubeInfo 
         | 
| Steven Lambright | 2008-09-02 | 
          Fixed bug where dark current data could be corrupted if FILLGAP was true
         | 
| Curtis Rose | 2016-06-10 | 
          Fixed bug where program would get stuck in an infinite loop when a cube
          was smaller than 10 in either lines or samples
         |