-1

This question already has an answer here:

Embarrassed that I haven't looked at this for some time (can't quite get the syntax down). (ArcGIS 10.2, Win7x64).

Within Map Algebra (Raster Calculator) Trying to add the cell values of 3 rasters, each raster has multiple fields. Trying to add: SumRaster = (Raster1, Field X)+ (Raster2, FieldY)+ (Raster3, FieldZ).

Can get to run (using primary VALUE field from each), want to specify FIELD value to SUM.

Alternately would be OK to export each Raster, setting my desired VALUE from this specified Field (and don't remember how to do this in 10.2).

Any help with Syntax would be great.

marked as duplicate by Chris W, Community Nov 11 '15 at 1:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I'd export them to grids and use cell statistics. Lookup is very slow on big rasters – FelixIP Nov 11 '15 at 1:15
  • They actually are grids and fortunately, reasonably small. So very happy that the LOOKUP function worked (plus, it's great to know about). Thanks. – Ecomapman Nov 12 '15 at 1:33
2

Use the Lookup function:

Lookup("Raster1", "FieldX") + Lookup("Raster2", "FieldY") + Lookup("Raster3", "FieldZ")
  • Excellent! Many thanks! (I've never actually used that, so this'll be most useful).... Appreciate your help. – Ecomapman Nov 11 '15 at 1:09
  • Done.... and thanks again; this was a huge help... and totally did it for me. – Ecomapman Nov 11 '15 at 1:21
  • The best way to say thanks to @Luke is by clicking the green accept check mark next to his answer which says that helped you and gives him 15 pts bonus. – PolyGeo Nov 11 '15 at 2:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.