Title: Snow Depth and Temperature
1Snow Depth and Temperature
100 m
150 m
100 m
150 m
4
6
2
4
Initial Snow Depth (cm)
Temperature (º C)
2New depth calculation using Raster Calculator
3The Result
- Outputs are on 150 m grid.
- How were values obtained ?
38
52
41
39
4Nearest Neighbor Resampling with Cellsize Maximum
of Inputs
40-0.54 38
55-0.56 52
38
52
42-0.52 41
41-0.54 39
41
39
5Controlling the scale of the output
The scale triplet
a) Extent
b) Spacing
c) Support
From Blöschl, G., (1996), Scale and Scaling in
Hydrology, Habilitationsschrift, Weiner
Mitteilungen Wasser Abwasser Gewasser, Wien, 346
p.
6Spatial Analyst Options
Extent
Spacing Support
7Raster Calculator Evaluation of temp150
4
6
6
6
4
4
4
2
4
2
2
4
4
Nearest neighbor to the E and S has been
resampled to obtain a 100 m temperature grid.
8Raster calculation with options set to 100 m grid
- Outputs are on 100 m grid as desired.
- How were these values obtained ?
9100 m cell size raster calculation
40-0.54 38
50-0.56 47
55-0.56 52
42-0.52 41
38
52
47
47-0.54 45
43-0.54 41
41
45
41
42-0.52 41
6
44-0.54 42
39
41
42
41-0.54 39
2
4
4
Nearest neighbor values resampled to 100 m grid
used in raster calculation
4
10What did we learn?
- Spatial analyst automatically uses nearest
neighbor resampling - The scale (extent and cell size) can be set under
options - What if we want to use some other form of
interpolation?
11Find Temperature for each 100m cell
6
4
100m
150m
4
2
12Zonal Statistics
Value shown is the mean in each 100m polygon of
the 10m grid values it overlays
13Convert Features to Raster
100 m grid with mean Temperature value in each
cell
14Snow Computation
Dnew Dold 0.5 T
T
Dold
15Calculating new snow depths
Use raster calculator to get grid, multiply grid
by 10 and convert to integer grid, then convert
to polygon, then divide value attribute by 10 to
get display
16Summary of Snow Computation
Dnew Dold 0.5 T 38 40 0.5 4
Dold
Dnew
T
17Some things about Grids.
- Value attribute table
- Conversion from rasters to polygons
- Editing grids??
18Value Attribute Table
- A record for each unique value that appears in
the grid - Value is the value in the grid
- Count is the number of cells containing this
value
temp
19Convert Cells to Polygons
20Temperature Polygons
4 cells make 4 polygons because none of the
cells with common values have common sides.
Temppoly.shp
21Snowpoly
9 cells converts to 8 polygons because the two
cells with 42 have a common side
22Can Edit Only Features not Rasters
23Homework 3 Models
Does snowmelt calculations on 100m grid
Creates 100m polygons and Temperatures in them
using a 10m grid
- Can t mix up models whose fundamental grid cell
size is different - Run Temperature first
- Then run Snowmelt
24Temperature Model
Input Temp.txt Outputs Temp150m (Grid),
Poly100m.shp, Tempstat.dbf
25Temperature grids
ncols 2 Nrows 2 xllcorner 0 yllcorner 0 cellsize
150 NODATA_value -9999 4 6 2 4
26Create a random raster
With raster environment same as snow
27Creating Unique 100m polygons
Create a random raster with 100m zones whose cell
values are randomly generated and multiplied by
1000 to get unique integers
28Zonal Statistics Table
29Snowmelt Model
Inputs TempStat.dbf, Poly100m.shp,
Snow.txt Outputs Snow100m, Temp100m, NewSnow
(Grids)
Default cell size 100m
30100m Temp Grid
Use ID as Join Field
Use Mean as value to be converted to raster
31Snowmelt
Dnew Dold 0.5 T 38 40 0.5 4
ncols 3 Nrows 3 xllcorner 0 yllcorner 0 cellsize
100 NODATA_value -9999 40 50 55 42 47 43 42 44 41
32Rules for Working with Rasters
- A given model can have only one default cell size
- Raster cells can be converted to Feature polygons
provided raster values are integer - Zonal statistics can be used to summarize raster
values within Feature polygons provided that the
cell size is smaller than the polygon size. - ArcToolbox tool Create Random Raster can be used
to create rasters with unique values in each cell