AnsweredAssumed Answered

Help calling a table attribute, and using it as a variable?

Question asked by kear1384 on Jun 19, 2013
Latest reply on Jun 21, 2013 by curtvprice
I have a table with multiple min and a max numbers for multiple points.  I would like to use "Extract by Attribute" to pull the fitting areas from a DEM which corresponds to each area.

Reworded: I would like to pull all the raster cells which fall inside the ranges provided for each specific area by calling the table.

Object     Area1Min  Area1Max  Area2Min Area2Max
   A1          1000          1500        750          1200
   A2          900            1700       1200         1500

Using this example I would create four new rasters of A1 in Area1, A1 in Area2...

I am having trouble setting up the variable which would be used in the following code:

attExtract = ExtractByAttributes("elevation", "VALUE > 1000")
attExtract.save("c:/sapyexamples/output/attextract")

I know this code works:
attExtract = ExtractByAttributes("dem", "VALUE > 1000 AND VALUE < 1500")

I need to replace the 1000 and 1500 with a call to the places Area1Min and Area1Max for A1.

Thanks in advance!

Outcomes