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

Raster to Float (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 raster dataset to a file of binary floating-point values representing raster data.


Usage tips

Command line syntax
An overview of the Command Line window
RasterToFloat_conversion <in_raster> <out_float_file>

Parameter Explanation Data Type
<in_raster>

The input raster dataset.

The raster can be integer or floating point.

Composite Geodataset
<out_float_file>

The output floating-point raster file. The file name must have a .flt extension.

File
Data types for geoprocessing tool parameters


Command line example

RasterToFloat c:\data\images.mdb\landuse.tif c:\data\landuse.flt

Scripting syntax
About getting started with writing geoprocessing scripts
RasterToFloat_conversion (in_raster, out_float_file)

Parameter Explanation Data Type
in_raster (Required)

The input raster dataset.

The raster can be integer or floating point.

Composite Geodataset
out_float_file (Required)

The output floating-point raster file. The file name must have a .flt extension.

File

Data types for geoprocessing tool parameters


Script example

# RasterToFloat_sample.py
# Description: 
#   Converts a raster into a file of binary floating point.
# Requirements: None
# Author: ESRI
# Date: Oct 20, 2005
# Import system modules
import arcgisscripting

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

try:
    # Set local variables
    InRaster = "C:/data/raster1"
    OutFloatFile = "C:/data/raster2float.flt"

    # Process: RasterToFloat_conversion
    gp.RasterToFloat_conversion(InRaster, OutFloatFile)

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

Map Algebra syntax
See GridFloat.

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

ArcObjects syntax
See ExportToFloat.

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.