Clip Raster with Envelope

Open Table of Contents ToolBox Implementation
Clips a raster with user defined envelope. The extent can be imported from an existing feature class or raster.

Inputs:

  • A raster dataset.

Outputs:

  • A raster with cell values equal to the cell values of the input raster, but only in the extent of the clip envelope.

Notes:

  • Initially the name of the output raster defines the raster format
    • no extension specified - ESRI binary GRID
    • .img extension (for example raster1.img) - ERDAS IMAGINE image.
    • .tif extension (for example raster1.tif - Tagged Image File Format (TIFF) image.
  • The initial output raster format can be changed by selecting the desired output in the dialog.
  • Currently only file based rasters are supported. Rasters cannot be stored in a GeoDatabase. After you get the desired result, you can export the raster to a GeoDatabase using the standard ArcGIS tools.
  • If the extents of the clip envelope are outside of the extents of the input raster, the result will be a copy of the input raster.

ToolBox implementation

Command line syntax

ETS_GPClipRasterWithEnvelope <Input Raster> <Out Raster> {Extent from Existing} <Extent>

Parameters

Expression Explanation
<Input Raster> Raster layer or raster dataset
<Out Raster> A String - the full name of the output raster (A raster with the same full name should not exist). The output raster type depends on the extension of the output file(see Notes above)
{Extent from Existing} A string representing the full path to an existing dataset. The extent of the output raster will have the extent of this dataset
<Extent> A String representing the extent of the output raster. Example
"0, 0, 500, 250"

Examples:

Scripting syntax

ETS_GPClipRasterWithEnvelope (Input Raster Out Raster, Extent from Existing, Extent)

See the explanations above:
<> - required parameter
{} - optional parameter

All ESRI products mentioned are trademarks of Environmental Systems Research Institute, Inc.
Copyright: Ianko Tchoukanski