The raster functions allow you to define processing operations that can be applied to one or more rasters. These functions are applied to the raster data on the fly as the data is accessed and viewed. This means they can be applied quickly, without the time it would otherwise take to create a processed file on disk. The raster functions are organized within a Raster function template, allowing you to create various processed products by chaining together multiple functions.

Global raster functions can be chained together with other functions, but they process data on a specified resolution and extent. Global functions work similarly like geoprocessing tools, and can even use environment settings that you specify. To learn more about this, see Global functions.

## Analysis

Function name | Description |
---|---|

Divides your raster into two distinct classes using the Otsu method, which distinguishes between background and foreground in imagery by creating two classes with minimal intraclass variance. | |

Heat Index function | Calculates the apparent temperature, based on air temperature and humidity. |

Calculates the Normalized Vegetation Differential Index (NDVI) values using the red and near-infrared bands. | |

NDVI Colorized function | Computes the NDVI from the input image and applies a color map to the result. |

Provides standardized detection of man-made features, soil, and vegetation by measuring levels of brightness, vegetation, and wetness. | |

Overlays several rasters using a common measurement scale and weights each according to its importance. | |

Weights and adds an array of rasters on a pixel-by-pixel basis. | |

Wind Chill function | Calculates the apparent temperature, based on air temperature and wind speed. |

## Analysis: Global

Function name | Description |
---|---|

Calculates, for each cell, its least-cost source based on the least accumulative cost over a cost surface. | |

Calculates the least accumulative cost distance for each cell from or to the least-cost source over a cost surface. | |

Calculates, for each cell, the nearest source based on Euclidean distance. | |

Calculates, for each cell, the Euclidean distance to the closest source. | |

Calculates a magnitude-per-unit area from point or polyline features using a kernel function to fit a smoothly tapered surface to each point or polyline. | |

Calculates the least-cost path from a source to a destination. The least accumulative cost distance is calculated for each pixel over a cost surface, to the nearest source. This produces an output raster that records the least-cost path, or paths, from selected locations to the closest source pixels defined within the accumulative cost surface, in terms of cost distance. | |

Determines the raster surface locations visible to a set of observer features, using geodesic methods. | |

Calculates statistics on values of a raster within the zones of another dataset. |

## Appearance

Function name | Description |
---|---|

Adjusts the difference between colors and overall lightness of the image. | |

Filters an image, which can be used to sharpen, blur, detect edges within an image, or other kernel-based enhancements. | |

Enhances the spatial resolution of a multiband image by fusing it with a higher-resolution panchromatic image. | |

Changes the spatial resolution of a dataset. | |

Statistics and Histogram function | Defines the descriptive statistics for a dataset or uses the distribution from another dataset. |

Enhances an image by changing properties, such as brightness, contrast, and gamma through multiple stretch types. |

## Classification

Function | Description |
---|---|

Assigns each pixel to a class, within a legend. | |

Uses the maximum likelihood algorithm to assign pixels to a class. | |

Grows regions from seed points. | |

Groups pixels that are adjacent and have similar spectral characteristics into segments. This can be used as a second raster in the Classify function. |

## Conversion

Function | Description |
---|---|

Converts the color model of an image from either the HSV (hue, saturation, and value) to RGB (red, green, and blue), or from RGB to HSV. | |

Transforms the pixel values to display the raster data as a grayscale or a red, green, blue (RGB) image, based on a color map. | |

Converts a single-band raster with a color map to a three-band RGB (red, green, and blue) raster. | |

Derives the magnitude from RADARSAT data so it can be displayed. | |

Converts a multiband raster into a single-band grayscale raster. | |

Rasterize Attributes Function | Enriches a raster by adding bands derived from values of specified attributes, from an external table or a feature service. |

Allows you to group pixel values together and assign the group a new value. | |

Applies a matrix to a multiband image to convert a false color image to a pseudo color image. | |

Converts from one unit of measurement to another. | |

Converts data with magnitude and direction values into vectors. | |

Zonal Remap Function | Allows you to remap pixels in a raster based on zones defined in another raster and zone-dependent value mapping defined in a table. |

## Correction

Function | |
---|---|

Adjusts image brightness values based on sun elevation, acquisition date, and the gain and bias settings for each band. The applicable sensors are Landsat, IKONOS, and QuickBird. | |

Orthorectifies imagery by incorporating an elevation model. | |

