53
GIS UPDATE? Today: Raster Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study Guide soon Mid Term II 11/13/14

GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Embed Size (px)

Citation preview

Page 1: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

GIS UPDATE?

Today:• Raster Analysis• Lab 10, Sea Level Rise Analysis

No Class on ThursdayMid Term Study Guide soonMid Term II 11/13/14

Page 2: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Raster Analysis• Raster math• Statistics: min, max, mean, std. dev.

• Local, Neighborhood, Zonal• Distance (cost)• Topography: Slope, aspect, contours• Reclassify• Raster / Vector Conversions

Originally Developed by James Graham, modified by J. R. Patton

Page 3: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Raster Data Model

Uses grid cells of a given dimension to represent the value or attribute of a real world entity or phenomenon

Page 4: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

The value may be a measurement or a code.

Cell values are numeric: can be either positive or negative, integer, or floating point.

Page 5: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Images:True Color Composite (multi-band raster data set; 3 raster layers; 1 each for RGB)

Spectral Reflectance

Page 6: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Raster Layer-> Properties

Page 7: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Name ArcGIS Attributes ArcGIS GRIDS* Geodatabase

Bit 1 bit

Chew 2 bit

Nibble 4 bit

Unsigned byte Unsigned 8 bit

Signed byte Signed 8 bit

Unsigned short Unsigned 16 bit

Signed short Short Integer Signed 16 bit Short Integer

Unsigned Integer Unsigned 32 bit

Signed Integer Signed 32bit Long integer

Long Long Integer

Float Float Floating-point 32 bit Single-precision floating point

Double Double Double-precision floating-point

String Text Text

Date Date Date

* ArcGIS documentation indicates the GRID values are always stored as 32-bit valuesSee: http://www.esri.com/news/arcuser/1002/files/table_2.pdf, http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Bit_depth_capacity_for_raster_dataset_cells ,http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?topicname=Technical_specifications_for_raster_dataset_formats

ArcGIS Data Types

Page 8: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Name Number of Bits

Number of Bytes

Minimum Value Maximum Value Number of Values Sig. Digits

Bit 1 1/8 0 1 2 (21) <1

Chew 2 ¼ 0 3 4 (22) <1

Nibble 4 ½ 0 15 16 (24)

Unsigned Byte 8 1 0 255 256 (28) >2

Signed Byte (aka chars)

8 1 -128 127 256 (28) >2

Unsigned Short 16 2 -32768 32767 65536 (216 or 64k) >4

Signed Short 16 2 0 65535 65536 (216 or 64k) >4

Unsigned Integer (Int) 32 4 0 4,294,967,295 4,294,967,296(232 or 4 Gig)

>9

Signed Integer 32 4 -2,147,483,648 2,147,483,647 4,294,967,295 >9

Long(always signed)

64 8 A big negative number

A big positive number

264 >19

Float(always signed)

32 4 ~10-40 ~1040 232 ~7

Double(always signed)

64 8 ~10-300 ~10300 264 ~15

See: http://en.wikipedia.org/wiki/Integer_overflow, http://steve.hollasch.net/cgindex/coding/ieeefloat.html

Computer-Based Numeric Data Types

Page 9: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Dana Tomlin and Joseph Berry (1970’s)A method of treating individual raster layers

as members of algebraic expressions2 * LayerA

Page 10: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Arithmetic Operators (+, -, *, /)Mathematical Functions (Sqr, Sqrt, Log, Abs, exp, int, etc.)Comparison Operators (>, >=, =, <>, <, <=)Boolean Operators (AND, OR, NOT, XOR)

LayerA + LayerB

Page 11: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

• Toolbox → Spatial Analysis Tools → Map Algebra → Raster Calculator

Page 12: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

3 4

2 3

0 1

2 9- =

Page 13: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Local:

• Arithmetic: +,-,/, *, • MOD (Modulo): returns the remainder

• Boolean: • OR: If either input is true, output is true• AND: If both inputs are true, output is true

• CON (Conditional)

Page 14: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

• Abs (absolute): flips negatives to positive• Ceil (ceiling): float to integer next highest integer value

(i.e. 1.1 -> 2)• Floor: float to integer giving next lowest integer value

(i.e. 1.1 -> 1)• Int (integer): truncates float to integer

Page 15: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

• <> (Not Equals)• == (Equals)• < (Less than)• <= (Less than or equal to)• > (Greater than)• >= (Greater than or equal to)

Page 16: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Raster Math: Boolean AND

0 0

1 1

0 1

0 1

0 0

0 1AND =

AND =0 1 0

“AND” works but the calculator will insert “&”

Page 17: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Raster Math: Boolean OR

0 0

