Raster to Float (Conversion Tools)
Summary
Converts a raster dataset to a file of binary floating-point values representing raster data.
Usage
The input raster dataset can be any valid raster dataset.
Two outputs are created: an IEEE floating-point format 32-bit signed binary file with a
.fltextension and an ASCII header file with a.hdrextension. Both will use the same output floating-point raster file name.The ASCII file consists of header information containing a set of keywords.
The format of the file in general is:
NCOLS xxx NROWS xxx XLLCORNER xxx YLLCORNER xxx CELLSIZE xxx NODATA_VALUE xxx BYTEORDER <MSBFIRST | LSBFIRST>The definitions of the keywords are as follows:
NCOLSandNROWSare the number of columns and rows in the raster defined by the binary file.XLLCORNERandYLLCORNERare the coordinates of the lower left corner of the lower left cell.The use of
XLLCENTERandYLLCENTERis not supported by Raster to Float.CELLSIZEis the cell size of the raster.NODATA_VALUEis the value that is to represent NoData cells.BYTEORDERrepresents how multibyte binary numbers are stored on the system on which the binary file was generated. On Intel CPU-based systems, the byte order isLSBFIRST(also known as Little Endian). On most other architectures (most UNIX systems except Alpha, and older Macintoshes with Motorola CPUs), the byte order isMSBFIRST(also known as Big Endian).
The
NODATA_VALUEis the value in the output file assigned to those cells in the input raster that contain NoData. This value is normally reserved for those cells whose true value is unknown.By default, NoData values on the input raster will have a value of -9999 in the output float file. If you want to use another value to represent NoData, a procedure similar to the following using the IsNull and Con tools (available with a Spatial Analyst or Image Analyst extension license) can be applied:
Run the IsNull tool on the original raster. The output will be a raster of binary values, where 1 corresponds to NoData on the original raster and 0 is any other value.
Run the IsNull tool again, specifying the first IsNull result as the Input Conditional Raster, the new value to assign NoData values to as the Input True value, the original raster as the Input False raster, and a condition Expression of "value = 1".
Convert the Con tool output raster to a floating-point binary file with Raster to Float tool.
Change the value of
NODATA_VALUEin the ASCII header file to the value that NoData was converted to.
This tool only writes the origin as the lower left corner of the lower left cell. The Copy Raster tool also supports the origin as the center of the lower left cell.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input raster |
The input raster dataset. The raster can be integer or floating-point type. |
Raster Layer |
|
Output floating point raster file |
The output floating-point raster file. The file name must have a |
File |
Environments
Auto Commit, Cell Size, Cell Size Projection Method, Current Workspace, Extent, Geographic Transformations, Output CONFIG Keyword, Output Coordinate System, Scratch Workspace
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes