Hi,

this is a little embarassing but i have the following problem, and i'm sure there's a very simple solution:

I want to multiply the values of 2 rasters, using one of them as a factor to reduce the values of the first raster.

The problem is, the cells of the second raster contains 0, which, of course, results in 0 in the output-raster, which is wrong. :)

I want the Raster Calculator to do just nothing if this case occurs.

I hope someone can help me!

My calculation looks something like that:

(("second_raster.tif") * 0.6) * "first_raster"

this is a little embarassing but i have the following problem, and i'm sure there's a very simple solution:

I want to multiply the values of 2 rasters, using one of them as a factor to reduce the values of the first raster.

The problem is, the cells of the second raster contains 0, which, of course, results in 0 in the output-raster, which is wrong. :)

I want the Raster Calculator to do just nothing if this case occurs.

I hope someone can help me!

My calculation looks something like that:

(("second_raster.tif") * 0.6) * "first_raster"

Using ArcToolbox > Spatial Analyst Tools > Map Algebra > Raster Calculator, it should look like this:

Con("arroyo_h" == 0, "vcf_tree", (("vcf_tree" / 100) * 0.6) * "arroyo_h")

Translation:

IF: "arroyo_h" == 0

THEN: assign value from "vcf_tree"

ELSE: (("vcf_tree" / 100) * 0.6) * "arroyo_h"

It looks like your rasters are floating point. The default resampling method, performed on the fly, is nearest neighbor. This is not appropriate for floating point rasters and will yield undesirable results. I would recommend resampling your rasters to a consistent resolution prior to analysis. You can find the Resample tool under: Data Management Tools > Raster > Raster Processing > Resample. Under the "Resampling Technique" drop-down select "BILINEAR".