d3 clustering to get averages for subbasin