[GRASS-SVN] r74415 - grass-addons/grass7/vector/v.gsflow.gravres

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 22 08:58:00 PDT 2019


Author: awickert
Date: 2019-04-22 08:58:00 -0700 (Mon, 22 Apr 2019)
New Revision: 74415

Modified:
   grass-addons/grass7/vector/v.gsflow.gravres/v.gsflow.gravres.py
Log:
v.gsflow.gravres: area_m2 type double precision


Modified: grass-addons/grass7/vector/v.gsflow.gravres/v.gsflow.gravres.py
===================================================================
--- grass-addons/grass7/vector/v.gsflow.gravres/v.gsflow.gravres.py	2019-04-22 15:53:29 UTC (rev 74414)
+++ grass-addons/grass7/vector/v.gsflow.gravres/v.gsflow.gravres.py	2019-04-22 15:58:00 UTC (rev 74415)
@@ -113,7 +113,7 @@
     # Percent areas
     v.db_renamecolumn(map=gravity_reservoirs, column=('a_hru_area_m2', 'hru_area_m2'), quiet=True)
     v.db_renamecolumn(map=gravity_reservoirs, column=('b_area_m2', 'cell_area_m2'), quiet=True)
-    v.db_addcolumn(map=gravity_reservoirs, columns='area_m2', quiet=True)
+    v.db_addcolumn(map=gravity_reservoirs, columns='area_m2 double precision', quiet=True)
     v.to_db(map=gravity_reservoirs, option='area', units='meters', columns='area_m2', quiet=True)
     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)



More information about the grass-commit mailing list