[GRASS-SVN] r71644 - grass-addons/grass7/vector/v.gsflow.gravres
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 8 06:51:49 PST 2017
Author: awickert
Date: 2017-11-08 06:51:49 -0800 (Wed, 08 Nov 2017)
New Revision: 71644
Modified:
grass-addons/grass7/vector/v.gsflow.gravres/v.gsflow.gravres.py
Log:
v.gsflow.gravres: name update
Modified: grass-addons/grass7/vector/v.gsflow.gravres/v.gsflow.gravres.py
===================================================================
--- grass-addons/grass7/vector/v.gsflow.gravres/v.gsflow.gravres.py 2017-11-08 14:50:21 UTC (rev 71643)
+++ grass-addons/grass7/vector/v.gsflow.gravres/v.gsflow.gravres.py 2017-11-08 14:51:49 UTC (rev 71644)
@@ -120,8 +120,8 @@
v.db_addcolumn(map=gravity_reservoirs, columns='gvr_cell_pct double precision, gvr_hru_pct double precision', quiet=True)
v.db_update(map=gravity_reservoirs, column='gvr_cell_pct', query_column='100*area_m2/cell_area_m2', quiet=True)
v.db_update(map=gravity_reservoirs, column='gvr_hru_pct', query_column='100*area_m2/hru_area_m2', quiet=True)
- v.extract(input=gravity_reservoirs, output='_tmp', where="gvr_cell_pct > 0.001", overwrite=True, quiet=True)
- g.rename(vector='_tmp,'+gravity_reservoirs, overwrite=True, quiet=True)
+ v.extract(input=gravity_reservoirs, output='tmp_', where="gvr_cell_pct > 0.001", overwrite=True, quiet=True)
+ g.rename(vector=('tmp_',gravity_reservoirs), overwrite=True, quiet=True)
if __name__ == "__main__":
More information about the grass-commit
mailing list