[GRASS-user] r.basin not running completely

Margherita Di Leo diregola at gmail.com
Sat Apr 25 01:42:36 PDT 2020


On Sat, Apr 25, 2020 at 9:39 AM jomaljochan <jochanjomal1998 at gmail.com>
wrote:

> Hi,
> Thank you for your interest and time!
>
> I had created a whole new location and ran the code only once. And it is
> still showing the same. Moreover, the file in question is nowhere to be
> found.
>
> Is there any other possibility?
>

(sorry, again I had accidentally excluded the list from cc)
Maybe try giving it a different prefix and a different folder where to
write the output
Hope this helps

>
>
>
> margherita wrote
> > cc list
> >
> > On Sat, Apr 25, 2020 at 9:11 AM Margherita Di Leo <
>
> > diregola@
>
> > >
> > wrote:
> >
> >> Hi,
> >>
> >> On Sat, Apr 25, 2020 at 8:49 AM jomaljochan <
>
> > jochanjomal1998@
>
> > >
> >> wrote:
> >>
> >>> Hi, I am a new GRASS GIS User (using GRASS GIS 7.6.1) trying to get the
> >>> morphometric parameters of a watershed(Bhadra river basin, India).
> >>> Steps followed:
> >>> 1) Cropped and set the DEM file in UTM projection.
> >>> 2) Created a new location and used the georeferenced DEM file to set
> the
> >>> projection of GRASS Session.
> >>> 3) Ran the following lines of code:
> >>>
> >>>   g.region rast=elevation at PERMANENT -ap
> >>>
> >>>   r.watershed -a elevation=elevation at PERMANENT accumulation=accum
> >>>
> >>>   r.stream.extract elevation=elevation at PERMANENT accumulation=accum
> >>> threshold=1000
> >>>   stream_rast=stream_network stream_vect=streams --overwrite
> >>>   #(overwrite with different threshold until clear network)
> >>>
> >>>   #Find the coordinates of the outlet from network and input in r.basin
> >>> fn
> >>>
> >>>   r.basin map=elevation at PERMANENT prefix=out
> >>> coordinates=572957.585125,1547823.44718
> >>>   threshold=20 dir=tmp/my_basin
> >>>
> >>>
> >>>
> >>> The function stops running with the following error:
> >>>
> >>>   ERROR: option
> > <output>
> > : <tmp/my_basin\out_elevation_outlet_coors.txt>
> >>> exists. To overwrite, use the
> >>>   --overwrite flag
> >>>
> >>>   ------------------------------
> >>>
> >>>   An ERROR occurred running r.basin
> >>>   Please check for error messages above or try with another pairs of
> >>> outlet
> >>> coordinates
> >>>   Removing region definition
> > <original>
> >>>
> >>> 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.
> >>
> >> *Sorry r.basin doesn't handle overwrite, as written in the manual.
> >>
> >> Hope this helps.
> >>
> >> Kind regards,
> >>
> >>
> >> --
> >> Margherita Di Leo
> >>
> >
> >
> > --
> > Margherita Di Leo
> >
> > _______________________________________________
> > grass-user mailing list
>
> > grass-user at .osgeo
>
> > https://lists.osgeo.org/mailman/listinfo/grass-user
>
>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user



-- 
Margherita Di Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20200425/cc19e819/attachment.html>


More information about the grass-user mailing list