Calibrates RADARSAT-2 datasets so the pixel values are a true representation of the backscatter. Radar calibration is not available for RADARSAT-2 SSG or SPG products. | |

Smooths out noise from radar datasets while seeking to preserve sharp edges of features. |

## Data management

Function | Description |
---|---|

Uses an attribute table to symbolize a single-band raster. This is useful when you want to present imagery with specific labels and colors. If your table contains fields named red, green, and blue, values within those fields will be used like a color map when rendering the image. | |

Buffers the last accessed pixel blocks. | |

Clips a raster using a rectangular shape according to the extents defined or clips a raster to the shape of an input polygon feature class. The shape defining the clip can clip out the extent of the raster, or clip out an area within the raster. | |

Combines multiple rasters into one multiband raster. | |

Reorders or extracts bands from a raster. | |

Interpolate Irregular Data function | Interpolates from point clouds or irregular grids. |

Key Metadata Function | Allows you to insert or override key metadata of a raster. Key metadata is extracted from the raster's metadata and is generally associated with the following: a raster product, a mosaic dataset created using the product description, each raster within a mosaic dataset that was added using specific raster types. |

Creates NoData by defining a range of pixel values. Any values outside the range return as NoData. | |

Stitches a set of raster datasets together to create one dataset. | |

Converts features to raster. Features are assigned pixel values based on the feature's field, such as OBJECTID. Optionally, the pixel values can be based on a user-defined value field in the input feature's attribute table. | |

Dynamically modifies the function parameter used in a mosaic dataset or image service without physically persisting the changes. | |

Reproject function | Modifies the projection of a raster dataset, mosaic dataset, or raster item in a mosaic dataset. It can also resample the data to a new cell size and define an origin. |

Swath function | Interpolates from irregular grids or swath data. |

Transpose Bits function | Unpacks the bits of the input pixel and maps them to specified bits in the output pixel. The purpose of this function is to manipulate bits from a couple inputs, such as the Landsat 8 quality band products. |

## Math

Abs function | Calculates the absolute value of the pixels within a raster. |

Uses the pixel values to calculate mathematical operations on overlapping rasters. | |

Calculates indexes using the predefined formulas or user-defined expressions. | |

Computes a raster from a mathematical expression based on the raster bands. | |

Divide function | Divides the values of two rasters on a pixel-by-pixel basis. |

Exp function | Calculates the base e exponential of the pixels in a raster. |

Exp10 function | Calculates the base 10 exponential of the pixels in a raster. |

Exp2 function | Calculates the base 2 exponential of the pixels in a raster. |

Float function | Converts each pixel value of a raster into a floating-point representation. |

Int function | Converts each pixel value of a raster to an integer by truncation. |

Ln function | Calculates the natural logarithm (base e) of each pixel in a raster. |

Log10 function | Calculates the base 10 logarithm of each pixel in a raster. |

Log2 function | Calculates the base 2 logarithm of each pixel in a raster. |

Minus | Subtracts the value of the second input raster from the value of the first input raster on a pixel-by-pixel basis. |

Mod function | Finds the remainder (modulo) of the first raster when divided by the second raster on a pixel-by-pixel basis. |

Negate function | Changes the sign (multiplies by -1) of the pixel values of the input raster on a pixel-by-pixel basis. |

Plus function | Adds (sums) the values of two rasters on a pixel-by-pixel basis. |

Power function | Raises the pixel values in a raster to the power of the values found in another raster. |

Round Down function | Returns the next lower integer value, just represented as a floating point, for each pixel in a raster. |

Round Up function | Returns the next higher integer value, just represented as a floating point, for each pixel in a raster. |

Square function | Calculates the square of the pixel values in a raster. |

Square Root function | Calculates the square root of the pixel values in a raster. |

Times function | Multiplies the values of two rasters on a pixel-by-pixel basis. |

## Math: Conditional

The Spatial Analyst license is required to use the Math: Conditional functions.

Performs a conditional if/else evaluation on each of the input cells of an input raster. | |

Set Null sets identified cell locations to NoData based on a specified criteria. It returns NoData if a conditional evaluation is true, and returns the value specified by another raster if it is false. |

## Math: Logical

The Spatial Analyst license is required to use the Math: Logical functions.

Bitwise And function | Performs a Bitwise And operation on the binary values of two input rasters. |

Bitwise Left Shift function | Performs a Bitwise Left Shift operation on the binary values of two input rasters. |

