![]() |
Research School of Astronomy and Astrophysics
Fyris Alpha Simulation Code
|
![]() |
ZLS Colour TablesThe ZLS System used text file based colour tables. The colour tables are written in unecrypted text format in .ctab files. The complete set of tables including this file are available as a single download. Each file has a simple header indicating the exact variation of the format, and the number of colours in the table, followed by the colour indices and RGB values (or index + single grayscale values for simple gray tables). There are three basic formats, indicated by the first line of the ctab file:
The next line indicates the number of bits per value. It an be 8 or 16 for Decimal and Hexadecimal formats, and 16 for floating point format. The next line indicates the number of colour components, 1 (grayscale) o 3 (RGB) then the number of colours follows, and is usually 256. Finally the indices and values follow, 1 entry per line. For grayscale there are two columns, index then value, and for RGB there are 4 columns, index and red, green, blue values. Format Examples:
Download Code for reading Colour Table Files and writing 8 bit TIFFs
|
![]() |
Page last updated: Wednesday, 03-Mar-2010 17:21:25 AEDT Please direct all enquiries to: Ralph.Sutherland@anu.edu.au Page authorised by: Ralph Sutherland |
The Australian National University CRICOS Provider Number 00120C — ABN: 522 34063906 |