AnsweredAssumed Answered

how to calculate overlapping rasters

Question asked by geke0001@stud.slu.se_gis_slu on Sep 26, 2019
Latest reply on Oct 13, 2019 by curtvprice

Hi,

 

There was a similar question 3 years ago, but still I have some difficulties executing a code in Raster Calculator. So, I have 2 rasters :
1. "Seal Density", with 5 classes: 0, 1, 2, 3, 4
2. "Fishing Intensity", with 10 classes: 0, 3, 6, 11, 19, 28, 38, 48, 59, 73

 

I arbitarily labelled the classes myself based on the ranges (provided by Kernel Density analysis). In order to identify overlapping pixels, I ran the code:

 

Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m" ==  0), 00, (Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m" == 3), 03, (Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m" == 6), 06, (Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m"== 11), 011, (Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m"== 19), 019, (Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m"== 28), 028, (Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m"== 38), 038, (Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m"== 48), 048, (Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m"== 59), 059, (Con(("KernelD_seal_all" == 0) & ("LineDen_Fish_ALL_100m"== 73), 073, Con(("KernelD_seal_all" == 1) & ("LineDen_Fish_ALL_100m" ==  3) ..... and so on with all combinations.

It's very lengthy and I don't get the 50 combinations (50 classes?) I expect, rather I only get a "zero" class.

Thank you in advance!

Outcomes