Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Conversion toolbox > To Raster toolset > Tools

Float To Raster (Conversion)

Release 9.2
Last modified April 2, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

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


Usage tips

Command line syntax
An overview of the Command Line window
FloatToRaster_conversion <in_float_file> <out_raster>

Parameter Explanation Data 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 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 file format.

Raster Dataset
Data types for geoprocessing tool parameters


Command line example

FloatToRaster_conversion d:\data\whitehorse.mdb\elevation.flt d:\data\rasterdata.mdb\elevation

Scripting syntax
About getting started with writing geoprocessing scripts
FloatToRaster_conversion (in_float_file, out_raster)

Parameter Explanation Data Type
in_float_file (Required)

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 (Required)

The 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 file format.

Raster Dataset

Data types for geoprocessing tool parameters


Script example

# FloatToRaster_sample.py
# Description: 
#   Converts a file of binary floating point values 
#   representing raster data to a raster.
# Requirements: None
# Author: ESRI
# Date: Oct 20, 2005
# Import system modules
import arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

try:
    # Set local variables
    InFloatFile = "C:/data/example.flt"
    OutRaster = "C:/data/raster1"

    # Process: FloatToRaster_conversion
    gp.FloatToRaster_conversion(InFloatFile, OutRaster)

except:
    # Print error message if an error occurs
    print gp.GetMessages()

Map Algebra syntax
See FloatGrid.

The Spatial Analyst extension must be present to use this link.

ArcObjects syntax
See ImportFromFloat.

The Spatial Analyst extension must be present to use this link.

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.