Float to Raster (Conversion)

Summary

Converts a file of binary floating-point values representing raster data to a raster dataset.

Usage

Syntax

FloatToRaster_conversion (in_float_file, out_raster)
ParameterExplanationData Type
in_float_file

The input floating-point binary file.

The file must have a .flt extension. There must be a header file in association with the floating-point binary file, with a .hdr extension.

File
out_raster

The output raster dataset to be created.

When not saving to a geodatabase, specify .tif for a TIFF file format, .img for an ERDAS IMAGINE file format, or no extension for a GRID raster format.

Raster Dataset

Code Sample

FloatToRaster example 1 (Python window)

Converts a file of binary floating-point values representing raster data to a raster dataset.

import arcpy
arcpy.FloatToRaster_conversion("c:/data/elevation.flt", "c:/output/elev")
FloatToRaster example 2 (stand-alone script)

Converts a file of binary floating-point values representing raster data to a raster dataset.

# Name: FloatToRaster_Ex_02.py
# Description: Converts a file of binary floating-point values representing 
#    raster data to a raster dataset.
# Requirements: None

# Import system modules
import arcpy

# Set local variables
inASCII = "c:/data/elevation.flt"
outRaster = "c:/output/elev02"

# Execute FloatToRaster
arcpy.FloatToRaster_conversion("c:/data/elevation.flt", "c:/output/elev02")

Environments

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

11/14/2011