| Module: imageheader | filetype/imageheader.py | ||||
|---|---|---|---|---|---|
Generic Image HeaderImage headers for different types of images contain wildly different information. The "collect" package tries to adapt to different image header styles by providing a generic image header class, and subclasses for each supported header style. The image header modules are in the <TT CLASS="package">filetype</TT> package, but since you probably do not need to construct an image header yourself, you will not need to import any of these packages into your programs. An image header is normally only constructed when an image is measured or when an image is read from disk. It is possible to create an empty KappaCCD header using a function in the kcdheader module. An image header object behaves like a record of values. It can be queried by attribute reference. The representation of a header is the raw string of data that makes up the header part of the data. Not all types of header may have a representation: it is only required for image types that can be written to disk. By far not all attributes are available in all types of image headers.
Even in older KappaCCD images some attributes might be absent. It is a
good idea to test for the presence of an attribute using python's
Image header objects are the objects passed to the Reliable attributes of any headerThese are the attributes that each header should have:
Many more attributes can be available for the different header types, for a description of those, see the individual header modules.
|