Select to view content in your preferred language

Setting Minimum and Maximum Values in a Raster

1487
3
09-30-2010 03:22 AM
MattPowell
New Contributor
I want to be able to minus a value from a raster (using Raster Math) but to not go below a certain value. For example: I have a raster ranging from 0.2 to 8 and I want to minus 1, but for the values that would be -0.8 to become 0.

I have tried using the Output Z domains in the Environment Settings of raster Math, but to no avail.

Any suggestions?

Regards

Matt
Tags (1)
0 Kudos
3 Replies
EricRice
Esri Regular Contributor
Matt,

One way to get the answer is to do the subtraction like you normall would.  Then use a Con statement to say anything below your threshold should be equal to the threshold; if it's above the threshold, keep the value as-is.  In your example the threshold is 0.  Would this work for you?

Eric
0 Kudos
DonovanCameron
Deactivated User
Matt,

One way to get the answer is to do the subtraction like you normall would.  Then use a Con statement to say anything below your threshold should be equal to the threshold; if it's above the threshold, keep the value as-is.  In your example the threshold is 0.  Would this work for you?

Eric


Output = Con(Input, 0, Input, "Value < 0")
0 Kudos
MattPowell
New Contributor
Thanks guys, I'll give this a go.
0 Kudos