Using the Raster calculator to determine slope length

4513
11
04-11-2016 05:00 PM
Kofi_Lartey
New Contributor III

Hallo All, I am trying to use the raster calculator to calculate Slope length SL for my RUSLE model. All the necessary layers as inputs have been prepare including flow accumulation, slope in percentage. But when iinput the formula (see attached) and run the map algebra tool i receive an error message. Any ideas where i may be missing it?

Tags (1)
0 Kudos
11 Replies
DanPatterson_Retired
MVP Esteemed Contributor

drop the LS ==  that is checking for equality, your output will be named as given in the output line

use sqrt ... not sure if ^0.5 works in all places... but be safe.

why don't you split stuff and do the calculations in baby steps to ensure that each component works?

you can then delete the intermediate steps or combine them into one smokin' one-liner if the pieces work.

PS move this to Spatial Analyst​ it has nothing to do with coordinate reference systems

DarrenWiens2
MVP Honored Contributor

What is LS == supposed to mean?

Also, I suspect you're going to want to change ^ to ** (Map Algebra operators).

Kofi_Lartey
New Contributor III

@Darren LS represent Slope length and is one important input in the RUSLE model

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

There many links on this site, albeit, 3-5 years old on LS ... search using ... usle ... as a search key, for more background and links

0 Kudos
Kofi_Lartey
New Contributor III

checked but found only one, and that was on model building, but thanks. Will follow your earlier suggestion to do it peace meal and see what happens.

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Considering the output of the expression in Raster Calculator is Slope Length (LS), you need to do following two steps

1) Delete LS== from the expression. (You do not mention the LHS in the expression here in Raster Calculator)

2) Replace ^ with ** for square operation.

DanPatterson_Retired
MVP Esteemed Contributor

covered way above... and sqrt would be better

0 Kudos
Kofi_Lartey
New Contributor III

@Dan, i have done it in bits as you suggested and it worked, but i am confused with "sqrt" suggested. below is the equation i am using and m is 0.5, so in fact i used the boolean sign, hope i was right

  

LS_equation.JPG

0 Kudos
Kofi_Lartey
New Contributor III

This was how the whole thing was run; the final ourput SL was the product of rastercalc1 and rastercalc 2 LS_Summary.JPG

0 Kudos