Hi All,
I have a road network dataset with 100m sections with a condition score and need an rolling average of the score for the previous 10 segments. This is for road maintenance planning & prioritisation.
I would like an efficient way to do this in python (to be incorporated into model builder). In a geoprocessing model I have achieved an average using a iterative selected distance and summary stats but it takes a very long time (over a month) to process the +100K sections. I have been shown it can be done in seconds in excel. To incorporate the process into an automated workflow, python is the go but I lack the experience.
The data example I have attached consists of:
- Road section - Road ID (RID) which identifies the road,
- Tdist start and end - Through distance / chainage, each section is identified by a start and end,
- C Score - Condition score.
I have access to the numpy library also. Hopefully some data science guru can help me.
I appreciate any help and thanks in advance 🙂
Example sections