0 1

1 1

0 1

1 1

0 1OR =

OR =0 1 1

“OR” works but the calculator will insert “!”

Page 18: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Probability of encountering the cascade treefrog (Litoria pearsoniana) within the forests of eastern Australia:

1 / (1 + exp(10.48 – 2.204 * log10(RAINFALL) – 2.037 * PALMS))

RAINFALL= the annual volume of rain falling in the watershed above the stream PALMS = 1 if palms are present at the site and 0 otherwise.

Map Algebra Examples:

[Fuel Density Hazard] + [Slope Hazard] + [Veg Type Hazard]Fire Hazard:

Page 19: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Green = suitable aspect (cell value = 1)Red = unsuitable aspect (cell value = 0)

Slope < 20 degrees South facing slopes aspect between 150 and 200 degrees.

Identifying suitable habitat

Green = suitable slope (cell value = 1)Red = unsuitable slope (cell value = 0)

Raster Analysis: reclass

Page 20: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Identify Slope < 20 degrees(Alternative method)

“Slope” < 20

Page 21: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study
Page 22: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

“suitable aspect” * “suitable slope”

suitable_habitat

Page 23: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Cell value = 1…Suitable slope & Suitable aspect

1 0 0 1

1 1 0 0

0 0 0 1

0 1 0 1

0 0 0 0

0 1 1 0

1 1 0 1

1 1 0 1

0 0 0 0

0 1 0 0

0 0 0 1

0 1 0 1

* =

Page 24: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

“No-Data” or NULL Values• Rasters are always rectangular• No-Data values are “transparent” and are not

used for calculations

Page 25: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Land cover

Digital Elevation Model (DEM)

Page 26: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Raster Sources• Scanned

– Topos• Remotely Sensed

– Aerial Photos– Satellite Photos– Digital Elevation Models (DEM)

• Derived Rasters– Hill shade– Slope– Aspect– Statistical Spatial Analysis

Page 27: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Digital Raster Graphic

Page 28: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Digital Elevation Model (DEM)

Each pixel value is an elevation

Page 29: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Digital Orthophoto Quarter Quad (DOQQ)1 meter aerial photos

Page 30: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Flight Characteristics

Page 31: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

LandSat• 7 Bands• 30m, 15m bw• Entire earth

• Twice a month• 26 years of

coverage • “Free”• EROS Data Center

Page 32: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

National Land Cover Dataset (NLCD)Based on Landsat Imagery

21 Classes based on cover type

Page 33: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

1992

2001

2006

Page 34: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Derived Rasters

• Land Cover from satellite and aerial• Topography: Slope, aspect, hillshade• Ecoregions• Suitable Habitat• Flood plains• Geological Regions

Page 35: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Shaded Relief (a.k.a Hillshade)

Page 36: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

GeoReferenced File Formats• GRID: ESRI’s format• GeoTIFF: Excellent support• MrSID: LizardTech• IMG: ERDAS• ECW: ERMapper• BIL, BIP, BSQ: See header• “ASCII” or “GRID ASCII” (asc)• Lots of others…

Page 37: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Conversions• Raster to Point:

– Raster to Point• Raster to Polyline:

– Countour– Streams– Raster to Polyline

• Raster to Polygon:– Viewsheds– Watershed– Raster to Polygon

• Point to Raster– Interpolation– Density– Point to Raster

• Polyline to Raster– Polyline to Raster

• Polygon to Raster– Polygon to Raster

Page 38: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Raster Analysis• Raster math• Statistics: min, max, mean, std. dev.

– Local, Neighborhood, Zonal• Distance (cost)• Topography: Slope, aspect, contours• Reclassify• Raster / Vector Conversions

Page 39: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

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 40: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

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 41: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

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 42: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Focal Statistics• Computes stats on pixels around an existing pixel• Example for Sum:

Esri ArcGIS 10 Help

Page 43: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

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 44: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Zonal Statistics

Esri ArcGIS 10 Help

Zone Layer

Value layer

Output layer (or table)

Page 45: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

• Con(<condition>,<true>,<false>)• Given a raster “condition”:

• Puts the true value where true and false value where false

Conditional Operator

Con!

Page 46: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

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

Page 47: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Elevations over 3000 meters

Page 48: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Reclassify

Page 49: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Mosaic Rasters• Data Management Tools -> Raster -> Raster Dataset -> Mosaic to new

Raster

Page 50: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study

Mosaic To Raster

Page 51: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study
Page 52: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study
Page 53: GIS UPDATE? Today: Raster Analysis Raster Analysis Lab 10, Sea Level Rise Analysis Lab 10, Sea Level Rise Analysis No Class on Thursday Mid Term Study