Introduction
BIL (band interleaved by line), BIP (band interleaved by pixel) and BSQ (band
sequential) are ways of ordering the pixels of an image with several bands. Esri’s
white paper uses them for an image format whose data file ends in .bil,
.bip or .bsq according to that order, with a text header of
the same name ending in .hdr. Optional .clr and
.stx files hold a colour map and band statistics.
Structure
The data file is a plain stream of image data. In BIL all bands of one row are
written before the next row; in BIP all bands of one pixel are written together; in
BSQ each whole band follows the one before. The header holds one
keyword value entry per line, among them nrows,
ncols, nbands, nbits,
byteorder, layout and skipbytes, and the map
position and pixel size in ulxmap, ulymap,
xdim and ydim. Lines that do not begin with a keyword are
comments.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the default values and row-length keywords, the colour map and statistics files and the additions other programs make to the header.
- Viewer: the site has no viewer for this format.
Links
Software
- ArcView GIS – the Esri program the white paper is written for
- GDAL – reads and writes the Esri .hdr labelled format
Reference
- Extendable Image Formats for ArcView GIS 3.1 and 3.2 – Esri’s white paper, with the BIL, BIP and BSQ specification
- EHdr – ESRI .hdr Labelled – GDAL’s driver notes