Changes between Initial Version and Version 1 of FAQ/converttofloat


Ignore:
Timestamp:
May 7, 2015 11:51:20 AM (4 years ago)
Author:
dac
Comment:

Added page on converting to Float after user request

Legend:

Unmodified
Added
Removed
Modified
  • FAQ/converttofloat

    v1 v1  
     1== Convert Data Type of BIL files to Float ==
     2
     3We'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).
     4
     5'''ENVI'''
     6
     71. From 'Basic Tools' Select 'Band Math
     81. Input the following expression
     9{{{
     10float(b1)
     11}}}
     121. Select 'Map Variable to Input File' and select the BIL file
     131. Note this will change the interleave to BSQ, you can change back to BIL using 'Convert Data' from 'Basic Tools'.
     14
     15
     16'''GDAL'''
     17
     18You can also change the data type using the [http://www.gdal.org/gdal_translate.html gdal_translate] command, included with GDAL.
     19
     20{{{
     21gdal_translate -of ENVI -ot Float32 -co "INTERLEAVE=BIL" f083011b.bil f083011b_float.bil
     22}}}