Raster Analysis Basics#

1. Raster Properties#

1.1 What is raster data?#

In its simplest form, a raster consists of a matrix of cells (or pixels) organized into rows and columns (or a grid) where each cell contains a value representing information, such as temperature. Raster grids can be outputs from raseter analysis, digital aerial photographs, imagery from satellites, digital pictures, or even scanned maps.

Single-band:

Temperature, elevation, soil pH value

RGB composite:

Time series, satellite imagery

single-band satellite image

3-band RGB composite satellite image

grayscale

rgb_composite

1.2 List Rasters#

import arcpy

gdb_worksp = r"..\data\class_data.gdb"
arcpy.env.workspace = gdb_worksp
rasters = arcpy.ListRasters()
rasters
['dem', 'habitat']

2. Run Raster Tools in ArcGIS Pro#

2.1 Euclidean distance#

2.2 Slice#

Slice method- Natural Breaks:

Natural Breaks classes are based on natural groupings inherent in the data.Class breaks are identified that best group similar values and that maximize the differences between classes. Natural breaks are data-specific classifications and not useful for comparing multiple maps built from different underlying information.

2.3 Reclassify#

  • RemapValue

  • RemapRange

2.4. Raster Calculator#

3. Raster Processing Environment#

General info about Geoprocessing environment settings.

MESC” are the four most important environment settings for raster analysis.

Mask:

set by feature class or data set

Extent:

set by feature class, raster dataset, or coordinates of the sidees of the rectainge (Left, Right, Top, and Bottom).

Snap raster:

set by a raster dataset.

no snapping raster

with snapping raster

snap_left

snap_right

Cell size:

set by a raster dataset or number.