Replace Nodata

Open Table of Contents ToolBox Implementation
Replaces the cells with NODATA values in the input rasters with the values of the corresponding cells of the replace raster or a constant.

Inputs:

  • Input Raster dataset
  • Output raster name and format
  • Optional - Replace Raster dataset
  • Optional - Constant value to replace the NODATA values.

Output:

  • A raster dataset.

Notes:

  • One of the optional parameters is needed
  • 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.
  • The input raster must be in a projected coordinate system.

ToolBox implementation

Command line syntax

ETS_GPReplaceNoData <Input Raster>  <Out Raster> {Replace Raster} {Replace Value}

Parameters

Expression Explanation
<Input Raster> A Raster dataset or Raster layer
<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)
{Replace Raster} A Raster dataset or Raster layer  - to be used as a replacement of the NODATA values
{Replace Value} A Number - to be used as a replacement of the NODATA values

Scripting syntax

ETS_GPReplaceNoData (Input Raster,  Out Raster, Replace Raste, Replace Value)

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

 

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