I’m struggling to find a way to create polar histograms in grasshopper as a way to compare city/district/neighborhood street orientations. My intent is to analyze neighborhood street grid diversity similar to how this blog (https://geoffboeing.com/2018/07/comparing-city-street-orientations/) analyzes street orientation at a city level. A python script has been provided as part of the referenced post, although I’d like to see if this could be recreated in grasshopper in order to have more control on the subset of street segments being analyzed.
Has anyone created anything similar or have any ideas about how the python script can be translated into grasshopper?
It must not be difficult to recreate but it depends a lot of the data you can provide. So post some curves/streets you have.
If curves ends at intersection you have just to get the tangent at the intersection, orient it in the good direction then measure the angle relative to the north, then simplify the angle, say to 5°, use Set and count !
After that it measures the angle on point of network where there is more strict than 2 intersections
Then rounding the angles
Then counting using Create SetMember Index
Then drawing sort of chart with Human