Skip to content

Support for 16 bit image formats #11

@pelicanbill

Description

@pelicanbill

This ( http://pds-imaging.jpl.nasa.gov/data/mer/spirit/mer2po_0xxx/data/sol0770/edr/2p194722334esfapbcp2592r1m1.img ) file is an example of 16 bit .img data which PyPDS currently cannot decode to an image. Mars products appear to be all 16 bit as far as I can see.

The IMAGE label of the above produces this info:
{'BANDS': '1',
'BAND_STORAGE_TYPE': 'BAND_SEQUENTIAL',
'CHECKSUM': '7.44069e+07',
'FIRST_LINE': '93',
'FIRST_LINE_SAMPLE': '201',
'INTERCHANGE_FORMAT': 'BINARY',
'INVALID_CONSTANT': '0.0',
'LINES': '840',
'LINE_SAMPLES': '624',
'MAXIMUM': '254.0',
'MEAN': '141.955',
'MEDIAN': '148.0',
'MINIMUM': '46.0',
'MISSING_CONSTANT': '0.0',
'SAMPLE_BITS': '16',
'SAMPLE_BIT_MASK': '2#0000000011111111#',
'SAMPLE_TYPE': 'MSB_INTEGER',
'STANDARD_DEVIATION': '27.0024'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions