raster analysis raster math topography: slope, aspect, contours reclassify raster / vector...

19
Raster Analysis • Raster math • Topography: Slope, aspect, contours • Reclassify • Raster / Vector Conversions • Statistics: min, max, mean, std. dev. – Local, Neighborhood, Zonal • Histograms • No Data / Null Value Issues • Future: – Distance (cost)

Upload: gregory-ball

Post on 21-Dec-2015

253 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Raster Analysis

• Raster math

• Topography: Slope, aspect, contours

• Reclassify

• Raster / Vector Conversions

• Statistics: min, max, mean, std. dev.– Local, Neighborhood, Zonal

• Histograms

• No Data / Null Value Issues

• Future:– Distance (cost)

Page 2: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Jim’s Secrets for Rasters

• Keep the overall size of the rasters below 200 Meg

• Use “Resample” to convert to relatively small “IMG” files (or GRIDS)– Data Management Tools -> Raster ->

Raster Processing -> Resample

• Watch “Results” for errors– Geoprocessing -> “Results”

• Use “Task Manager” when Arc crashes

Page 3: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Task Manager

• Right Click on Menu Bar, “Start Task Manager”

• “End Process” on all “Arc” processes

Page 4: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Raster Statistics

• Local– Operate on one pixel in each raster

• Neighborhood (or Focal)– Operate on a few pixels around each pixel

• Zonal– Collection of regions– Region is a contiguous area of the same

pixel values

• Global– Operate on the “whole” raster

Page 5: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Local Stats

• “Cell Statistics” computes stats on all the values for a pixel in a multi-band raster.

• Example for “Sum”:

Esri ArcGIS 10 Help

Page 6: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Neighborhood (or Focal)

• Result=Operation on pixels nearby

12 20 23 34 40

15 23 30 31 39

15 22 29 30 40

14 20 28 29 38

13 19 25 32 37

Columns

Rows

Page 7: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Focal Statistics

• Computes stats on pixels around an existing pixel

• Example for Sum:

Esri ArcGIS 10 Help

Page 8: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Zonal Statistics

• Computes statistics for defined regions (features)

• Tools:– Zonal Statistics:

• Outputs a raster (not sure of the value)

– Zonal Statistics as Table:• Outputs a table• Used to compute all kinds of valuable things:

– Percent land cover– Percent impervious cover– Percent water below a certain depth– Etc.

Page 9: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Zonal Statistics

Esri ArcGIS 10 Help

Zone Layer

Value layer

Output layer (or table)

Page 10: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

• Con(<condition>,<true>,<false>)

• Given a raster “condition”:– Puts the true value where true and false

value where false

Conditional Operator

Con!

Page 11: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Elevations over 3000 meters

• Con("W100N40.DEM“>3000,0,1)

Page 12: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Elevations over 3000 meters

Page 13: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Issues with No Data

Page 14: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Issues with Signed Data

Page 15: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Convert Values to “No Data”SetNull("W100N40.DEM"==55537,"W100N40.DEM")

Page 16: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Rasters Draw as “Solid” Color

• Click on “Type:” and select “Minimum-Maximum”

• ArcGIS will compute statistics

Page 18: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Exporting Histograms

Page 19: Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,

Titles and Axis Labels!