Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Projections and Transformations toolset > Raster Tools

Flip (Data Management)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Raster Tools"


Related Topics

Reorients the raster by turning it over, from top to bottom, along the horizontal axis through the center of the raster. This may be useful to correct raster datasets that are upside down.


Illustration

Flip illustration

Usage tips

Command line syntax
An overview of the Command Line window
Flip_management <in_raster> <out_raster>

Parameter Explanation Data Type
<in_raster>

Input raster dataset.

Composite Geodataset
<out_raster>

Output raster dataset.

When storing the raster dataset in a file format, you need to specify the file extension: .img for an ERDAS IMAGINE file, .tif for TIFF, or no extension for GRID.

When storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality.

Raster Dataset
Data types for geoprocessing tool parameters


Command line example

Flip_management d:\rasterdata\raster1.img d:\rasterdata\raster2.img

Scripting syntax
About getting started with writing geoprocessing scripts
Flip_management (in_raster, out_raster)

Parameter Explanation Data Type
in_raster (Required)

Input raster dataset.

Composite Geodataset
out_raster (Required)

Output raster dataset.

When storing the raster dataset in a file format, you need to specify the file extension: .img for an ERDAS IMAGINE file, .tif for TIFF, or no extension for GRID.

When storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality.

Raster Dataset

Data types for geoprocessing tool parameters


Script example

# RasterTransformation_flip.py
# Description: Flips the raster along the horizontal axis.
# Requirements: None
# Author: ESRI
# Date: 12/22/03

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

try:
    # Set the input raster dataset name
    inputRaster = "C:/data/ingrid"

    # Set the output raster name
    outputRaster = "C:/data/outgrid"

    # Process: Flip
    gp.Flip_management(inputRaster, outputRaster)

except:
    # If an error occurred while running a tool, then print the messages
    print gp.GetMessages()

Map Algebra syntax
Flip(<grid>)

Parameter Explanation
<grid> The input raster to be flipped.

Map Algebra example

flip(ingrid)

ArcObjects syntax
There is no corresponding ArcGIS Spatial Analyst object to perform Flip. However, in core ArcGIS, similar functionality can be found in the ITransformationOp of the RasterGeometryProc object.
For more information, see ArcObjects Developer Help.

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