Raster Calculator Scripts

This page is where I will post scripts for copying and pasting into the RASter Calculator in RAS Mapper.

——————————————————-
‘ rasscript for depth-varying roughness
‘ by Krey Price, Surface Water Solutions
‘ Requirements: Depth ‘d’
‘——————————————————-

If d = NoData Then
Output = NoData
ElseIf d > 2 Then
Output = 1
ElseIf d > 1 Then
Output = 2
ElseIf d > 0.5 Then
Output = 3
ElseIf d > 0.2 Then
Output = 4
ElseIf d > 0.1 Then
Output = 5
ElseIf d > 0.05 Then
Output = 6
ElseIf d > 0.02 Then
Output = 7
ElseIf d > 0.01 Then
Output = 8
Else
Output = 9
End If


Land Cover Data Table:

Depth > 2m
1m < Depth <2m
0.5m < Deph <1m
0.2m < Depth < 0.5m
0.1m < Depth < 0.2m
0.05m < Depth < 0.1m
0.02m < Depth < 0.05m
0.01m < Depth < 0.02m
Depth < 0.01m
No Data

Dummy Values

0.3
0.04
0.05
0.06
0.08
0.1
0.12
0.15
0.2
0.25

 


Here is a page where I’ve posted some scripts specific to flood hazard mapping, including Australian classification:

RASter Calculator scripts for flood hazard mapping