Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle simple LINE_PREFIX_BYTES and LINE_SUFFIX_BYTES case #22

Open
godber opened this issue Jun 14, 2015 · 1 comment
Open

Handle simple LINE_PREFIX_BYTES and LINE_SUFFIX_BYTES case #22

godber opened this issue Jun 14, 2015 · 1 comment
Labels

Comments

@godber
Copy link
Member

godber commented Jun 14, 2015

ESP_030168_1755_BG12_0.IMG has simple integer values for line suffix/prefix bytes:

/* Image data description. */

OBJECT = IMAGE
    LINES             = 30000
    LINE_SAMPLES      = 512
    SAMPLE_BITS       = 8
    SAMPLE_BIT_MASK   = 2#11111111#
    SAMPLE_TYPE       = MSB_UNSIGNED_INTEGER
    MISSING_CONSTANT  = 16#FF#
    LINE_PREFIX_BYTES = 18
    LINE_SUFFIX_BYTES = 16
    DESCRIPTION       = "Observation image data."
END_OBJECT = IMAGE

This needs to be handled somehow, and it's really a bigger job than just throwing the prefix/suffix away so we can display an image. These prefix/suffix data need to be preserved. For instance, in the example above, the suffix data is dark reference pixels that would be necessary for calibrating the image and is described as follows:

/* Image data line suffix description. */

OBJECT = LINE_SUFFIX_TABLE
    INTERCHANGE_FORMAT = BINARY
    ROWS               = 30000
    COLUMNS            = 1
    ROW_BYTES          = 16
    ROW_PREFIX_BYTES   = 530
    OBJECT = COLUMN
        NAME        = "Dark Reference Pixels"
        DATA_TYPE   = MSB_UNSIGNED_INTEGER
        START_BYTE  = 1
        BYTES       = 16
        ITEMS       = 16
        ITEM_BYTES  = 1
        DESCRIPTION = "Dark reference pixel values produced by masked
                      detectors."
    END_OBJECT = COLUMN
END_OBJECT = LINE_SUFFIX_TABLE

So what needs to be worked out prior to implementing this ticket is the interface we expect to use to access image data while maintaining access to this additional data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant