Hm, this way of smoothing seems a bit cumbersome to me. You've already looped over the LT map, so if you did `weight_sum[i,j] += prob_map[ie][icz]` the sum would have the result already.