Py script to calculate %

716
2
11-09-2016 04:37 AM
RafaelRuas_Martins
New Contributor III

Hi everyone.

I'd like to calculate % of land classes in a PERCENT_FIELD based on AREA_FIELD w/ a py script to input it in a Model.

Thanks for any help.

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

Well you would have to summarize the area field, get the total, feed that back into a field calculator expression in order to perform the calculation.  You say within a model... python would be a lot easier with a searchcursor to gather the information and an updatecursor to provide the values for the % field.

BenjaminMittler
Occasional Contributor III
0 Kudos