Select to view content in your preferred language

How do I calculate with square numbers in ArcGIS Pro with Raster Calculator

903
2
Jump to solution
05-12-2023 12:57 PM
AlexanderSchuhmacher
New Contributor

Hello everybody, 

 

i'm trying to do a compromise programming by using the raster calculator. 

Therefor i already rastered and reclassifed my data to do the calculation via raster calculator. 

The formula i would like to use is the following:

AlexanderSchuhmacher_0-1683920703726.png

For P there are 3 different numbers i would like to use: 1, 2 and 10. 

Actually u can exclude the denominator because it is 1-0=1. 

By calculating with P equal to 1 i get the results i want to:

AlexanderSchuhmacher_1-1683920912174.png

with the value of 

AlexanderSchuhmacher_2-1683920943856.png

 

But if i try to use p as equal to 2 my results are disappointing. 

AlexanderSchuhmacher_3-1683921120833.png

With the value of 

AlexanderSchuhmacher_4-1683921145076.png

 

I have tried using the ^ symbole, aswell as square(), and multiplying the raster by itself but the results are still the same. 

 

Does anybody know on how to use the square numbers reasonably?

Thank you so much for your help in advance!

 

PS: 

This is acutaly the command im using in raster calculator: 

(((0.0001065673*((1-"Clip_autobahn.tif")^2))+(0.0001616659*((1-"Clip_HBF.tif")^2))+(0.0003389557*((1-"Clip_Innenstadt.tif")^2))+(0.0017410576*((1-"Clip_OPNV.tif")^2))+(0.0022480425*((1-"Clip_Schulen.tif")^2))+(0.0022480425*((1-"Clip_Kindergarten.tif")^2))+(0.0007933861*((1-"Clip_Supermarkt.tif")^2))+(0.0015687854*((1-"Clip_GeIn100.tif")^2))+(0.0002218016*((1-"Clip_WohnenMisch500.tif")^2))+(0.0000970058*((1-"Clip_GrWas600.tif")^2))+(0.0013743581*((1-"Clip_laerm.tif")^2))+(0.0009187989*((1-"Clip_Neigung.tif")^2))+(0.0012601951*((1-"Clip_WohnenJN.tif")^2))+(0.0063049764*((1-"Clip_Groesse.tif")^2))+(0.0053271346*((1-"Clip_Shape.tif")^2))+(0.0002822758*((1-"Clip_ErschlossenStrassen.tif")^2))+(0.0022364378*((1-"Clip_BRW.tif")^2))+(0.0126653831*((1-"Clip_Miete.tif")^2))+(0.0064344619*((1-"Clip_Leerstand.tif")^2))+(0.0022364378*((1-"Clip_FertigWohnungen.tif")^2)))^(0.5))

 

 

0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Frequent Contributor
#Square
Power(inRaster, 2.0)

#Cube
Power(inRaster, 3.0)

#Square root
Power(inRaster, 0.5)

#Inverse
Power(inRaster, -1.0)

#etc.

View solution in original post

2 Replies
DavidPike
MVP Frequent Contributor
#Square
Power(inRaster, 2.0)

#Cube
Power(inRaster, 3.0)

#Square root
Power(inRaster, 0.5)

#Inverse
Power(inRaster, -1.0)

#etc.
AlexanderSchuhmacher
New Contributor

Thank you! It worked!

 

0 Kudos