Skip to content

XISF header length not defined in reference document #1

@han-k59

Description

@han-k59

I have created an XISF reader for the ASTAP program written in Object Pascal. I noted that there is no pre-defined definition how long the header is or maybe I missed it. In practice for uncompressed files it is $1000 equals 4096 bytes. After the XML part the file is filled with unused zero's De attached data block starts then at $1000 or probably later if the header is larger. There is no unused space if the file contains a compressed datablock.

For efficient file reading and to avoid file "seek" is would be convenient to define an initial length of the header to read the first information. So the file reader knows how many bytes to read initially.

I haven't studied the original code. Maybe it reads all data in one array at once, but the current start position for data at $1000 indicates it is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions