[GIS] ENVI BIL file algorithm logic

envifile formatsremote sensing

I have a 6 band Landsat image, RGB and 3 NIF bands. As far as the Band Interleaved by Line (BIL) method goes, the resulting image should have, and I quote ENVI manual:

the first line of the first band followed by the first line of
the second band, followed by the first line of the third band,
interleaved up to the number of bands. Subsequent lines for each band
are interleaved in similar fashion. This format provides a compromise
in performance between spatial and spectral processing and is the
recommended file format for most ENVI processing tasks.

So with 6 bands, I should get something like this:
BIL logic simplified

With the resulting image "streched" with the same row number from each of the band in sequential order, or 6 rowed blocks per the whole image.

However, the result ended up like this:
BIL logic in reality
and with 800*800 pixels, each segment is clearly more than just 6 rows.

I am at lost as to why it's displayed this way.

Appreciate any help in regards to the matter.

Best Answer

You may have a BIP (Band Interleaved by Pixel) or BSQ (Band Sequential) format. The ESRI help has a reasonable page that illustrates the three interleave methods.

Right-click on the file in the "Available Bands List" window and select "Edit Header..." and switch the interleave from BIL to BIP (if that is what your data actually is, otherwise try BSQ) and it should display properly.

If you actually want to convert your image data to BIL, select "Basic Tools"->"Convert Data (BSQ,BIL,BIP) from the ENVI toolbar.

Related Question