Check out this thread for concept on grouping a list of values by ranges.
Sounds like you want to do three things:
- Bin each minimum angle into a range.
- Associate that bin with a preliminary view factor
- Output the view factor in a list compatible/organized for your next task