<div dir="ltr"><div>Hi, </div><div>I was able to delineate basins using r.watershed-r.stream.extract-r.stream.basins  for the entire globe at 90m resolution (MERIT-Hydro).</div><div>At this point, I would like to create "computational units" which include several basins that are close by. <br></div><div><br></div><div>To this:</div><div>I select the largest basins and create independent computational unit.     </div><div>Now I remain with all the small basins, with their unique ID, (see below) that I would like to group by base on their location - a sort of unsupervised k-mean base on lat-long.  </div><div></div><div>Is there any command that does this? <br></div><div>(r.clump works only for contiguous basins so is not ideal for isolated ones). <br></div><div>Thank you </div><div>Giuseppe</div><div><br></div><div><br></div><div><img src="cid:ii_k8bxeczn0" alt="image.png" width="494" height="193"><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Giuseppe Amatulli, Ph.D.<br><br>Research scientist at<br><span>School of Forestry & Environmental Studies<br></span><span>Center for Research Computing</span><br>Yale University</div><div>New Haven, CT, USA</div><div>06511<br><div>
   Teaching: <a href="http://spatial-ecology.net" target="_blank">http://spatial-ecology.net</a></div> 
  
   Work:  <a href="https://environment.yale.edu/profile/giuseppe-amatulli/" target="_blank">https://environment.yale.edu/profile/giuseppe-amatulli/</a> <br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>