Conditional evaluation with Con

785
4
Jump to solution
05-10-2021 12:38 PM
GJB
by
New Contributor III

Hello, in ArcGIS 10. used geologic boring logs and the topo to raster tool to create a BedrockElevation raster.  However, some bedrock outcrop areas were interpolated to be at an elevation ‘higher’ than the GroundDEM, so I need to adjust these areas to actual ground elevation.  What is the best way to accomplish this?  It seems easy in concept but I’m having trouble making a formula to work in Raster Calculator. Any insight would be greatly appreciated. Thank you.

Concept:  New Raster = 

IF: "BedrockElevation" > “groundDEM”

THEN: assign elevation value from "groundDEM"

OTHEWISE: keep the elevation value of "BedrockElevation"

I tried: CON("BedrockElevation" > "GroundDEM", "GroundDEM", "BedrockElevation") 

0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

Functions are case-sensitive. Could you test

 

Con(("BedrockElevation" > "GroundDEM"), "GroundDEM", "BedrockElevation")

 

Let us know if you have any further issue?



Think Location

View solution in original post

0 Kudos
4 Replies
JayantaPoddar
MVP Esteemed Contributor

Functions are case-sensitive. Could you test

 

Con(("BedrockElevation" > "GroundDEM"), "GroundDEM", "BedrockElevation")

 

Let us know if you have any further issue?



Think Location
0 Kudos
DanPatterson
MVP Esteemed Contributor

Do you have a screengrab/text result of the actual expression?

Presumably you got an error or an unexpected result.  Could you report which and what.


... sort of retired...
0 Kudos
GJB
by
New Contributor III

Thank you for the response!!  It was solved as above.

0 Kudos
GJB
by
New Contributor III

Yes!  That was it, thank you for the response!

0 Kudos