Bitwise Not function | Performs a Bitwise Not (complement) operation on the binary value of an input raster. |

Bitwise Or function | Performs a Bitwise Or operation on the binary values of two input rasters. |

Bitwise Right Shift function | Performs a Bitwise Right Shift operation on the binary values of two input rasters. |

Bitwise Xor function | Performs a Bitwise eXclusive Or operation on the binary values of two input rasters. |

Boolean And function | Performs a Boolean And operation on the pixel values of two input rasters. If both input values are true (nonzero), the output value is 1. If one or both inputs are false (zero), the output is 0. |

Boolean Not function | Performs a Boolean Not (complement) operation on the pixel values of the input raster. If the input values are true (nonzero), the output value is 0. If the input values are false (zero), the output is 1. |

Boolean Or function | Performs a Boolean Or operation on the cell values of two input rasters. If one or both input values are true (nonzero), the output value is 1. If both input values are false (zero), the output is 0. |

Boolean Xor function | Performs a Boolean eXclusive Or operation on the cell values of two input rasters. If one input value is true (nonzero) and the other false (zero), the output is 1. If both input values are true or both are false, the output is 0. |

Equal To function | Performs an equal-to operation on two rasters on a pixel-by-pixel basis. |

Greater Than function | Performs a Relational greater-than operation on two inputs on a pixel-by-pixel basis. Returns 1 for pixels where the first raster is greater than the second raster and 0 for pixels if it is not. |

Greater Than Equal function | Performs a Relational greater-than-or-equal-to operation on two inputs on a pixel-by-pixel basis. Returns 1 for pixels where the first raster is greater than or equal to the second raster and 0 if it is not. |

Is Null function | Determines which values from the input raster are NoData on a pixel-by-pixel basis. Returns a value of 1 if the input value is NoData and 0 for pixels that are not. |

Less Than function | Performs a Relational less-than operation on two inputs on a pixel-by-pixel basis. Returns 1 for pixels where the first raster is less than the second raster and 0 if it is not. |

Less Than Equal function | Performs a Relational less-than-or-equal-to operation on two inputs on a pixel-by-pixel basis. Returns 1 for pixels where the first raster is less than or equal to the second raster and 0 where it is not. |

Not Equal function | Performs a Relational not-equal-to operation on two inputs on a pixel-by-pixel basis. Returns 1 for pixels where the first raster is not equal to the second raster and 0 for pixels where it is equal. |

## Math: Statistical

The Spatial Analyst license is required to use the Math: Statistical functions.

Orders raster bands into an array and identifies the band that has the minimum, maximum, median, or duration of pixel values. | |

Calculates statistics from multiple rasters on a pixel-by-pixel basis. The available statistics are Majority, Maximum, Mean, Median, Minimum, Minority, Range, Standard Deviation, Sum, and Variety. | |

Statistics function | Define a neighborhood and calculate the statistics within those pixels. |

## Math: Trigonometric

The Spatial Analyst license is required to use the Math: Trigonometric functions.

ACos function | Calculates the inverse cosine of the pixels in a raster. |

ACosH function | Calculates the inverse hyperbolic cosine of the pixels in a raster. |

ASin function | Calculates the inverse sine of the pixels in a raster. |

ASinH function | Calculates the inverse hyperbolic sine of the pixels in a raster. |

ATan function | Calculates the inverse tangent of the pixels in a raster. |

ATan2 function | Calculates the inverse tangent (based on x,y) of the pixels in a raster. |

ATanH function | Calculates the inverse hyperbolic tangent of the pixels in a raster. |

Cos function | Calculates the cosine of the pixels in a raster. |

CosH function | Calculates the hyperbolic cosine of the pixels in a raster. |

Sin function | Calculates the sine of the pixels in a raster. |

SinH function | Calculates the hyperbolic sine of the pixels in a raster. |

Tan function | Calculates the tangent of the pixels in a raster. |

TanH function | Calculates the hyperbolic tangent of the pixels in a raster. |

## Surface

Function | |
---|---|

Shows the direction that each pixel is facing. | |

Curvature function | Calculates the curvature of a raster surface, optionally including profile and plan curvature. |

Elevation Void Fill function | Creates pixels where holes exist in your elevation data. |

Hillshade function | Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image. |

Shaded Relief function | Creates a multiband, color-coded, 3D representation of the surface. The sun's relative position is taken into account for shading the image. |

Slope function | Calculates the rate of change from one pixel value to its neighbors. |