<div dir="ltr">cc list<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 25, 2020 at 9:11 AM Margherita Di Leo <<a href="mailto:diregola@gmail.com">diregola@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 25, 2020 at 8:49 AM jomaljochan <<a href="mailto:jochanjomal1998@gmail.com" target="_blank">jochanjomal1998@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, I am a new GRASS GIS User (using GRASS GIS 7.6.1) trying to get the<br>
morphometric parameters of a watershed(Bhadra river basin, India).<br>
Steps followed:<br>
1) Cropped and set the DEM file in UTM projection.<br>
2) Created a new location and used the georeferenced DEM file to set the<br>
projection of GRASS Session.<br>
3) Ran the following lines of code:<br>
<br>
  g.region rast=elevation@PERMANENT -ap<br>
<br>
  r.watershed -a elevation=elevation@PERMANENT accumulation=accum<br>
<br>
  r.stream.extract elevation=elevation@PERMANENT accumulation=accum<br>
threshold=1000 <br>
  stream_rast=stream_network stream_vect=streams --overwrite<br>
  #(overwrite with different threshold until clear network)<br>
<br>
  #Find the coordinates of the outlet from network and input in r.basin fn<br>
<br>
  r.basin map=elevation@PERMANENT prefix=out<br>
coordinates=572957.585125,1547823.44718 <br>
  threshold=20 dir=tmp/my_basin  <br>
<br>
<br>
<br>
The function stops running with the following error:<br>
<br>
  ERROR: option <output>: <tmp/my_basin\out_elevation_outlet_coors.txt><br>
exists. To overwrite, use the <br>
  --overwrite flag<br>
<br>
  ------------------------------<br>
<br>
  An ERROR occurred running r.basin<br>
  Please check for error messages above or try with another pairs of outlet<br>
coordinates<br>
  Removing region definition <original><br><br></blockquote><div>The command is telling you that an output with the same name is already there. You need to delete it* and run the command again.</div><div><br></div><div>*Sorry r.basin doesn't handle overwrite, as written in the manual.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>Kind regards,<br></div><div><br></div><div> </div></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#666666">Margherita Di Leo</font></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#666666">Margherita Di Leo</font></div></div></div></div></div></div></div></div></div>