Clips a raster dataset with user defined envelope. The extent can be imported from an existing feature dataset, raster or TIN.
Parameters
Expression | Explanation |
---|---|
Function Name | ClipRasterWithEnvelope |
<input raster> | A String - the full path to the input raster dataset. |
<output raster> | A String - the full name of the output raster. |
<reference dataset> | A String - the full path to the reference dataset |
{MinX} | A Double - minimum X of the extent. |
{MaxX} | A Double - maximum X of the extent. |
{MinY} | A Double - minimum Y of the extent. |
{MinX} | A Double - maximum Y of the extent. |
ETSPath used in the table below is the full path to ETSRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETSurface\ETSRun.exe")
Language | Syntax |
---|---|
Python | subprocess.call([ETSPath, "ClipRasterWithEnvelope", "input raster", "output raster", "reference dataset", "MinX", "MaxX", "MinY", "MaxY"]) |
.NET using ETSRun.exe | StartInfo.FileName = ETSPath StartInfo.Arguments = "ClipRasterWithEnvelope" "input raster" "output raster" "reference dataset" "MinX" "MaxX" "MinY" "MaxY" |
.NET using ETSOutX.dll | ClipRasterWithEnvelope(input raster, output raster, reference dataset, MinX, MaxX, MinY, MaxY) |
ArcPy | arcpy.ClipRasterWithEnvelope("input raster", "output raster", "reference dataset", "MinX", "MaxX", "MinY", "MaxY") |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.