Float to Raster (Conversion)

License Level:BasicStandardAdvanced

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 an Esri 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.

# 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

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
10/24/2012