Version 2 (modified by dac, 4 years ago) (diff)

--

Convert Data Type of BIL files to Float

We've heard from some users certain programs (e.g., ENVI FLAASH) require the data type of input files to be 32-bit Float, rather than 16-bit Unsigned Integer (which is what we currently deliver).

ENVI

  1. From 'Basic Tools' Select 'Band Math
  2. Input the following expression
    float(b1)
    
  3. Select 'Map Variable to Input File' and select the BIL file
  4. Note this will change the interleave to BSQ, you can change back to BIL using 'Convert Data' from 'Basic Tools'.

GDAL

You can also change the data type using the gdal_translate command, included with GDAL.

gdal_translate -of ENVI -ot Float32 -co "INTERLEAVE=BIL" f083011b.bil f083011b_float.bil

Back to FAQ