Skip to content

Commit

Permalink
update Grass_Delineation_py3.py to overwrite all outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
markwang0 committed Sep 27, 2023
1 parent 17ce958 commit 362a8b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GeoFlood/Grass_Delineation_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def segment_catchment_delineation(fdrfn, segshp, segcatfn):
g.run_command('g.region', raster='fdr')
# Read the channel segment shapefile
g.run_command('v.in.ogr', input=segshp,
output='Segment')
output='Segment',overwrite=True)
g.run_command('v.to.rast', input='Segment', use='attr',
output='stream', attribute_column='HYDROID')
output='stream', attribute_column='HYDROID',overwrite=True)
g.run_command('r.stream.basins',overwrite=True,\
direction='fdr',stream_rast='stream',\
basins = 'subbasins')
Expand Down

0 comments on commit 362a8b8

Please sign in to comment.