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