HI all!
I want to execute a Python/Arcade command in ArcGIS Calculate Field which gives me a result for the catchment area (table).
The command should select all IDs in the list that have an X-value greater than the ID to be calculated (Here ID 1) and a Y-value less than the ID to be calculated (Here ID 1).
From the selected IDs, the respective areas should then be summed up and saved to the catchment area field.
In this example, the X and Y values of IDs 2 and 3 fulfill the condition. Thus, the respective areas would be added together, which would result in 15. The result would be stored in the catchment area of ID 1.
Thank you very much for your help!
ID | X | Y | area | catchment area |
1 | 1000 | 2000 | 23 | ? (15) |
2 | 1034 | 1083 | 10 | … |
3 | 1599 | 1743 | 5 | … |
4 | 1403 | 2004 | 34 | |