Select to view content in your preferred language

Calculating the area and the percent of cells of each value in a raster! Automaticall

9570
13
06-02-2011 06:01 AM
JamalNUMAN
Legendary Contributor

Calculating the area and the percent of cells of each value in a raster! Automatically?

please, see the attached images that show my question


Explanation:

the attribute table of the raster typically contains information for the value and their count.

all the time we need to calculate the area and percent represented by each value! that takes much of our time!

model builder might be the solution! but two input values are still manual!

- we need to multiply the count of each value by it resolution! then

how to make the model builder read this value automatically??????

- we need to divide each of these area by the sum of all areas! then

how to make the model builder reads this value automatically?


regards

Jamal

 

 

Clip_296.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
13 Replies
DanPatterson_Retired
MVP Emeritus
http://ideas.arcgis.com/
post there as a requested feature, otherwise you will have to create your own in Python
by Anonymous User
Not applicable
Original User: Jamal432@gmail.com

http://ideas.arcgis.com/
post there as a requested feature, otherwise you will have to create your own in Python


Thank you Dan for the answer.

I don't know why the http://ideas.arcgis.com is extremely slow over net!!!!

In addition, the process at which the developers may take our suggestions into consideration is slow as well.

but sure, i will request it.

regards

Jamal
ErikEngstrom
Frequent Contributor
Please post a link to your idea. I'd like to vote for it 🙂
by Anonymous User
Not applicable
Original User: Jamal432@gmail.com

Please post a link to your idea. I'd like to vote for it 🙂


I'm not sure if i have posted it.

thanks

Jamal
EricRice
Esri Regular Contributor
Jamal,

You can do this in model builder using Summary Statistics, Zonal Geometry as Table, plus Add/Calculate/Join Field. There is no python required, just an understanding of in-line variables and preconditions.

Here is the input table, output table, and model in screenshot form.

If you have questions, feel free to ask.

Best,
Eric
by Anonymous User
Not applicable
Original User: Jamal432@gmail.com

Jamal,

You can do this in model builder using Summary Statistics, Zonal Geometry as Table, plus Add/Calculate/Join Field. There is no python required, just an understanding of in-line variables and preconditions.

Here is the input table, output table, and model in screenshot form.

If you have questions, feel free to ask.

Best,
Eric


This is quite useful Eric. Could you please send the model as tbx file so that we can see the settings for each command in the model?
EricRice
Esri Regular Contributor
Jamal,

The attached zip file contains a geoprocessing package I created in 10.1. Drag it into your map, go to the results tab under Shared, and rerun the tool with your inputs. If you want to see the model, right click the tool and select "Edit". Once the model is open in model builder, you can Save As to save a local copy.

Best,
Eric
by Anonymous User
Not applicable
Original User: Jamal432@gmail.com

Jamal,

The attached zip file contains a geoprocessing package I created in 10.1. Drag it into your map, go to the results tab under Shared, and rerun the tool with your inputs. If you want to see the model, right click the tool and select "Edit". Once the model is open in model builder, you can Save As to save a local copy.

Best,
Eric


Many thanks for the help Eric. This is very useful.

I�??ll try it and see if it works with me

Best

Jamal
EricRice
Esri Regular Contributor
Jamal,

How did it work for you?  Any questions on the model?

Best,
Eric