Raster to Float (Conversion)

License Level:BasicStandardAdvanced

Summary

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

Usage

Syntax

RasterToFloat_conversion (in_raster, out_float_file)
ParameterExplanationData Type
in_raster

The input raster dataset.

The raster can be integer or floating-point type.

Raster Layer
out_float_file

The output floating-point raster file.

The file name must have a .flt extension.

File

Code Sample

RasterToFloat example (Python window)

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

import arcpy
from arcpy import env
env.workspace = "C:/data"
inRaster = "elevation"
outFloat = "c:/output/elevation.flt"
arcpy.RasterToFloat_conversion("elevation", "c:/output/elevation.flt")
RasterToFloat example (stand-alone script)

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

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

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inRaster = "elevation"
outFloat = "c:/output/elevation.flt"

# Execute RasterToFloat
arcpy.RasterToFloat_conversion(inRaster, outFloat)

Environments

Related Topics

Licensing Information

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