pds2isis
Import PDS or ISIS2 image into ISIS cube format
This program converts a PDS or ISIS2 formatted file to an ISIS3 cube format. The standard PDS image is defined in the "FROM" parameter, and not the "IMAGE" parameter. If the PDS file has a detached label file and an image file, both are required to exist in the working directory. If the label is detached, the detached label filename is defined as the input file for the "FROM" parameter. The "IMAGE" parameter does not need to be defined, unless the program fails to find the image file specifed in the label file upon the program's execution. The default settings normally work for most PDS products, but occasionally the user may need to modify the default values in order to obtain an image that meets their specific requirements.
The incoming special pixel values in the PDS file are assigned equivalent values for special pixels in ISIS. The order of precedence for special pixels in ISIS from highest to lowest priority is the following:
If any incoming pixel value falls within two different special pixel types, the special pixel with the higher priority is assigned. The user may also specify a range of pixel values to be assigned to the different special pixels. If the range of pixel values defined by the user for the different special pixels overlap, the special pixel with the highest priority is assigned. For example, if NULLMIN=0.0, NULLMAX=3.0, LISMIN=3.0, and LISMAX=5.0, the actual raw value 3.0 can be assigned as a NULL or LIS, but is translated to NULL because NULL has a higher priority than LIS.
It should be noted if any incoming pixel values are equal to one of the ISIS special pixel values for the corresponding bit type, those pixels will be special in the output cube. The special pixel values for each bit type can be found here. This is most commonly an issue with 8-bit data. If you are working with an 8-bit image and need either 0 or 255, either convert the data to 16-bit or use Stretch after ingestion.
The conversion of images from ISIS2 to ISIS3 follows the same rules as PDS images, except that the label information is propagated to the output file.
The best option to convert files from ISIS2 to ISIS is to maintain all the input file settings, and do not change the bit type or change any incoming pixel values to special pixels. When an ISIS2 Level1 image is imported into ISIS3, it is important to note the label information is not propagated from the ISIS2 to the ISIS cube file. For an ISIS2 Level2 image or mosaic file, a limited set of label information is transferred to the ISIS labels that include the "Instrument," "BandBin," and "Mapping" groups.
Categories
History
Kris Becker | 1997-05-01 | Original version. |
Stuart Sides | 2003-05-15 | Wrote for Isis 3. |
Stuart Sides | 2003-05-16 | Modified schema location from "astrogeology" to "isis.astrogeology." |
Stuart Sides | 2003-06-04 | Fixed Makefile. |
Stuart Sides | 2003-10-10 | Converted to use new IsisImport instead of IsisPdsImport. |
Stuart Sides | 2004-02-20 | Converted to use the new IsisImportPds class and added import labels to the output cube. |
Brendan George | 2006-09-28 | Documentation fixes. |
Stuart Sides | 2007-01-25 | Added ability to transfers Isis2 instrument and bandbin information. |
Tracie Sucharski | 2007-04-10 | Added LatitudeType2 group to translation table to handle CTX cubes. Additonal changes to projection translation tables for other possible values for Longitude direction, latitude type. If the min or max longitude values are greater than 180, change longitude domain to 360. Only call TranslateIsis2Labels if pds file is an Isis2 cube. |
Steven Lambright | 2007-08-07 | Added support for copying some PDS labels, if they exist, into the output. |
Steven Koechle | 2007-08-29 | Added special pixel ranges. Added examples. |
Steven Lambright | 2008-05-13 | Removed references to CubeInfo. |
Christopher Austin | 2008-09-15 | Fixed problem with special pixel range functionality and documentation. Added HIS and LIS range options. |
Stuart Sides | 2012-08-08 | Added translations for BAND_BIN_CENTER, BAND_BIN_WIDTH, and BAND_BIN_FILTER_NUMBER from NIMS RDR products fixes #1029. |
Ella Mae Lee | 2012-11-09 | Improve the documentation, document capability to import ISIS2 images, fixes #1172. |
Kimberly Oyama | 2012-11-21 | Added app tests for BIP and BIL formatted input. References #819. |
Tyler Wilson | 2016-02-25 | Added an app test for opening Galileo NIMS qubes saved in VAX format. Modified the filter tag on FROM parameter in this document to also recognize *.qub files. All changes relating to converting VAX to IEEE were made in ProcessImport, ProcessImportPds. References: #2368. |
Summer Stapleton | 2017-06-27 | Added conditional to check whether default offsets and multipliers where changed from their default values and log them if so. |