Skip to content

Commit

Permalink
r.subdayprecip.design: no need to call v.db.addcolumn before v.to.db (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Dec 11, 2020
1 parent aa5b5b7 commit ab7f7e8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions grass7/raster/r.subdayprecip.design/r.subdayprecip.design.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ def main():
check_area_size = float(opt['area_size']) > 0
if check_area_size:
area_col_name = 'area_{}'.format(os.getpid())
Module('v.db.addcolumn', map=opt['map'],
columns='{} double precision'.format(area_col_name))
Module('v.to.db', map=opt['map'], option='area', units='kilometers',
columns=area_col_name, quiet=True)
areas = Module('v.db.select', flags='c', map=opt['map'], columns=area_col_name,
Expand Down

0 comments on commit ab7f7e8

Please sign in to comment.