hirdrgen
Converts HiRISE RDR cubes into PDS standard format
Takes an input Isis cube with HiRISE RDR specific labels, and outputs a PDS compatible file. The DN values are NOT assumed to be between 0.0 and 1.0. All DN values between MINPER and MAXPER will be stretched to an unsigned integer with a size equal to the number of bits specified by BITS, excluding the special pixels.
NOTE: This program does not generate the final PDS HiRISE product. The output from this program is converted to a JPEG 2000 in the HiRISE pipeline processing.
For NBITS=8, two values are reserved for special pixels. For NBITS=9 through 16, five values are reserved for special pixels.
| Special Pixel | 8 Bit Output Value | 9-16 Bit Output Value |
|---|---|---|
| NULL | 0 | 0 |
| LRS | 0 | 1 |
| LIS | 0 | 2 |
| HIS | 255 | (2**BITS)-2 |
| HRS | 255 | (2**BITS)-1 |
Categories
History
| Stuart Sides | 2006-09-11 | Original Version |
| Stuart Sides | 2006-12-14 | Modified labels to meet PDS standards and add new keywords. |
| Stuart Sides | 2007-01-10 | Modified to output 8-bit products. |
| Stuart Sides | 2007-02-21 | Modified with new keywords (NBITS, MINPER, MAXPER). Remove the OUTTYPE keyword. It is now infered by NBITS. |
| Kris Becker | 2007-07-24 | Modified to convert FILTER_NAME from BLUEGREEN to BLUE-GREEN and NEARINFRARED to NEAR-INFRARED to comply with PDS. |
| Steven Koechle | 2007-12-07 | Added parameters to allow for a user specified manual stretch. |
| Steven Lambright | 2008-05-13 | Removed references to CubeInfo |
| Stuart Sides | 2008-06-06 | Changed output keyword PRODUCT_VERSION_ID from an automatic translation to a user input parameter |
| Steven Lambright | 2008-07-10 | Added Rationale Description option |
| Janet Barrett | 2010-02-17 | Added ability to write output file in JPEG2000 format. |
| Christopher Austin | 2010-03-01 | Fixed an error which misplaced the proper SCALING_FACTOR and OFFSET keyword values. |
| Jeannie Backer | 2012-11-21 | Changed bandwidth units from nm to NM. Fixed bug so that the program no uses the default MAXPER=100 value correctly. References #678 PROG: [Changed ProcessExportPds::SetDetached() method call to correct spelling. Added g_ to global variables to meet Isis standards.] |
| Tracie Sucharski | 2012-12-06 | Changed to use TProjection instead of Projection. References #775 |
| Tracie Sucharski | 2012-12-06 | Changed to use TProjection instead of Projection. References #775 |
Parameters
Files
| Type | cube |
|---|---|
| File Mode | input |
| Filter | *.cub |
| Type | filename |
|---|---|
| File Mode | output |
Stretch
| Type | string | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Default | AUTOMATIC | |||||||||
| Option List: |
|
| Type | double |
|---|
| Type | double |
|---|
| Type | double |
|---|---|
| Default | 0.0 |
| Minimum | 0.0 (inclusive) |
| Maximum | 100.0 (inclusive) |
| Less Than or Equal |
MAXPER
|
| Type | double |
|---|---|
| Default | 100.0 |
| Minimum | 0.0 (inclusive) |
| Maximum | 100.0 (inclusive) |
| Greater Than or Equal |
MINPER
|
Output Controls
| Type | integer |
|---|---|
| Default | 10 |
| Minimum | 8 (inclusive) |
| Maximum | 16 (inclusive) |
| Type | string | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Default | NONE | |||||||||
| Option List: |
|
Special Keyword
| Type | string |
|---|---|
| Default | 1.0 |
| Type | string |
|---|---|
| Internal Default | Preserve Original Rationale Description |

