Handle MAR image headers
It should never be necessary to use these functions/classes.
Rather use the general interfaces in imagereader and imagewriter
to access general image and header data.
|
Functions
|
|
Build Default Read Scan
|
|
|
Build
|
Build ( x )
Convert a header record h to a binary string suitable as MAR file header |
|
|
Default
|
Default ()
Make a dummy MAR header.
incomplete. |
|
|
Read
|
Read ( filename )
Read the header from the named MAR image file. |
|
|
Scan
|
Scan ( s )
Parse the binary data in string s as a MAR header,
returning a projtls.Record() loaded with the header data
|
Exceptions
|
|
ValueError( "Byte-swap identifier in MAR header not found" ) ValueError( "Can not read mar images of this format (spiral?)" ) ValueError( "Incomplete header" )
|
|
|
Classes
|
|
|
|