Raster calculator - how to cube?

855
3
Jump to solution
08-07-2022 11:29 PM
MorrisR2
New Contributor III

Hi - I'd appreciate some help with the Raster Calculator syntax. I'd like to raise a variable to the power of 3 (i.e. cube the value). I see the Square function, that works fine. I see the Power function but am not clear how to operate/insert this.

Many thanks

Richard 

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

did it work?


... sort of retired...

View solution in original post

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

OutRas = Raster("InRas1") ** 3

** (Power) operator—ArcGIS Pro | Documentation

which is the same as 

Power (Spatial Analyst)—ArcGIS Pro | Documentation

with the second raster replaced by just the number 3


... sort of retired...
DanPatterson
MVP Esteemed Contributor

did it work?


... sort of retired...
0 Kudos
MorrisR2
New Contributor III

Yes, many thanks!

0 Kudos