Py script to calculate %

828
2
11-09-2016 04:37 AM
RafaelRuas_Martins
Occasional Contributor

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
Frequent Contributor
0 Kudos