Flip (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Raster Tools" |
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
Usage tips
Command line and Scripting
Flip flips the grid from top to bottom along the horizontal axis through the center of the region.
You can save your output to GRID, IMG, TIFF, personal geodatabase, file geodatabase, or ArcSDE geodatabase.
When storing a raster dataset in a geodatabase, no file extension should be added to the name of the 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 your raster dataset to a geodatabase, you can specify a compression type and compression quality within the Raster Storage Settings in the Environment Settings dialog box.
The following environments affect this tool: current workspace, scratch workspace, output coordinate system, output extent, output CONFIG keyword, pyramid, raster statistics, compression, and tile size.
Map Algebra
The Flip function flips (mirrors) the raster from top to bottom along the horizontal axis through the center of the region.
Learn more about how to specify the input raster dataset in the Map Algebra expression of Raster Calculator.
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 |
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 |
# 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. |
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.