[GRASS-SVN] r62419 - in grass/branches/releasebranch_7_0: general/g.remove gui/wxpython/animation gui/wxpython/core gui/wxpython/gmodeler gui/wxpython/gui_core gui/wxpython/iclass gui/wxpython/iscatt gui/wxpython/rlisetup gui/wxpython/vnet gui/wxpython/xml lib/gpde/test lib/manage lib/python/pygrass lib/python/pygrass/modules/grid lib/python/pygrass/vector/testsuite lib/python/script lib/python/temporal raster/r.category raster/r.li/r.li.setup raster/r.out.mpeg raster/r.patch raster/r.reclass raster/r.series raster/r.series.accumulate/test_suite raster/r.to.rast3elev raster/r.watershed/front raster/simwe/r.sim.water raster3d/r3.cross.rast raster3d/r3.in.bin/test_suite raster3d/r3.out.netcdf/test_suite raster3d/r3.retile raster3d/r3.to.rast scripts/d.rast.edit scripts/d.shadedmap scripts/db.in.ogr scripts/i.in.spotvgt scripts/i.pansharpen scripts/i.spectral scripts/r.buffer.lowmem scripts/r.colors.stddev scripts/r.fillnulls scripts/r.grow scripts/r.in.wms scripts/r.mask scripts/r .reclass.area scripts/r.unpack/test_suite scripts/r3.in.xyz scripts/v.dissolve scripts/v.out.gps scripts/v.rast.stats scripts/v.to.lines scripts/v.unpack scripts/v.unpack/test_suite temporal/t.list temporal/t.merge temporal/t.rast.accdetect temporal/t.rast.accumulate temporal/t.rast.aggregate.ds temporal/t.rast.extract temporal/t.rast.gapfill temporal/t.rast.import temporal/t.rast.list temporal/t.rast.mapcalc temporal/t.rast.neighbors temporal/t.rast.out.vtk temporal/t.rast.series temporal/t.rast.to.rast3 temporal/t.rast3d.list temporal/t.register temporal/t.remove temporal/t.rename temporal/t.support temporal/t.vect.db.select temporal/t.vect.extract temporal/t.vect.import temporal/t.vect.list temporal/t.vect.observe.strds temporal/t.vect.univar temporal/t.vect.what.strds testsuite/raster tools vector/v.distance vector/v.lrs/v.lrs.create
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 27 09:31:30 PDT 2014
Author: hcho
Date: 2014-10-27 09:31:30 -0700 (Mon, 27 Oct 2014)
New Revision: 62419
Modified:
grass/branches/releasebranch_7_0/general/g.remove/g.remove.html
grass/branches/releasebranch_7_0/gui/wxpython/animation/g.gui.animation.html
grass/branches/releasebranch_7_0/gui/wxpython/core/globalvar.py
grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/frame.py
grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/model.py
grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py
grass/branches/releasebranch_7_0/gui/wxpython/gui_core/gselect.py
grass/branches/releasebranch_7_0/gui/wxpython/iclass/frame.py
grass/branches/releasebranch_7_0/gui/wxpython/iscatt/iscatt_core.py
grass/branches/releasebranch_7_0/gui/wxpython/rlisetup/functions.py
grass/branches/releasebranch_7_0/gui/wxpython/rlisetup/sampling_frame.py
grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_core.py
grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_data.py
grass/branches/releasebranch_7_0/gui/wxpython/xml/toolboxes.xml
grass/branches/releasebranch_7_0/lib/gpde/test/test_arrays.c
grass/branches/releasebranch_7_0/lib/manage/managelib.dox
grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py
grass/branches/releasebranch_7_0/lib/python/pygrass/utils.py
grass/branches/releasebranch_7_0/lib/python/pygrass/vector/testsuite/test_vector3d.py
grass/branches/releasebranch_7_0/lib/python/script/core.py
grass/branches/releasebranch_7_0/lib/python/temporal/aggregation.py
grass/branches/releasebranch_7_0/lib/python/temporal/extract.py
grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py
grass/branches/releasebranch_7_0/lib/python/temporal/space_time_datasets.py
grass/branches/releasebranch_7_0/lib/python/temporal/temporal_raster3d_algebra.py
grass/branches/releasebranch_7_0/lib/python/temporal/temporal_raster_algebra.py
grass/branches/releasebranch_7_0/lib/python/temporal/temporal_vector_algebra.py
grass/branches/releasebranch_7_0/lib/python/temporal/unittests_register.py
grass/branches/releasebranch_7_0/raster/r.category/test_rcategory_doctest.txt
grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/masked_area_selection.sh
grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/r.li.setup
grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/sample_area_vector.sh
grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/square_mouse_selection.sh
grass/branches/releasebranch_7_0/raster/r.out.mpeg/main.c
grass/branches/releasebranch_7_0/raster/r.patch/r.patch.html
grass/branches/releasebranch_7_0/raster/r.reclass/r.reclass.html
grass/branches/releasebranch_7_0/raster/r.series.accumulate/test_suite/test.r.series.accumulate.sh
grass/branches/releasebranch_7_0/raster/r.series/r.series.html
grass/branches/releasebranch_7_0/raster/r.to.rast3elev/test.r.to.rast3elev.sh
grass/branches/releasebranch_7_0/raster/r.watershed/front/r.watershed.html
grass/branches/releasebranch_7_0/raster/simwe/r.sim.water/spearfish.sh
grass/branches/releasebranch_7_0/raster3d/r3.cross.rast/test.r3.cross.rast.sh
grass/branches/releasebranch_7_0/raster3d/r3.in.bin/test_suite/test.r3.in.bin.sh
grass/branches/releasebranch_7_0/raster3d/r3.out.netcdf/test_suite/test.r3.out.netcdf.sh
grass/branches/releasebranch_7_0/raster3d/r3.retile/test.r3.retile.sh
grass/branches/releasebranch_7_0/raster3d/r3.to.rast/test.r3.to.rast.sh
grass/branches/releasebranch_7_0/scripts/d.rast.edit/d.rast.edit.py
grass/branches/releasebranch_7_0/scripts/d.shadedmap/d.shadedmap.py
grass/branches/releasebranch_7_0/scripts/db.in.ogr/db.in.ogr.py
grass/branches/releasebranch_7_0/scripts/i.in.spotvgt/i.in.spotvgt.py
grass/branches/releasebranch_7_0/scripts/i.pansharpen/i.pansharpen.py
grass/branches/releasebranch_7_0/scripts/i.spectral/i.spectral.html
grass/branches/releasebranch_7_0/scripts/r.buffer.lowmem/r.buffer.lowmem.py
grass/branches/releasebranch_7_0/scripts/r.colors.stddev/r.colors.stddev.py
grass/branches/releasebranch_7_0/scripts/r.fillnulls/r.fillnulls.py
grass/branches/releasebranch_7_0/scripts/r.grow/r.grow.py
grass/branches/releasebranch_7_0/scripts/r.in.wms/wms_base.py
grass/branches/releasebranch_7_0/scripts/r.mask/r.mask.py
grass/branches/releasebranch_7_0/scripts/r.reclass.area/r.reclass.area.py
grass/branches/releasebranch_7_0/scripts/r.unpack/test_suite/test.r.unpack.sh
grass/branches/releasebranch_7_0/scripts/r3.in.xyz/r3.in.xyz.py
grass/branches/releasebranch_7_0/scripts/v.dissolve/v.dissolve.html
grass/branches/releasebranch_7_0/scripts/v.dissolve/v.dissolve.py
grass/branches/releasebranch_7_0/scripts/v.out.gps/v.out.gps.py
grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py
grass/branches/releasebranch_7_0/scripts/v.to.lines/v.to.lines.py
grass/branches/releasebranch_7_0/scripts/v.unpack/test_suite/test.v.unpack.sh
grass/branches/releasebranch_7_0/scripts/v.unpack/v.unpack.py
grass/branches/releasebranch_7_0/temporal/t.list/t.list.html
grass/branches/releasebranch_7_0/temporal/t.merge/test.t.merge.sh
grass/branches/releasebranch_7_0/temporal/t.rast.accdetect/t.rast.accdetect.py
grass/branches/releasebranch_7_0/temporal/t.rast.accumulate/t.rast.accumulate.py
grass/branches/releasebranch_7_0/temporal/t.rast.aggregate.ds/test.t.rast.aggregate.ds.sh
grass/branches/releasebranch_7_0/temporal/t.rast.extract/test.t.rast.extract.sh
grass/branches/releasebranch_7_0/temporal/t.rast.gapfill/test.t.rast.gapfill.sh
grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import.relative.sh
grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import.sh
grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import_locations.sh
grass/branches/releasebranch_7_0/temporal/t.rast.list/t.rast.list.html
grass/branches/releasebranch_7_0/temporal/t.rast.mapcalc/test.t.rast.mapcalc.sh
grass/branches/releasebranch_7_0/temporal/t.rast.neighbors/t.rast.neighbors.py
grass/branches/releasebranch_7_0/temporal/t.rast.out.vtk/t.rast.out.vtk.py
grass/branches/releasebranch_7_0/temporal/t.rast.series/test.t.rast.series.sh
grass/branches/releasebranch_7_0/temporal/t.rast.to.rast3/t.rast.to.rast3.py
grass/branches/releasebranch_7_0/temporal/t.rast3d.list/t.rast3d.list.html
grass/branches/releasebranch_7_0/temporal/t.register/test.t.register.vector.file.layer.sh
grass/branches/releasebranch_7_0/temporal/t.register/test.t.register.vector.sh
grass/branches/releasebranch_7_0/temporal/t.remove/t.remove.py
grass/branches/releasebranch_7_0/temporal/t.rename/test.t.rename.sh
grass/branches/releasebranch_7_0/temporal/t.support/test.t.support.sh
grass/branches/releasebranch_7_0/temporal/t.vect.db.select/test.t.vect.db.select.sh
grass/branches/releasebranch_7_0/temporal/t.vect.extract/test.t.vect.extract.layer.sh
grass/branches/releasebranch_7_0/temporal/t.vect.extract/test.t.vect.extract.sh
grass/branches/releasebranch_7_0/temporal/t.vect.import/test.t.vect.import.sh
grass/branches/releasebranch_7_0/temporal/t.vect.list/t.vect.list.html
grass/branches/releasebranch_7_0/temporal/t.vect.list/test.t.vect.list.layer.sh
grass/branches/releasebranch_7_0/temporal/t.vect.list/test.t.vect.list.sh
grass/branches/releasebranch_7_0/temporal/t.vect.observe.strds/test.t.vect.observe.strds.layer_bug.sh
grass/branches/releasebranch_7_0/temporal/t.vect.observe.strds/test.t.vect.observe.strds.relative.sh
grass/branches/releasebranch_7_0/temporal/t.vect.univar/test.t.vect.univar.sh
grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/t.vect.what.strds.py
grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds.layer.sh
grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds.sh
grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds_relative.sh
grass/branches/releasebranch_7_0/testsuite/raster/raster_md5test.sh
grass/branches/releasebranch_7_0/testsuite/raster/rhemisphere.sh
grass/branches/releasebranch_7_0/testsuite/raster/rmapcalc_test.sh
grass/branches/releasebranch_7_0/tools/thumbnails.py
grass/branches/releasebranch_7_0/vector/v.distance/v.distance.html
grass/branches/releasebranch_7_0/vector/v.lrs/v.lrs.create/v.lrs.create.html
Log:
Update old g.list/remove calls in modules
Modified: grass/branches/releasebranch_7_0/general/g.remove/g.remove.html
===================================================================
--- grass/branches/releasebranch_7_0/general/g.remove/g.remove.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/general/g.remove/g.remove.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -10,7 +10,7 @@
Delete <tt>map1</tt> and <tt>map2</tt> raster maps in the current mapset:
<div class="code"><pre>
-g.remove -f type=rast pattern=tmp1,tmp2
+g.remove -f type=rast name=tmp1,tmp2
</pre></div>
Delete all raster and vector maps starting with "<tt>tmp_</tt>" in the current
Modified: grass/branches/releasebranch_7_0/gui/wxpython/animation/g.gui.animation.html
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/animation/g.gui.animation.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/animation/g.gui.animation.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -63,15 +63,15 @@
</pre></div>
The loading of a series of maps into the Animation Tool can be simplified
-with <em><a href="g.mlist.html">g.mlist</a></em> (back ticks syntax works for Linux and Mac only):
+with <em><a href="g.list.html">g.list</a></em> (back ticks syntax works for Linux and Mac only):
<div class="code"><pre>
-g.gui.animation rast=`g.mlist type=rast mapset=. separator=comma pattern="precip*"`
+g.gui.animation rast=`g.list type=rast mapset=. separator=comma pattern="precip*"`
</pre></div>
Using extended regular expressions, the list of a series of raster maps can be subset by
e.g., numeric range (here: precipitation for the years 1997-2012):
<div class="code"><pre>
-g.gui.animation rast=`g.mlist -e type=rast mapset=. separator=comma pattern="precip_total.(199[7-9]|200[0-9]|201[0-2]).sum"`
+g.gui.animation rast=`g.list -e type=rast mapset=. separator=comma pattern="precip_total.(199[7-9]|200[0-9]|201[0-2]).sum"`
</pre></div>
@@ -85,7 +85,7 @@
<p>
<em>
<a href="g.gui.timeline.html">g.gui.timeline</a>,
- <a href="g.mlist.html">g.mlist</a>
+ <a href="g.list.html">g.list</a>
</em>
<p>
Modified: grass/branches/releasebranch_7_0/gui/wxpython/core/globalvar.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/core/globalvar.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/core/globalvar.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -201,12 +201,6 @@
"""@Toolbar icon size"""
toolbarSize = (24, 24)
-"""@Is g.mlist available?"""
-if 'g.mlist' in grassCmd:
- have_mlist = True
-else:
- have_mlist = False
-
"""@Check version of wxPython, use agwStyle for 2.8.11+"""
hasAgw = CheckWxVersion()
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/frame.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/frame.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -326,11 +326,11 @@
dlg.Destroy()
if rast:
- self._gconsole.RunCmd(['g.remove', 'rast=%s' %','.join(rast)])
+ self._gconsole.RunCmd(['g.remove', '-f', 'type=rast', 'name=%s' %','.join(rast)])
if rast3d:
- self._gconsole.RunCmd(['g.remove', 'rast3d=%s' %','.join(rast3d)])
+ self._gconsole.RunCmd(['g.remove', '-f', 'type=rast3d', 'name=%s' %','.join(rast3d)])
if vect:
- self._gconsole.RunCmd(['g.remove', 'vect=%s' %','.join(vect)])
+ self._gconsole.RunCmd(['g.remove', '-f', 'type=vect', 'name=%s' %','.join(vect)])
self.SetStatusText(_("%d maps deleted from current mapset") % \
int(len(rast) + len(rast3d) + len(vect)))
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/model.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/model.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -708,11 +708,11 @@
rast, vect, rast3d, msg = self.GetIntermediateData()
if rast:
- log.RunCmd(['g.remove', 'rast=%s' %','.join(rast)])
+ log.RunCmd(['g.remove', '-f', 'type=rast', 'name=%s' %','.join(rast)])
if rast3d:
- log.RunCmd(['g.remove', 'rast3d=%s' %','.join(rast3d)])
+ log.RunCmd(['g.remove', '-f', 'type=rast3d', 'name=%s' %','.join(rast3d)])
if vect:
- log.RunCmd(['g.remove', 'vect=%s' %','.join(vect)])
+ log.RunCmd(['g.remove', '-f', 'type=vect', 'name=%s' %','.join(vect)])
def GetIntermediateData(self):
"""!Get info about intermediate data"""
@@ -2337,18 +2337,18 @@
""")
if rast:
self.fd.write(
-r""" run_command('g.remove',
- rast=%s)
+r""" run_command('g.remove', flags='f', type='rast',
+ name=%s)
""" % ','.join(map(lambda x: "'" + x + "'", rast)))
if vect:
self.fd.write(
-r""" run_command('g.remove',
- vect = %s)
+r""" run_command('g.remove', flags='f', type='vect',
+ name=%s)
""" % ','.join(map(lambda x: "'" + x + "'", vect)))
if rast3d:
self.fd.write(
-r""" run_command('g.remove',
- rast3d = %s)
+r""" run_command('g.remove', flags='f', type='rast3d',
+ name=%s)
""" % ','.join(map(lambda x: "'" + x + "'", rast3d)))
if not rast and not vect and not rast3d:
self.fd.write(' pass\n')
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -1510,7 +1510,7 @@
def GetLayerType(self, cmd = False):
"""!Get selected layer type
- @param cmd True for g.mlist
+ @param cmd True for g.list
"""
if not cmd:
return self.layerType.GetStringSelection()
@@ -1572,7 +1572,7 @@
def _modelerDSeries(self):
self.dseries = wx.CheckBox(parent = self, id = wx.ID_ANY,
- label = _("Dynamic series (%s)") % 'g.mlist')
+ label = _("Dynamic series (%s)") % 'g.list')
self.dseries.SetValue(False)
self.mainSizer.Add(item = self.dseries, proportion = 0,
flag = wx.EXPAND | wx.LEFT | wx.RIGHT, border = 5)
@@ -1580,12 +1580,12 @@
def GetDSeries(self):
"""!Used by modeler only
- @return g.mlist command
+ @return g.list command
"""
if not self.dseries or not self.dseries.IsChecked():
return ''
- cond = 'map in `g.mlist type=%s ' % self.GetLayerType(cmd = True)
+ cond = 'map in `g.list type=%s ' % self.GetLayerType(cmd = True)
patt = self.filter.GetValue()
if patt:
cond += 'pattern=%s ' % patt
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/gselect.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/gselect.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -402,7 +402,7 @@
# get current mapset
curr_mapset = grass.gisenv()['MAPSET']
- # map element types to g.mlist types
+ # map element types to g.list types
elementdict = {'cell':'rast',
'raster':'rast',
'rast':'rast',
@@ -464,12 +464,8 @@
else:
filesdict = None
else:
- if globalvar.have_mlist:
- filesdict = grass.mlist_grouped(elementdict[element],
- check_search_path = False)
- else:
- filesdict = grass.list_grouped(elementdict[element],
- check_search_path = False)
+ filesdict = grass.list_grouped(elementdict[element],
+ check_search_path = False)
# add extra items first
if self.extraItems:
Modified: grass/branches/releasebranch_7_0/gui/wxpython/iclass/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/iclass/frame.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/iclass/frame.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -254,7 +254,9 @@
"""!Removes temporary vector map with training areas"""
ret = RunCommand(prog = 'g.remove',
parent = self,
- vect = self.trainingAreaVector)
+ flags = 'f',
+ type = 'vect',
+ name = self.trainingAreaVector)
if ret != 0:
return False
return True
@@ -265,7 +267,9 @@
self.GetSecondMap().Clean()
ret = RunCommand(prog = 'g.remove',
parent = self,
- rast = raster)
+ flags = 'f',
+ type = 'rast',
+ name = raster)
if ret != 0:
return False
return True
Modified: grass/branches/releasebranch_7_0/gui/wxpython/iscatt/iscatt_core.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/iscatt/iscatt_core.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/iscatt/iscatt_core.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -284,8 +284,8 @@
ret = UpdateCatRast(patch_rast, region, self.scatts_dt.GetCatRastCond(cat))
if ret < 0:
GException(_("Patching category raster conditions file failed."))
- RunCommand("g.remove",
- rast = patch_rast)
+ RunCommand("g.remove", flags = 'f',
+ type = 'rast', name = patch_rast)
def _rasterize(self, grass_region, layer, cat, out_rast):
@@ -598,8 +598,8 @@
grass.try_remove(self.cats_rasts_conds[cat_id])
del self.cats_rasts_conds[cat_id]
- RunCommand("g.remove",
- rast=self.cats_rasts[cat_id])
+ RunCommand("g.remove", flags='f',
+ type='rast', name=self.cats_rasts[cat_id])
del self.cats_rasts[cat_id]
return True
@@ -710,7 +710,9 @@
grass.try_remove(tmp)
for tmp in self.cats_rasts.itervalues():
RunCommand("g.remove",
- rast=tmp,
+ flags='f',
+ type='rast',
+ name=tmp,
getErrorMsg=True)
self.cats_rasts = {}
@@ -851,4 +853,4 @@
raster_info[k] = v
raster_info['range'] = raster_info['max'] - raster_info['min'] + 1
- return raster_info
\ No newline at end of file
+ return raster_info
Modified: grass/branches/releasebranch_7_0/gui/wxpython/rlisetup/functions.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/rlisetup/functions.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/rlisetup/functions.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -85,7 +85,7 @@
grass.run_command('g.region', vect=tmp_vect, align=origrast)
grass.run_command('v.to.rast', input=vect, output=outrast, use='cat',
cats=cat, overwrite=True, quiet=True)
- grass.run_command('g.remove', vect=tmp_vect, quiet=True)
+ grass.run_command('g.remove', type='vect', name=tmp_vect, quiet=True, flags='f')
def obtainAreaVector(outrast):
Modified: grass/branches/releasebranch_7_0/gui/wxpython/rlisetup/sampling_frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/rlisetup/sampling_frame.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/rlisetup/sampling_frame.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -263,8 +263,8 @@
marea = MaskedArea(region, rasterName)
- RunCommand('g.remove', rast=tmpraster)
- RunCommand('g.remove', vect=tmpvector)
+ RunCommand('g.remove', flags='f', type='rast', name=tmpraster)
+ RunCommand('g.remove', flags='f', type='vect', name=tmpvector)
os.unlink(polyfile.name)
return marea
Modified: grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_core.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_core.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_core.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -121,8 +121,8 @@
# for case there is some map with same name
# (when analysis does not produce any map, this map would have been shown as result)
- RunCommand('g.remove',
- vect = self.results["vect_map"].GetVectMapName())
+ RunCommand('g.remove', flags='f', type='vect',
+ name=self.results["vect_map"].GetVectMapName())
# save data from
self.history._saveAnInputToHist(analysis, params, flags)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_data.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_data.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/vnet/vnet_data.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -938,8 +938,8 @@
"""
if vectMap:
vectMap.DeleteRenderLayer()
- RunCommand('g.remove',
- vect = vectMap.GetVectMapName())
+ RunCommand('g.remove', flags='f', type='vect',
+ name=vectMap.GetVectMapName())
self.RemoveFromTmpMaps(vectMap)
return True
return False
@@ -948,8 +948,8 @@
"""Delete all temporary maps in the class"""
update = False
for tmpMap in self.tmpMaps:
- RunCommand('g.remove',
- vect = tmpMap.GetVectMapName())
+ RunCommand('g.remove', flags='f', type='vect',
+ name=tmpMap.GetVectMapName())
if tmpMap.DeleteRenderLayer():
update = True
return update
@@ -1455,4 +1455,4 @@
if angle > from_angle and angle < to_angle:
return True
- return False
\ No newline at end of file
+ return False
Modified: grass/branches/releasebranch_7_0/gui/wxpython/xml/toolboxes.xml
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/xml/toolboxes.xml 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/gui/wxpython/xml/toolboxes.xml 2014-10-27 16:31:30 UTC (rev 62419)
@@ -510,9 +510,6 @@
<module-item name="g.list">
<label>List</label>
</module-item>
- <module-item name="g.mlist">
- <label>List filtered</label>
- </module-item>
<separator/>
<module-item name="g.rename">
<label>Rename</label>
@@ -521,9 +518,6 @@
<module-item name="g.remove">
<label>Delete</label>
</module-item>
- <module-item name="g.mremove">
- <label>Delete filtered</label>
- </module-item>
</items>
</toolbox>
<toolbox name="MapTypeConversions">
Modified: grass/branches/releasebranch_7_0/lib/gpde/test/test_arrays.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/gpde/test/test_arrays.c 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/gpde/test/test_arrays.c 2014-10-27 16:31:30 UTC (rev 62419)
@@ -294,7 +294,7 @@
sprintf(buff,
- "g.remove rast=gpde_lib_test_raster_1,gpde_lib_test_raster_2,gpde_lib_test_raster_3");
+ "g.remove -f type=rast name=gpde_lib_test_raster_1,gpde_lib_test_raster_2,gpde_lib_test_raster_3");
system(buff);
N_free_array_2d(data1);
@@ -588,7 +588,7 @@
sprintf(buff,
- "g.remove rast=gpde_lib_test_raster_1,gpde_lib_test_raster_2,gpde_lib_test_raster_3");
+ "g.remove -f type=rast name=gpde_lib_test_raster_1,gpde_lib_test_raster_2,gpde_lib_test_raster_3");
system(buff);
@@ -857,7 +857,7 @@
N_free_array_3d(tmp);
sprintf(buff,
- "g.remove rast3d=gpde_lib_test_volume_1,gpde_lib_test_volume_2");
+ "g.remove -f type=rast3d name=gpde_lib_test_volume_1,gpde_lib_test_volume_2");
system(buff);
N_free_array_3d(data1);
Modified: grass/branches/releasebranch_7_0/lib/manage/managelib.dox
===================================================================
--- grass/branches/releasebranch_7_0/lib/manage/managelib.dox 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/manage/managelib.dox 2014-10-27 16:31:30 UTC (rev 62419)
@@ -5,8 +5,7 @@
\section manageintro Introduction
This library used for management of data base elements. See modules
-<tt>g.list, g.mlist, g.remove, g.mremove, g.copy</tt> or
-<tt>g.rename</tt>.
+<tt>g.list, g.remove, g.copy</tt> or <tt>g.rename</tt>.
\code
#include <grass/manage.h>
Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -250,7 +250,7 @@
mpclc(expression="%s=%s" % (name, rast), overwrite=True, env_=env)
file_dst = "%s.pack" % os.path.join(path_dst, name)
rpck(input=name, output=file_dst, overwrite=True, env_=env)
- remove(flags='f', type='rast', pattern=name, env_=env)
+ remove(flags='f', type='rast', name=name, env_=env)
# change gisdbase to dst
env['GISRC'] = gisrc_dst
rupck(input=file_dst, output=rast_clean, overwrite=True, env_=env)
@@ -284,7 +284,7 @@
name = nam % vect
file_dst = "%s.pack" % os.path.join(path_dst, name)
vpck(input=name, output=file_dst, overwrite=True, env_=env)
- remove(flags='f', type='vect', pattern=name, env_=env)
+ remove(flags='f', type='vect', name=name, env_=env)
# change gisdbase to dst
env['GISRC'] = gisrc_dst
vupck(input=file_dst, output=vect, overwrite=True, env_=env)
@@ -598,4 +598,4 @@
if self.inlist:
grm = Module('g.remove')
for key in self.inlist:
- grm(flags='f', type='rast', pattern=self.inlist[key])
+ grm(flags='f', type='rast', name=self.inlist[key])
Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/utils.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/utils.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/utils.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -92,7 +92,7 @@
def remove(oldname, maptype):
"""Remove a map"""
grasscore.run_command('g.remove', quiet=True, flags='f',
- type=maptype, pattern=oldname)
+ type=maptype, name=oldname)
def rename(oldname, newname, maptype, **kwargs):
Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/vector/testsuite/test_vector3d.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/vector/testsuite/test_vector3d.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/vector/testsuite/test_vector3d.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -61,7 +61,7 @@
"""Remove the generated vector map, if exist"""
mset = get_mapset_vector(cls.tmpname, mapset='')
if mset:
- run_command("g.remove", flags='f', type='vect', pattern=cls.tmpname)
+ run_command("g.remove", flags='f', type='vect', name=cls.tmpname)
if __name__ == '__main__':
Modified: grass/branches/releasebranch_7_0/lib/python/script/core.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/script/core.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/script/core.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -1046,7 +1046,7 @@
"""!Unsets WIND_OVERRIDE and removes any region named by it."""
try:
name = os.environ.pop('WIND_OVERRIDE')
- run_command("g.remove", quiet=True, region=name)
+ run_command("g.remove", quiet=True, flags="f", type="region", name=name)
except:
pass
@@ -1079,108 +1079,14 @@
mapset=mapset)
return parse_key_val(s)
+
# interface to g.list
-def list_grouped(type, check_search_path=True):
- """!List elements grouped by mapsets.
-
- Returns the output from running g.list, as a dictionary where the
- keys are mapset names and the values are lists of maps in that
- mapset. Example:
-
- @code
- >>> list_grouped('rast')['PERMANENT'] # doctest: +ELLIPSIS
- [..., 'lakes', ..., 'slope', ...
-
- @endcode
-
- @param type element type (rast, vect, rast3d, region, ...)
- @param check_search_path True to add mapsets for the search path with no
- found elements
-
- @return directory of mapsets/elements
- """
- if type == 'raster' or type == 'cell':
- verbose(_('Element type should be "rast" and not "%s"') % type)
- type = 'rast'
- dashes_re = re.compile("^----+$")
- mapset_re = re.compile("<(.*)>")
- result = {}
- if check_search_path:
- for mapset in mapsets(search_path=True):
- result[mapset] = []
-
- mapset = None
- for line in read_command("g.list", type=type).splitlines():
- if line == "":
- continue
- if dashes_re.match(line):
- continue
- m = mapset_re.search(line)
- if m:
- mapset = m.group(1)
- if mapset not in result.keys():
- result[mapset] = []
- continue
- if mapset:
- result[mapset].extend(line.split())
-
- return result
-
-
-def _concat(xs):
- result = []
- for x in xs:
- result.extend(x)
- return result
-
-
-def list_pairs(type):
- """!List of elements as tuples.
-
- Returns the output from running g.list, as a list of (map, mapset)
- pairs. Example:
-
- @code
- >>> list_pairs('rast') # doctest: +ELLIPSIS
- [..., ('lakes', 'PERMANENT'), ..., ('slope', 'PERMANENT'), ...
-
- @endcode
-
- @param type element type (rast, vect, rast3d, region, ...)
-
- @return list of tuples (map, mapset)
- """
- return _concat([[(map, mapset) for map in maps]
- for mapset, maps in list_grouped(type).iteritems()])
-
-
-def list_strings(type):
+def list_strings(type, pattern=None, mapset=None, flag=''):
"""!List of elements as strings.
Returns the output from running g.list, as a list of qualified
- names. Example:
-
- @code
- >>> list_strings('rast') # doctest: +ELLIPSIS
- [..., 'lakes at PERMANENT', ..., 'slope at PERMANENT', ...
-
- @endcode
-
- @param type element type
-
- @return list of strings ('map@@mapset')
- """
- return ["%s@%s" % pair for pair in list_pairs(type)]
-
-# interface to g.mlist
-
-
-def mlist_strings(type, pattern=None, mapset=None, flag=''):
- """!List of elements as strings.
-
- Returns the output from running g.mlist, as a list of qualified
names.
@param type element type (rast, vect, rast3d, region, ...)
@@ -1195,7 +1101,7 @@
verbose(_('Element type should be "rast" and not "%s"') % type)
type = 'rast'
result = list()
- for line in read_command("g.mlist",
+ for line in read_command("g.list",
quiet=True,
flags='m' + flag,
type=type,
@@ -1206,10 +1112,10 @@
return result
-def mlist_pairs(type, pattern=None, mapset=None, flag=''):
+def list_pairs(type, pattern=None, mapset=None, flag=''):
"""!List of elements as pairs
- Returns the output from running g.mlist, as a list of
+ Returns the output from running g.list, as a list of
(name, mapset) pairs
@param type element type (rast, vect, rast3d, region, ...)
@@ -1224,10 +1130,10 @@
mapset, flag)]
-def mlist_grouped(type, pattern=None, check_search_path=True, flag=''):
+def list_grouped(type, pattern=None, check_search_path=True, flag=''):
"""!List of elements grouped by mapsets.
- Returns the output from running g.mlist, as a dictionary where the
+ Returns the output from running g.list, as a dictionary where the
keys are mapset names and the values are lists of maps in that
mapset. Example:
@@ -1255,7 +1161,7 @@
result[mapset] = []
mapset = None
- for line in read_command("g.mlist", quiet=True, flags="m" + flag,
+ for line in read_command("g.list", quiet=True, flags="m" + flag,
type=type, pattern=pattern).splitlines():
try:
name, mapset = line.split('@')
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/aggregation.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/aggregation.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/aggregation.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -173,7 +173,7 @@
# In case of a null map continue, do not register null maps
if new_map.metadata.get_min() is None and new_map.metadata.get_max() is None:
if not register_null:
- core.run_command("g.remove", rast=output)
+ core.run_command("g.remove", type="rast", name=output, flags="f")
return None
return new_map
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/extract.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/extract.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/extract.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -237,11 +237,11 @@
names += ",%s" % (map.get_name())
count += 1
if type == "raster":
- gscript.run_command("g.remove", rast=names, quiet=True)
+ gscript.run_command("g.remove", type='rast', name=names, quiet=True, flags='f')
elif type == "raster3d":
- gscript.run_command("g.remove", rast3d=names, quiet=True)
+ gscript.run_command("g.remove", type='rast3d', name=names, quiet=True, flags='f')
elif type == "vector":
- gscript.run_command("g.remove", vect=names, quiet=True)
+ gscript.run_command("g.remove", type='vect', name=names, quiet=True, flags='f')
dbif.close()
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -331,9 +331,9 @@
names += ",%s" % (map.get_name())
count += 1
if type == "raster":
- gscript.run_command("g.remove", rast=names, quiet=True)
+ gscript.run_command("g.remove", type='rast', name=names, quiet=True, flags='f')
elif type == "raster3d":
- gscript.run_command("g.remove", rast3d=names, quiet=True)
+ gscript.run_command("g.remove", type='rast3d', name=names, quiet=True, flags='f')
dbif.close()
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/space_time_datasets.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/space_time_datasets.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/space_time_datasets.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -103,7 +103,7 @@
>>> rmap.is_time_relative()
False
- >>> grass.run_command("g.remove", rast=name, quiet=True)
+ >>> grass.run_command("g.remove", type="rast", name=name, quiet=True, flags="f")
0
>>> grass.del_temp_region()
@@ -420,7 +420,7 @@
True
>>> r3map.is_time_relative()
False
- >>> grass.run_command("g.remove", rast3d=name, quiet=True)
+ >>> grass.run_command("g.remove", type="rast3d", name=name, quiet=True, flags="f")
0
>>> grass.del_temp_region()
"""
@@ -741,7 +741,7 @@
True
>>> vmap.is_time_relative()
False
- >>> grass.run_command("g.remove", vect=name, quiet=True)
+ >>> grass.run_command("g.remove", type="vect", name=name, quiet=True, flags="f")
0
>>> grass.del_temp_region()
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/temporal_raster3d_algebra.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/temporal_raster3d_algebra.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/temporal_raster3d_algebra.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -23,7 +23,7 @@
TemporalRasterBaseAlgebraParser.__init__(self, pid, run, debug, spatial, nprocs, register_null)
self.m_mapcalc = pymod.Module('r3.mapcalc')
- self.m_mremove = pymod.Module('g.mremove')
+ self.m_remove = pymod.Module('g.remove')
def parse(self, expression, basename = None, overwrite=False):
self.lexer = TemporalRasterAlgebraLexer()
@@ -49,7 +49,7 @@
stringlist = ",".join(chunk)
if self.run:
- m = copy.deepcopy(self.m_mremove)
+ m = copy.deepcopy(self.m_remove)
m.inputs["type"].value = "rast3d"
m.inputs["pattern"].value = stringlist
m.flags["f"].value = True
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/temporal_raster_algebra.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/temporal_raster_algebra.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/temporal_raster_algebra.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -64,7 +64,7 @@
TemporalRasterBaseAlgebraParser.__init__(self, pid, run, debug, spatial, nprocs, register_null)
self.m_mapcalc = pymod.Module('r.mapcalc')
- self.m_mremove = pymod.Module('g.mremove')
+ self.m_remove = pymod.Module('g.remove')
def parse(self, expression, basename = None, overwrite=False):
self.lexer = TemporalRasterAlgebraLexer()
@@ -90,7 +90,7 @@
stringlist = ",".join(chunk)
if self.run:
- m = copy.deepcopy(self.m_mremove)
+ m = copy.deepcopy(self.m_remove)
m.inputs["type"].value = "rast"
m.inputs["pattern"].value = stringlist
m.flags["f"].value = True
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/temporal_vector_algebra.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/temporal_vector_algebra.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/temporal_vector_algebra.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -493,7 +493,7 @@
self.m_overlay = pygrass.Module('v.overlay', quiet=True, run_=False)
self.m_rename = pygrass.Module('g.rename', quiet=True, run_=False)
self.m_patch = pygrass.Module('v.patch', quiet=True, run_=False)
- self.m_mremove = pygrass.Module('g.mremove', quiet=True, run_=False)
+ self.m_remove = pygrass.Module('g.remove', quiet=True, run_=False)
self.m_buffer = pygrass.Module('v.buffer', quiet=True, run_=False)
def parse(self, expression, basename = None, overwrite = False):
@@ -520,10 +520,10 @@
for chunk in chunklist:
stringlist = ",".join(chunk)
if self.debug:
- print "g.mremove type=vect pattern=%s"%(stringlist)
+ print "g.remove type=vect pattern=%s"%(stringlist)
if self.run:
- m = copy.deepcopy(self.m_mremove)
+ m = copy.deepcopy(self.m_remove)
m.inputs["type"].value = "vect"
m.inputs["pattern"].value = stringlist
m.flags["f"].value = True
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/unittests_register.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/unittests_register.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/unittests_register.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -297,7 +297,7 @@
"""!Remove maps from temporal database
"""
ret = grass.run_command("t.unregister", maps="register_map_1,register_map_2", quiet=True)
- ret = grass.run_command("g.remove", rast="register_map_1,register_map_2", quiet=True)
+ ret = grass.run_command("g.remove", type="rast", name="register_map_1,register_map_2", quiet=True, flags="f")
self.assertEqual(ret, 0)
self.strds_abs.delete()
self.strds_rel.delete()
Modified: grass/branches/releasebranch_7_0/raster/r.category/test_rcategory_doctest.txt
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.category/test_rcategory_doctest.txt 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.category/test_rcategory_doctest.txt 2014-10-27 16:31:30 UTC (rev 62419)
@@ -231,9 +231,9 @@
when test finishes. It could test if everything which was expected
to be created was created if it would check all outputs properly.
->>> run_command('g.remove', rast='test')
+>>> run_command('g.remove', flags='f', type='rast', name='test')
0
->>> run_command('g.remove', rast='test_14')
+>>> run_command('g.remove', flags='f', type='rast', name='test_14')
0
->>> run_command('g.remove', rast='test_d')
+>>> run_command('g.remove', flags='f', type='rast', name='test_d')
0
Modified: grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/masked_area_selection.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/masked_area_selection.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/masked_area_selection.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -104,7 +104,7 @@
eval `g.findfile elem=windows file="tmp_rli_selmsk.$$" | grep '^name='`
if [ -n "$name" ] ; then
g.region region="tmp_rli_selmsk.$$"
- g.remove region="tmp_rli_selmsk.$$" --quiet
+ g.remove -f type=region name="tmp_rli_selmsk.$$" --quiet
fi
rm -f "$TMP" "$TMP".val
@@ -190,8 +190,8 @@
"$GIS_OPT_conf"
# remove tmp raster and vector
- g.remove rast="tmp_rli_mask.$$" --quiet
- g.remove vect="tmp_rli_mask_v$$" --quiet
+ g.remove -f type=rast name="tmp_rli_mask.$$" --quiet
+ g.remove -f type=vect name="tmp_rli_mask_v$$" --quiet
if [ "$GIS_FLAG_f" -eq 1 ] ; then
g.region n="$GIS_OPT_north" s="$GIS_OPT_south" \
Modified: grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/r.li.setup
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/r.li.setup 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/r.li.setup 2014-10-27 16:31:30 UTC (rev 62419)
@@ -33,7 +33,7 @@
eval `g.findfile elem=windows file="tmp_rlisetup.$$" | grep '^name='`
if [ -n "$name" ] ; then
unset WIND_OVERRIDE
- g.remove region="tmp_rlisetup.$$" --quiet
+ g.remove -f type=region name="tmp_rlisetup.$$" --quiet
fi
}
trap "cleanup" 2 3 15
Modified: grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/sample_area_vector.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/sample_area_vector.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/sample_area_vector.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -71,7 +71,7 @@
eval `g.findfile elem=windows file="tmp_rli_sampvect.$$" | grep '^name='`
if [ -n "$name" ] ; then
g.region region="tmp_rli_sampvect.$$"
- g.remove region="tmp_rli_sampvect.$$" --quiet
+ g.remove -f type=region name="tmp_rli_sampvect.$$" --quiet
fi
rm -f "$TMP"*
@@ -184,12 +184,12 @@
echo "MASKEDOVERLAYAREA $mask_name|$n|$s|$e|$w" >> "$GIS_OPT_conf"
elif [ "$ok" -eq -1 ] ; then
- g.remove vect="$EXTRACT" --quiet
+ g.remove -f type=vect name="$EXTRACT" --quiet
break
fi
#remove temporary vector map created from v.extract
- g.remove vect="$EXTRACT" --quiet
+ g.remove -f type=vect name="$EXTRACT" --quiet
done < "$TMP.cat"
Modified: grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/square_mouse_selection.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/square_mouse_selection.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.li/r.li.setup/square_mouse_selection.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -90,7 +90,7 @@
eval `g.findfile elem=windows file="tmp_rli_sq.$$" | grep '^name='`
if [ -n "$name" ] ; then
g.region region="tmp_rli_sq.$$"
- g.remove region="tmp_rli_sq.$$" --quiet
+ g.remove -f type=region name="tmp_rli_sq.$$" --quiet
fi
rm -f "$TMP" "$TMP.var"
Modified: grass/branches/releasebranch_7_0/raster/r.out.mpeg/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.out.mpeg/main.c 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.out.mpeg/main.c 2014-10-27 16:31:30 UTC (rev 62419)
@@ -398,7 +398,7 @@
sprintf(pattern_arg, "pattern=%s", wildarg);
sprintf(mapset_arg, "mapset=%s", mapset);
- G_spawn_ex("g.mlist", "g.mlist",
+ G_spawn_ex("g.list", "g.list",
type_arg, pattern_arg, mapset_arg,
SF_REDIRECT_FILE, SF_STDOUT, SF_MODE_APPEND, outfile,
NULL);
Modified: grass/branches/releasebranch_7_0/raster/r.patch/r.patch.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.patch/r.patch.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.patch/r.patch.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -103,7 +103,7 @@
used in the order listed.
<div class="code"><pre>
-MAPS=`g.mlist type=rast sep=, pat="map_*"`
+MAPS=`g.list type=rast sep=, pat="map_*"`
g.region rast=$MAPS
r.patch in=$MAPS out=mosaic
</pre></div>
Modified: grass/branches/releasebranch_7_0/raster/r.reclass/r.reclass.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.reclass/r.reclass.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.reclass/r.reclass.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -69,7 +69,7 @@
raster map layer from which a <em>r.reclass</em> has been derived
is only possible if the original map is removed first.
Alternatively, a <em>r.reclass</em> map can be removed including
-its base map by using <p><em><a href="g.mremove.html">g.mremove</a></em>'s
+its base map by using <p><em><a href="g.remove.html">g.remove</a></em>'s
<b>-b</b> flag.
<p>A <em>r.reclass</em> map is not a true raster map layer.
Modified: grass/branches/releasebranch_7_0/raster/r.series/r.series.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.series/r.series.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.series/r.series.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -132,11 +132,11 @@
Using <em>r.series</em> with wildcards:
<br>
<div class="code"><pre>
-r.series input="`g.mlist pattern='insitu_data.*' sep=,`" \
+r.series input="`g.list pattern='insitu_data.*' sep=,`" \
output=insitu_data.stddev method=stddev
</pre></div>
<p>
-Note the <em>g.mlist</em> script also supports regular expressions for
+Note the <em>g.list</em> script also supports regular expressions for
selecting map names.
<p>
@@ -186,11 +186,11 @@
daily average maps ('???' as DOY wildcard):
<div class="code"><pre>
# Approach for shell based systems
-r.series input=`g.mlist rast pattern="temp_2003_???_avg" sep=,` \
+r.series input=`g.list rast pattern="temp_2003_???_avg" sep=,` \
output=temp_2003_days_over_25deg range=25.0,100.0 method=count
# Approach in two steps (e.g., for Windows systems)
-g.mlist rast pattern="temp_2003_???_avg" output=mapnames.txt
+g.list rast pattern="temp_2003_???_avg" output=mapnames.txt
r.series file=mapnames.txt \
output=temp_2003_days_over_25deg range=25.0,100.0 method=count
</pre></div>
Modified: grass/branches/releasebranch_7_0/raster/r.series.accumulate/test_suite/test.r.series.accumulate.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.series.accumulate/test_suite/test.r.series.accumulate.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.series.accumulate/test_suite/test.r.series.accumulate.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -51,7 +51,7 @@
output=test_accu_9 range=6,9 method=mean --verbose
# Test for correct results
-for map in `g.mlist type=rast pattern=test_accu_*` ; do
+for map in `g.list type=rast pattern=test_accu_*` ; do
r.out.ascii input=${map} output=${map}.ref dp=2
done
@@ -62,4 +62,4 @@
CHAR_NUM=`cat out.diff | wc -c`
# Return as exit status 0 in case no diffs are found
-exit $CHAR_NUM
\ No newline at end of file
+exit $CHAR_NUM
Modified: grass/branches/releasebranch_7_0/raster/r.to.rast3elev/test.r.to.rast3elev.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.to.rast3elev/test.r.to.rast3elev.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.to.rast3elev/test.r.to.rast3elev.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -45,4 +45,4 @@
# r.to.rast3elev --o -lu input=elev_25_double,elev_5_double elevation=elev_25_double,elev_5_double output=test_elev_volume_double_9
# Export of the references
-# for i in `g.mlist type=rast3d pattern=test_elev_volume_*` ; do r3.out.ascii dp=0 input=$i output=${i}.ref; done
+# for i in `g.list type=rast3d pattern=test_elev_volume_*` ; do r3.out.ascii dp=0 input=$i output=${i}.ref; done
Modified: grass/branches/releasebranch_7_0/raster/r.watershed/front/r.watershed.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.watershed/front/r.watershed.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/r.watershed/front/r.watershed.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -422,7 +422,7 @@
abs(rwater.accum), \
null() )"
r.colors -g rwater.course col=bcyr
- g.remove MASK
+ g.remove -f type=rast name=MASK
# <i>Thinning is required before converting raster lines to vector</i>
r.thin in=rwater.course out=rwater.course.Thin
Modified: grass/branches/releasebranch_7_0/raster/simwe/r.sim.water/spearfish.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster/simwe/r.sim.water/spearfish.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster/simwe/r.sim.water/spearfish.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -41,14 +41,14 @@
r.out.vtk elevation=${dem} input=${output}_manin,soils vectormaps=${output}_dx,${output}_dy,${output}_null output=manning_soils_gradient.vtk null=0.0
echo "Build topology and exporting walker vector points for each time step"
-for i in `g.mlist vect | grep ${output}` ; do
+for i in `g.list vect | grep ${output}` ; do
v.build $i
echo "v.out.vtk input=$i output=$i.vtk"
v.out.vtk input=$i output=$i.vtk
done
echo "Exporting the raster maps for each time step"
-for i in `g.mlist rast | grep ${output}` ; do
+for i in `g.list rast | grep ${output}` ; do
echo "r.out.vtk elevation=${dem} input=$i output=$i.vtk null=0.0"
r.out.vtk elevation=${dem} input=$i output=$i.vtk null=0.0
done
@@ -57,5 +57,5 @@
echo "Step throu the time steps and adjust the color tables"
# cleanup
-g.remove --q rast=${output}_dx,${output}_dy,${output}_rain,${output}_manin,${output}_infil,${output}_null
-g.remove --q vect=observation_points
+g.remove --q -f type=rast name=${output}_dx,${output}_dy,${output}_rain,${output}_manin,${output}_infil,${output}_null
+g.remove --q -f type=vect name=observation_points
Modified: grass/branches/releasebranch_7_0/raster3d/r3.cross.rast/test.r3.cross.rast.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster3d/r3.cross.rast/test.r3.cross.rast.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster3d/r3.cross.rast/test.r3.cross.rast.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -34,7 +34,7 @@
r3.cross.rast --o input=volume_null elevation=elev_cross output=test_cross_section_result
# Export of the text files
-for i in `g.mlist type=rast pattern=test_cross_section_*` ; do
+for i in `g.list type=rast pattern=test_cross_section_*` ; do
r.out.ascii input=$i output=${i}.txt;
done
Modified: grass/branches/releasebranch_7_0/raster3d/r3.in.bin/test_suite/test.r3.in.bin.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster3d/r3.in.bin/test_suite/test.r3.in.bin.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster3d/r3.in.bin/test_suite/test.r3.in.bin.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -124,7 +124,7 @@
bottom=0 top=100 west=0 east=180 south=0 north=90 \
cols=18 rows=9 depths=10
-for map in `g.mlist type=rast3d pattern=test_in_bin_float*` ; do
+for map in `g.list type=rast3d pattern=test_in_bin_float*` ; do
r3.out.ascii input=${map} output=${map}.txt dp=0
done
@@ -132,7 +132,7 @@
diff $i test_out_bin_float.ref
done
-g.mremove -f rast3d=test_in*
-g.mremove -f rast3d=test_out*
+g.remove -f type=rast3d pattern=test_in*
+g.remove -f type=rast3d pattern=test_out*
rm test_in_*.txt
rm test_out_*.bin
Modified: grass/branches/releasebranch_7_0/raster3d/r3.out.netcdf/test_suite/test.r3.out.netcdf.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster3d/r3.out.netcdf/test_suite/test.r3.out.netcdf.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster3d/r3.out.netcdf/test_suite/test.r3.out.netcdf.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -31,4 +31,4 @@
r3.info volume_time_float
ncdump -h test_time_float.nc
-g.remove rast3=volume_float,volume_double,volume_time_double,volume_time_float
\ No newline at end of file
+g.remove -f type=rast3 name=volume_float,volume_double,volume_time_double,volume_time_float
Modified: grass/branches/releasebranch_7_0/raster3d/r3.retile/test.r3.retile.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster3d/r3.retile/test.r3.retile.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster3d/r3.retile/test.r3.retile.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -36,7 +36,7 @@
r3.info -g map=test_retile_map_10 > test_retile_map_10_info.txt
# Create the validation files
-for map in `g.mlist type=rast3d pattern=test_retile_map_*` ; do
+for map in `g.list type=rast3d pattern=test_retile_map_*` ; do
r3.out.ascii input=${map} output=${map}.txt dp=0
done
Modified: grass/branches/releasebranch_7_0/raster3d/r3.to.rast/test.r3.to.rast.sh
===================================================================
--- grass/branches/releasebranch_7_0/raster3d/r3.to.rast/test.r3.to.rast.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/raster3d/r3.to.rast/test.r3.to.rast.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -21,8 +21,8 @@
r3.to.rast --o input=volume_null_float output=test_raster_slice_float
# Export of the references
-for i in `g.mlist type=rast pattern=test_raster_slice_1*` ; do r.out.ascii input=$i output=${i}.txt; done
-for i in `g.mlist type=rast pattern=test_raster_slice_float*` ; do r.out.ascii input=$i output=${i}.txt; done
+for i in `g.list type=rast pattern=test_raster_slice_1*` ; do r.out.ascii input=$i output=${i}.txt; done
+for i in `g.list type=rast pattern=test_raster_slice_float*` ; do r.out.ascii input=$i output=${i}.txt; done
# The next @preprocess step adjusts the raster region to increase the resolution by 2
g.region res=7.5 -p3
@@ -32,7 +32,7 @@
r3.to.rast --o input=volume_null output=test_raster_slice_2
# Export of the references
-for i in `g.mlist type=rast pattern=test_raster_slice_2*` ; do r.out.ascii input=$i output=${i}.txt; done
+for i in `g.list type=rast pattern=test_raster_slice_2*` ; do r.out.ascii input=$i output=${i}.txt; done
# The next @preprocess step adjusts the raster region to increase the resolution by 2 again
g.region res=5 -p3
@@ -42,7 +42,7 @@
r3.to.rast --o input=volume_null output=test_raster_slice_3
# Export of the references
-for i in `g.mlist type=rast pattern=test_raster_slice_3*` ; do r.out.ascii input=$i output=${i}.txt; done
+for i in `g.list type=rast pattern=test_raster_slice_3*` ; do r.out.ascii input=$i output=${i}.txt; done
# Comparison of references and text files
for i in `ls *.ref` ; do
Modified: grass/branches/releasebranch_7_0/scripts/d.rast.edit/d.rast.edit.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/d.rast.edit/d.rast.edit.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/d.rast.edit/d.rast.edit.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -495,7 +495,7 @@
def cleanup(self):
grass.try_remove(self.tempfile)
- run('g.remove', rast = self.tempmap)
+ run('g.remove', flags = 'f', type = 'rast', name = self.tempmap)
def finalize(self):
self.save_map()
@@ -529,7 +529,7 @@
run('g.region', rast = self.inmap)
run('r.patch', input = (self.tempmap, self.outmap), output = self.outmap, overwrite = True)
run('r.colors', map = self.outmap, rast = self.inmap)
- run('g.remove', rast = self.tempmap)
+ run('g.remove', flags = 'f', type = 'rast', name = self.tempmap)
def read_header(self, infile):
wind = {}
@@ -635,7 +635,7 @@
run('r.mapcalc', expression = "%s = %d" % (self.tempmap, val))
run('r.colors', map = self.tempmap, rast = self.inmap)
run('r.out.ppm', input = self.tempmap, out = self.tempfile)
- run('g.remove', rast = self.tempmap)
+ run('g.remove', flags = 'f', type = 'rast', name = self.tempmap)
tempimg = wx.Image(self.tempfile)
grass.try_remove(self.tempfile)
Modified: grass/branches/releasebranch_7_0/scripts/d.shadedmap/d.shadedmap.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/d.shadedmap/d.shadedmap.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/d.shadedmap/d.shadedmap.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -60,8 +60,8 @@
r_map = tmp_r, g_map = tmp_g, b_map = tmp_b)
grass.run_command('r.composite', red = tmp_r, green = tmp_g,
blue = tmp_b, output = output_map)
- grass.run_command('g.remove', quiet = True,
- rast = '%s,%s,%s' % (tmp_r, tmp_g, tmp_b))
+ grass.run_command('g.remove', quiet=True, flags='f',
+ type='rast', name='%s,%s,%s' % (tmp_r, tmp_g, tmp_b))
ret = grass.run_command("d.his", h_map = drape_map, i_map = relief_map,
Modified: grass/branches/releasebranch_7_0/scripts/db.in.ogr/db.in.ogr.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/db.in.ogr/db.in.ogr.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/db.in.ogr/db.in.ogr.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -108,7 +108,7 @@
else:
# remove the vector part
grass.run_command('v.db.connect', quiet = True, map = output, layer = '1', flags = 'd')
- grass.run_command('g.remove', quiet = True, vect = output)
+ grass.run_command('g.remove', quiet = True, flags = 'f', type = 'vect', name = output)
# get rid of superfluous auto-added cat column (and cat_ if present)
nuldev = file(os.devnull, 'w+')
Modified: grass/branches/releasebranch_7_0/scripts/i.in.spotvgt/i.in.spotvgt.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/i.in.spotvgt/i.in.spotvgt.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/i.in.spotvgt/i.in.spotvgt.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -177,7 +177,7 @@
grass.message(_("Remapping digital numbers to NDVI..."))
tmpname = "%s_%s" % (name, pid)
grass.mapcalc("$tmpname = 0.004 * $name - 0.1", tmpname = tmpname, name = name)
- grass.run_command('g.remove', rast = name, quiet = True)
+ grass.run_command('g.remove', type='rast', name=name, quiet=True, flags='f')
grass.run_command('g.rename', rast = (tmpname, name), quiet = True)
# write cmd history:
Modified: grass/branches/releasebranch_7_0/scripts/i.pansharpen/i.pansharpen.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/i.pansharpen/i.pansharpen.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/i.pansharpen/i.pansharpen.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -175,7 +175,7 @@
# Cleanup
- grass.run_command('g.remove', quiet=True, rast='%s,%s,%s' % (panmatch1, panmatch2, panmatch3))
+ grass.run_command('g.remove', quiet=True, flags='f', type='rast', name='%s,%s,%s' % (panmatch1, panmatch2, panmatch3))
elif sharpen == "ihs":
grass.verbose(_("Using IHS<->RGB algorithm"))
@@ -205,7 +205,7 @@
blue_output="%s_blue" % out)
# Cleanup
- grass.run_command('g.remove', quiet=True, rast=panmatch)
+ grass.run_command('g.remove', quiet=True, flags='f', type='rast', name=panmatch)
elif sharpen == "pca":
grass.verbose(_("Using PCA/inverse PCA algorithm"))
@@ -299,7 +299,7 @@
# Cleanup
- grass.run_command('g.mremove', flags='f', quiet=True, type="rast", pattern='tmp%s*,%s' % (pid,panmatch))
+ grass.run_command('g.remove', flags='f', quiet=True, type="rast", pattern='tmp%s*,%s' % (pid,panmatch))
#Could add other sharpening algorithms here, e.g. wavelet transformation
@@ -335,7 +335,7 @@
grass.raster_history("%s_%s" % (out, ch))
# Cleanup
- grass.run_command('g.mremove', flags="f", type="rast", pattern="tmp%s*" % pid, quiet=True)
+ grass.run_command('g.remove', flags="f", type="rast", pattern="tmp%s*" % pid, quiet=True)
def matchhist(original, target, matched):
@@ -417,7 +417,7 @@
# create reclass of target from reclass rules file
result = grass.core.find_file(matched, element = 'cell')
if result['fullname']:
- grass.run_command('g.remove', quiet=True, rast=matched)
+ grass.run_command('g.remove', quiet=True, flags='f', type='rast', name=matched)
grass.run_command('r.reclass', input=original, out=matched, rules=outfile.name)
else:
grass.run_command('r.reclass', input=original, out=matched, rules=outfile.name)
Modified: grass/branches/releasebranch_7_0/scripts/i.spectral/i.spectral.html
===================================================================
--- grass/branches/releasebranch_7_0/scripts/i.spectral/i.spectral.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/i.spectral/i.spectral.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -29,7 +29,7 @@
<div class="code"><pre>
g.region rast=lsat7_2002_10 -p
-LIST=`g.mlist type=rast pattern="lsat7_2002_[1-5,7]0" separator=","`
+LIST=`g.list type=rast pattern="lsat7_2002_[1-5,7]0" separator=","`
i.spectral raster=$LIST coordinates=637502.25,221744.25
</pre></div>
Modified: grass/branches/releasebranch_7_0/scripts/r.buffer.lowmem/r.buffer.lowmem.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.buffer.lowmem/r.buffer.lowmem.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/r.buffer.lowmem/r.buffer.lowmem.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -58,9 +58,9 @@
# what to do in case of user break:
def cleanup():
if grass.find_file(temp_src)['file']:
- grass.run_command('g.remove', quiet = True, flags = 'f', rast = temp_src)
+ grass.run_command('g.remove', quiet = True, flags = 'bf', type = 'rast', name = temp_src)
if grass.find_file(temp_dist)['file']:
- grass.run_command('g.remove', quiet = True, flags = 'f', rast = temp_dist)
+ grass.run_command('g.remove', quiet = True, flags = 'bf', type = 'rast', name = temp_dist)
def main():
global temp_dist, temp_src
Modified: grass/branches/releasebranch_7_0/scripts/r.colors.stddev/r.colors.stddev.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.colors.stddev/r.colors.stddev.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/r.colors.stddev/r.colors.stddev.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -40,7 +40,7 @@
def cleanup():
if tmpmap:
- grass.run_command('g.remove', rast = tmpmap, quiet = True)
+ grass.run_command('g.remove', type='rast', name=tmpmap, quiet=True, flags='f')
def main():
global tmpmap
Modified: grass/branches/releasebranch_7_0/scripts/r.fillnulls/r.fillnulls.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.fillnulls/r.fillnulls.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/r.fillnulls/r.fillnulls.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -100,9 +100,9 @@
def cleanup():
#delete internal mask and any TMP files:
if len(tmp_vmaps) > 0:
- grass.run_command('g.remove', quiet = True, flags = 'f', vect = tmp_vmaps)
+ grass.run_command('g.remove', quiet=True, flags='bf', type='vect', name=tmp_vmaps)
if len(tmp_rmaps) > 0:
- grass.run_command('g.remove', quiet = True, flags = 'f', rast = tmp_rmaps)
+ grass.run_command('g.remove', quiet=True, flags='bf', type='rast', name=tmp_rmaps)
if usermask and mapset:
if grass.find_file(usermask, mapset = mapset)['file']:
grass.run_command('g.rename', quiet = True, rast = (usermask, 'MASK'), overwrite = True)
@@ -233,7 +233,7 @@
grass.fatal(_("abandoned. Removing temporary maps, restoring user mask if needed:"))
# remove temporary map to not overfill disk
- if grass.run_command('g.remove', flags = 'f', vect = holename + '_pol', quiet = quiet) != 0:
+ if grass.run_command('g.remove', flags='bf', type='vect', name=holename + '_pol', quiet=quiet) != 0:
grass.fatal(_("abandoned. Removing temporary maps, restoring user mask if needed:"))
tmp_vmaps.remove(holename + '_pol')
@@ -325,14 +325,15 @@
tmp_rmaps.remove(holename + '_dem')
except:
pass
- if grass.run_command('g.remove', quiet = quiet, flags = 'f', rast =
- (holename, holename + '_grown', holename + '_edges', holename + '_dem')) != 0:
+ if grass.run_command('g.remove', quiet=quiet, flags='bf',
+ type='rast', name=(holename, holename + '_grown', holename + '_edges', holename + '_dem')) != 0:
grass.fatal(_("abandoned. Removing temporary maps, restoring user mask if needed:"))
try:
tmp_vmaps.remove(holename)
except:
pass
- if grass.run_command('g.remove', quiet = quiet, flags = 'f', vect = holename) != 0:
+ if grass.run_command('g.remove', quiet=quiet, flags='bf',
+ type='vect', name=holename) != 0:
grass.fatal(_("abandoned. Removing temporary maps, restoring user mask if needed:"))
#check if method is different from rst to use r.resamp.bspline
Modified: grass/branches/releasebranch_7_0/scripts/r.grow/r.grow.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.grow/r.grow.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/r.grow/r.grow.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -68,7 +68,7 @@
def cleanup():
for map in [temp_dist, temp_val]:
if map:
- grass.run_command('g.remove', quiet = True, flags = 'f', rast = map)
+ grass.run_command('g.remove', quiet=True, flags='bf', type='rast', name=map)
def main():
global temp_dist, temp_val
Modified: grass/branches/releasebranch_7_0/scripts/r.in.wms/wms_base.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.in.wms/wms_base.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/r.in.wms/wms_base.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -464,8 +464,9 @@
if maps:
grass.run_command('g.remove',
quiet = True,
- flags = 'f',
- rast = ','.join(maps))
+ flags = 'bf',
+ type = 'rast',
+ name = ','.join(maps))
# delete environmental variable which overrides region
if 'GRASS_REGION' in os.environ.keys():
Modified: grass/branches/releasebranch_7_0/scripts/r.mask/r.mask.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.mask/r.mask.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/r.mask/r.mask.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -73,9 +73,9 @@
def cleanup():
if tmp:
- grass.run_command('g.remove', rast = tmp, quiet = True)
+ grass.run_command('g.remove', type='rast', name=tmp, quiet=True, flags='f')
if tmp_hull:
- grass.run_command('g.remove', vect = tmp_hull, quiet = True)
+ grass.run_command('g.remove', type='vect', name=tmp_hull, quiet=True, flags='f')
def main():
raster = options['raster']
@@ -96,7 +96,7 @@
if remove:
# -> remove
if exists:
- grass.run_command('g.remove', quiet = True, rast = 'MASK')
+ grass.run_command('g.remove', quiet=True, type='rast', name='MASK', flags='f')
grass.message(_("Raster MASK removed"))
else:
grass.fatal(_("No existing MASK to remove"))
@@ -107,7 +107,7 @@
grass.fatal(_("MASK already found in current mapset. Delete first or overwrite."))
else:
grass.warning(_("MASK already exists and will be overwritten"))
- grass.run_command('g.remove', quiet = True, rast = 'MASK')
+ grass.run_command('g.remove', quiet=True, type='rast', name='MASK', flags='f')
if raster:
# check if input raster exists
Modified: grass/branches/releasebranch_7_0/scripts/r.reclass.area/r.reclass.area.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.reclass.area/r.reclass.area.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/r.reclass.area/r.reclass.area.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -229,9 +229,9 @@
TMPRAST.reverse() # reclassed map first
for mapp in TMPRAST:
if METHOD == 'rmarea':
- grass.run_command("g.remove", vect=mapp, quiet=True)
+ grass.run_command("g.remove", type='vect', name=mapp, quiet=True, flags='f')
else:
- grass.run_command("g.remove", rast=mapp, quiet=True)
+ grass.run_command("g.remove", type='rast', name=mapp, quiet=True, flags='f')
if __name__ == "__main__":
options, flags = grass.parser()
Modified: grass/branches/releasebranch_7_0/scripts/r.unpack/test_suite/test.r.unpack.sh
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r.unpack/test_suite/test.r.unpack.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/r.unpack/test_suite/test.r.unpack.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -21,7 +21,7 @@
r.pack --o --v -c input=test_double output=test_double_uncompressed.pack
# Remove generated maps and re-import
-g.remove rast=test_int,test_float,test_double
+g.remove -f type=rast name=test_int,test_float,test_double
# Second we check the import with r.unpack
r.unpack --o --v input=test_int.pack
@@ -42,5 +42,5 @@
#r.out.ascii --o input=test_float_uncompressed output=test_float_uncompressed.ref dp=1
#r.out.ascii --o input=test_double_uncompressed output=test_double_uncompressed.ref dp=1
-g.remove rast=test_int,test_float,test_double,test_int_uncompressed,test_float_uncompressed,test_double_uncompressed
-rm *.pack
\ No newline at end of file
+g.remove -f type=rast name=test_int,test_float,test_double,test_int_uncompressed,test_float_uncompressed,test_double_uncompressed
+rm *.pack
Modified: grass/branches/releasebranch_7_0/scripts/r3.in.xyz/r3.in.xyz.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/r3.in.xyz/r3.in.xyz.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/r3.in.xyz/r3.in.xyz.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -178,7 +178,7 @@
def cleanup():
- grass.run_command('g.mremove', flags='f',
+ grass.run_command('g.remove', flags='f',
type="rast", pattern='tmp.r3xyz.%d.*' % os.getpid(),
quiet=True)
@@ -306,7 +306,7 @@
grass.verbose(_("Assembling 3D cube ..."))
#input order: lower most strata first
- slices = grass.read_command('g.mlist', type='rast', sep=',',
+ slices = grass.read_command('g.list', type='rast', sep=',',
pattern='tmp.r3xyz.%d.*' % os.getpid()).rstrip(os.linesep)
grass.debug(slices)
Modified: grass/branches/releasebranch_7_0/scripts/v.dissolve/v.dissolve.html
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.dissolve/v.dissolve.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/v.dissolve/v.dissolve.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -50,7 +50,7 @@
<div class="code"><pre>
# patch tiles after import:
-v.patch -e `g.mlist type=vect pat="clc2000_*" separator=","` out=clc2000_patched
+v.patch -e `g.list type=vect pat="clc2000_*" separator=","` out=clc2000_patched
# remove duplicated tile boundaries:
v.clean clc2000_patched out=clc2000_clean tool=snap,break,rmdupl thresh=.01
Modified: grass/branches/releasebranch_7_0/scripts/v.dissolve/v.dissolve.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.dissolve/v.dissolve.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/v.dissolve/v.dissolve.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -40,7 +40,7 @@
def cleanup():
nuldev = file(os.devnull, 'w')
- grass.run_command('g.remove', vect = '%s_%s' % (output, tmp), quiet = True, stderr = nuldev)
+ grass.run_command('g.remove', type='vect', name='%s_%s' % (output, tmp), quiet=True, flags='f', stderr=nuldev)
def main():
global output, tmp
Modified: grass/branches/releasebranch_7_0/scripts/v.out.gps/v.out.gps.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.out.gps/v.out.gps.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/v.out.gps/v.out.gps.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -99,10 +99,10 @@
# only try to remove map if it exists to avoid ugly warnings
if tmp_vogb:
if grass.find_file(tmp_vogb, element = 'vector')['name']:
- grass.run_command('g.remove', vect = tmp_vogb, quiet = True)
+ grass.run_command('g.remove', type='vect', name=tmp_vogb, quiet=True, flags='f')
if tmp_extr:
if grass.find_file(tmp_extr, element = 'vector')['name']:
- grass.run_command('g.remove', vect = tmp_vogb, quiet = True)
+ grass.run_command('g.remove', type='vect', name=tmp_vogb, quiet=True, flags='f')
tmp = None
tmp_proj = None
Modified: grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -69,8 +69,8 @@
def cleanup():
if rastertmp:
- grass.run_command('g.remove', rast=rastertmp, quiet=True)
- grass.run_command('g.remove', rast='MASK', quiet=True, stderr=nuldev)
+ grass.run_command('g.remove', type='rast', name=rastertmp, quiet=True, flags='f')
+ grass.run_command('g.remove', type='rast', name='MASK', quiet=True, flags='f', stderr=nuldev)
if mask_found:
grass.message(_("Restoring previous MASK..."))
grass.run_command('g.rename', rast=(tmpname + "_origmask", 'MASK'),
@@ -279,7 +279,7 @@
exitcode = grass.run_command('db.execute', input=sqltmp,
database=fi['database'], driver=fi['driver'])
- grass.run_command('g.remove', rast='MASK', quiet=True, stderr=nuldev)
+ grass.run_command('g.remove', type='rast', name='MASK', quiet=True, flags='f', stderr=nuldev)
if exitcode == 0:
grass.verbose((_("Statistics calculated from raster map <%s>") % raster) +
Modified: grass/branches/releasebranch_7_0/scripts/v.to.lines/v.to.lines.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.to.lines/v.to.lines.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/v.to.lines/v.to.lines.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -89,22 +89,26 @@
if 0 != grass.run_command('v.category', layer="2", type='boundary',
option='add', input=input, out=input_tmp,
quiet=quiet):
- grass.run_command('g.remove', vect=input_tmp, quiet=quiet)
+ grass.run_command('g.remove', type='vect', name=input_tmp, quiet=quiet,
+ flags='f')
grass.fatal(_("Error creating layer 2"))
if 0 != grass.run_command('v.db.addtable', map=input_tmp, layer="2",
columns="left integer,right integer",
quiet=quiet):
- grass.run_command('g.remove', vect=input_tmp, quiet=quiet)
+ grass.run_command('g.remove', type='vect', name=input_tmp, quiet=quiet,
+ flags='f')
grass.fatal(_("Error creating new table for layer 2"))
if 0 != grass.run_command('v.to.db', map=input_tmp, option="sides",
columns="left,right", layer="2", quiet=quiet):
- grass.run_command('g.remove', vect=input_tmp, quiet=quiet)
+ grass.run_command('g.remove', type='vect', name=input_tmp, quiet=quiet,
+ flags='f')
grass.fatal(_("Error populating new table for layer 2"))
if 0 != grass.run_command('v.type', input=input_tmp, output=out_type,
from_type='boundary', to_type='line',
quiet=quiet, layer="2"):
- grass.run_command('g.remove', vect=remove_names, quiet=quiet)
+ grass.run_command('g.remove', type='vect', name=remove_names,
+ quiet=quiet, flags='f')
grass.fatal(_("Error converting polygon to line"))
report = grass.read_command('v.category', flags='g', input=out_type,
option='report', quiet=quiet).split('\n')
@@ -117,24 +121,29 @@
if 0 != grass.run_command('v.edit', map=out_type, tool='delete',
type='centroid', layer=2, quiet=quiet,
cats='{mi}-{ma}'.format(mi=min_cat, ma=max_cat)):
- grass.run_command('g.remove', vect=remove_names, quiet=quiet)
+ grass.run_command('g.remove', type='vect', name=remove_names,
+ quiet=quiet, flags='f')
grass.fatal(_("Error removing centroids"))
try:
if 0 != grass.run_command('v.db.droptable', map=out_type, layer=1,
flags='f', quiet=True):
- grass.run_command('g.remove', vect=remove_names, quiet=quiet)
+ grass.run_command('g.remove', type='vect', name=remove_names,
+ quiet=quiet, flags='f')
grass.fatal(_("Error removing table from layer 1"))
except:
grass.warning(_("No table for layer %d" % 1))
if 0 != grass.run_command('v.category', input=out_type, option='transfer',
output=output, layer="2,1", quiet=quiet,
overwrite=overwrite):
- grass.run_command('g.remove', vect=remove_names, quiet=quiet)
+ grass.run_command('g.remove', type='vect', name=remove_names,
+ quiet=quiet, flags='f')
grass.fatal(_("Error adding categories"))
- grass.run_command('g.remove', vect=remove_names, quiet=quiet)
+ grass.run_command('g.remove', type='vect', name=remove_names, quiet=quiet,
+ flags='f')
if point:
- grass.run_command('g.remove', vect=out_temp, quiet=quiet)
+ grass.run_command('g.remove', type='vect', name=out_temp, quiet=quiet,
+ flags='f')
if __name__ == "__main__":
options, flags = grass.parser()
Modified: grass/branches/releasebranch_7_0/scripts/v.unpack/test_suite/test.v.unpack.sh
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.unpack/test_suite/test.v.unpack.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/v.unpack/test_suite/test.v.unpack.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -19,7 +19,7 @@
db.copy from_table=probe_orig to_table=probe_3_3
# Removing un-needed vectors and tables
-g.remove vect=probe_orig
+g.remove -f type=vect name=probe_orig
v.db.droptable -f map=probe_3 table=probe_3 layer=1
# Adding tables to layer
@@ -37,7 +37,7 @@
v.pack --o -c input=probe_3 output=probe_3_uncompressed.pack
# We need to clean before import
-g.remove vect=probe_1,probe_2,probe_3
+g.remove -f type=vect name=probe_1,probe_2,probe_3
# Test the import with v.unpack
v.unpack --o input=probe_1.pack
@@ -55,5 +55,5 @@
v.unpack --o input=probe_3.pack output=probe_3_uncompressed
v.category input=probe_3_uncompressed option=report
-g.remove vect=probe_1_uncompressed,probe_2_uncompressed,probe_3_uncompressed
+g.remove -f type=vect name=probe_1_uncompressed,probe_2_uncompressed,probe_3_uncompressed
rm *.pack
Modified: grass/branches/releasebranch_7_0/scripts/v.unpack/v.unpack.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.unpack/v.unpack.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/scripts/v.unpack/v.unpack.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -90,7 +90,7 @@
grass.fatal(_("Vector map <%s> already exists") % map_name)
elif overwrite == '1' and gfile['file']:
grass.warning(_("Vector map <%s> already exists and will be overwritten") % map_name)
- grass.run_command('g.remove', quiet=True, vect=map_name)
+ grass.run_command('g.remove', quiet=True, flags='f', type='vect', name=map_name)
shutil.rmtree(new_dir, True)
# extract data
Modified: grass/branches/releasebranch_7_0/temporal/t.list/t.list.html
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.list/t.list.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.list/t.list.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -47,7 +47,6 @@
<em>
<a href="g.list.html">g.list</a>,
-<a href="g.mlist.html">g.mlist</a>,
<a href="t.create.html">t.create</a>,
<a href="t.info.html">t.info</a>,
<a href="t.rast.list.html">t.rast.list</a>,
Modified: grass/branches/releasebranch_7_0/temporal/t.merge/test.t.merge.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.merge/test.t.merge.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.merge/test.t.merge.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -49,4 +49,4 @@
t.remove type=strds input=precip_abs1,precip_abs2,precip_abs3,precip_abs4
t.unregister type=rast maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
-g.remove rast=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.accdetect/t.rast.accdetect.py
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.accdetect/t.rast.accdetect.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.accdetect/t.rast.accdetect.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -418,7 +418,7 @@
# Remove empty maps
if len(empty_maps) > 0:
for map in empty_maps:
- grass.run_command("g.remove", rast=map.get_name(), quiet=True)
+ grass.run_command("g.remove", type='rast', name=map.get_name(), quiet=True, flags='f')
############################################################################
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.accumulate/t.rast.accumulate.py
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.accumulate/t.rast.accumulate.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.accumulate/t.rast.accumulate.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -500,7 +500,7 @@
# Remove empty maps
if len(empty_maps) > 0:
for map in empty_maps:
- grass.run_command("g.remove", rast=map.get_name(), quiet=True)
+ grass.run_command("g.remove", type='rast', name=map.get_name(), quiet=True, flags='f')
if __name__ == "__main__":
options, flags = grass.parser()
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.aggregate.ds/test.t.rast.aggregate.ds.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.aggregate.ds/test.t.rast.aggregate.ds.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.aggregate.ds/test.t.rast.aggregate.ds.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -47,4 +47,4 @@
t.remove type=stvds input=soil_abs1
t.remove -rf type=strds input=precip_abs1,precip_abs2
-g.remove vect=soil_1,soil_2,soil_3
+g.remove -f type=vect name=soil_1,soil_2,soil_3
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.extract/test.t.rast.extract.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.extract/test.t.rast.extract.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.extract/test.t.rast.extract.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -28,7 +28,7 @@
t.info type=strds input=precip_abs3
# Let the test fail
-g.remove rast=prec_1
+g.remove -f type=rast name=prec_1
t.rast.extract --o --v input=precip_abs1 output=precip_abs4 \
where="start_time > '2001-01-01'" expr="precip_abs1/1.0"\
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.gapfill/test.t.rast.gapfill.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.gapfill/test.t.rast.gapfill.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.gapfill/test.t.rast.gapfill.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -34,4 +34,4 @@
t.unregister --v type=rast maps=prec_1,prec_2,prec_3,prec_6,prec_7
t.remove --v type=strds input=precip_abs
-g.remove rast=prec_1,prec_2,prec_3,prec_6,prec_7
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_6,prec_7
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import.relative.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import.relative.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import.relative.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -75,7 +75,7 @@
# Cleaning up
t.unregister type=rast maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
t.remove type=strds input=precip_rel
-g.remove rast=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
rm -rf test
rm strds_export.tar.bz2
rm strds_export.tar.gz
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -74,7 +74,7 @@
# Cleaning up
t.unregister type=rast maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
t.remove type=strds input=precip_abs1
-g.remove rast=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
rm -rf test
rm strds_export.tar.bz2
rm strds_export.tar.gz
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import_locations.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import_locations.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.import/test.t.rast.import_locations.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -59,7 +59,7 @@
t.unregister type=rast maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
t.remove type=strds input=precip_abs1
-g.remove rast=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
rm -rf test
rm strds_export.tar.bz2
rm strds_export_pack.tar.gz
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.list/t.rast.list.html
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.list/t.rast.list.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.list/t.rast.list.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -168,7 +168,6 @@
<em>
<a href="g.list.html">g.list</a>,
-<a href="g.mlist.html">g.mlist</a>,
<a href="t.create.html">t.create</a>,
<a href="t.info.html">t.info</a>,
<a href="t.list.html">t.list</a>,
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.mapcalc/test.t.rast.mapcalc.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.mapcalc/test.t.rast.mapcalc.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.mapcalc/test.t.rast.mapcalc.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -47,7 +47,7 @@
t.info type=strds input=precip_abs4
# Let the test fail
-g.remove rast=prec_1
+g.remove -f type=rast name=prec_1
t.rast.mapcalc -sn inputs=precip_abs1,precip_abs2 output=precip_abs4 \
expression=" (precip_abs1 + precip_abs2) * null()" base=new_prec \
method=equal nprocs=5
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.neighbors/t.rast.neighbors.py
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.neighbors/t.rast.neighbors.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.neighbors/t.rast.neighbors.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -185,7 +185,7 @@
else:
names += ",%s" % (map.get_name())
- grass.run_command("g.remove", rast=names, quiet=True)
+ grass.run_command("g.remove", type='rast', name=names, quiet=True, flags='f')
dbif.close()
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.out.vtk/t.rast.out.vtk.py
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.out.vtk/t.rast.out.vtk.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.out.vtk/t.rast.out.vtk.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -144,8 +144,8 @@
count += 1
if use_granularity:
- grass.run_command("g.remove", rast=null_map)
- grass.run_command("g.remove", rast=map_name)
+ grass.run_command("g.remove", type='rast', name=null_map, flags='f')
+ grass.run_command("g.remove", type='rast', name=map_name, flags='f')
if __name__ == "__main__":
options, flags = grass.parser()
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.series/test.t.rast.series.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.series/test.t.rast.series.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.series/test.t.rast.series.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -32,4 +32,4 @@
t.unregister type=rast maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6,prec_sum,prec_max
t.remove type=strds input=precip_abs
-g.remove rast=prec_sum,prec_max,prec_average
+g.remove -f type=rast name=prec_sum,prec_max,prec_average
Modified: grass/branches/releasebranch_7_0/temporal/t.rast.to.rast3/t.rast.to.rast3.py
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.to.rast3/t.rast.to.rast3.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.to.rast3/t.rast.to.rast3.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -148,7 +148,7 @@
if ret != 0:
grass.fatal(_("Unable to create 3D raster map <%s>" % output))
- grass.run_command("g.remove", rast=null_map)
+ grass.run_command("g.remove", type='rast', name=null_map, flags='f')
title = _("Space time voxel cube")
descr = _("This space time voxel cube was created with t.rast.to.rast3")
Modified: grass/branches/releasebranch_7_0/temporal/t.rast3d.list/t.rast3d.list.html
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast3d.list/t.rast3d.list.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rast3d.list/t.rast3d.list.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -7,7 +7,6 @@
<em>
<a href="g.list.html">g.list</a>,
-<a href="g.mlist.html">g.mlist</a>,
<a href="t.create.html">t.create</a>,
<a href="t.info.html">t.info</a>,
<a href="t.list.html">t.list</a>,
Modified: grass/branches/releasebranch_7_0/temporal/t.register/test.t.register.vector.file.layer.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.register/test.t.register.vector.file.layer.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.register/test.t.register.vector.file.layer.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -71,4 +71,4 @@
t.unregister --v type=vect maps=lidar_abs_1:1,lidar_abs_1:2,lidar_abs_1:3,lidar_abs_1:4,lidar_abs_1:5,lidar_abs_1:6
t.remove type=stvds input=lidar_abs_ds1
-g.remove vect=lidar_abs_1,lidar_abs_orig
+g.remove -f type=vect name=lidar_abs_1,lidar_abs_orig
Modified: grass/branches/releasebranch_7_0/temporal/t.register/test.t.register.vector.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.register/test.t.register.vector.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.register/test.t.register.vector.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -63,6 +63,6 @@
t.unregister --v type=vect maps=lidar_abs_1,lidar_abs_2,lidar_abs_3
t.remove --v type=stvds input=lidar_abs_ds1,lidar_abs_ds2,lidar_abs_ds3,lidar_abs_ds4,lidar_abs_ds5,lidar_abs_ds6,lidar_abs_ds7
t.unregister --v type=vect maps=lidar_abs_4,lidar_abs_5,lidar_abs_6
-g.remove vect=lidar_abs_1,lidar_abs_2,lidar_abs_3,lidar_abs_4,lidar_abs_5,lidar_abs_6
+g.remove -f type=vect name=lidar_abs_1,lidar_abs_2,lidar_abs_3,lidar_abs_4,lidar_abs_5,lidar_abs_6
Modified: grass/branches/releasebranch_7_0/temporal/t.remove/t.remove.py
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.remove/t.remove.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.remove/t.remove.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -107,7 +107,7 @@
statement = ""
# Create the pygrass Module object for g.remove
- remove = pyg.Module("g.remove", quiet=True, run_=False)
+ remove = pyg.Module("g.remove", quiet=True, flags='f', run_=False)
for name in dataset_list:
name = name.strip()
@@ -132,7 +132,7 @@
# Delete every 100 maps
if count%100 == 0:
dbif.execute_transaction(map_statement)
- remove(rast=name_list, run_=True)
+ remove(type='rast', name=name_list, run_=True)
map_statement = ""
name_list = []
@@ -140,11 +140,11 @@
dbif.execute_transaction(map_statement)
if name_list:
if type == "strds":
- remove(rast=name_list, run_=True)
+ remove(type='rast', name=name_list, run_=True)
if type == "stvds":
- remove(vect=name_list, run_=True)
+ remove(type='vect', name=name_list, run_=True)
if type == "str3ds":
- remove(rast3d=name_list, run_=True)
+ remove(type='rast3d', name=name_list, run_=True)
statement += sp.delete(dbif=dbif, execute=False)
Modified: grass/branches/releasebranch_7_0/temporal/t.rename/test.t.rename.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rename/test.t.rename.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.rename/test.t.rename.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -49,4 +49,4 @@
t.remove --v type=strds input=precip_abs3,precip_abs4
t.unregister type=rast maps=prec_1,prec_2
-g.remove rast=prec_1,prec_2
+g.remove -f type=rast name=prec_1,prec_2
Modified: grass/branches/releasebranch_7_0/temporal/t.support/test.t.support.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.support/test.t.support.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.support/test.t.support.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -53,7 +53,7 @@
t.info type=strds input=precip_abs2
# Remove three maps
-g.remove rast=prec_1,prec_2,prec_3
+g.remove -f type=rast name=prec_1,prec_2,prec_3
# Booth space time datasets should be updated and 3 maps must have been unregistered
t.support --v -m type=strds input=precip_abs1
@@ -62,4 +62,4 @@
t.remove --v type=strds input=precip_abs1,precip_rel1
t.unregister type=rast maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
-g.remove rast=prec_4,prec_5,prec_6
+g.remove -f type=rast name=prec_4,prec_5,prec_6
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.db.select/test.t.vect.db.select.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.db.select/test.t.vect.db.select.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.db.select/test.t.vect.db.select.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -39,6 +39,6 @@
t.remove type=stvds input=prec_observer
t.unregister type=vect maps=prec_observer:1,prec_observer:2,prec_observer:3,prec_observer:4,prec_observer:5,prec_observer:6
-g.remove vect=prec_observer,test_extract
-g.remove rast=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
+g.remove -f type=vect name=prec_observer,test_extract
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.extract/test.t.vect.extract.layer.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.extract/test.t.vect.extract.layer.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.extract/test.t.vect.extract.layer.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -42,6 +42,6 @@
t.remove type=stvds input=prec_observer,test_extract_1,test_extract_2,test_extract_3
t.unregister type=vect maps=prec_observer:1,prec_observer:2,prec_observer:3,prec_observer:4,prec_observer:5,prec_observer:6
-g.remove vect=prec_observer
-g.mremove -f vect=test_*
-g.remove rast=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
+g.remove -f type=vect name=prec_observer
+g.remove -f vect=test_*
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.extract/test.t.vect.extract.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.extract/test.t.vect.extract.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.extract/test.t.vect.extract.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -44,5 +44,5 @@
# @postprocess
t.unregister type=vect maps=soil_1,soil_2,soil_3,soil_4,soil_5,soil_6,soil_7,soil_8
t.remove type=stvds input=soil_abs1,soil_abs2,soil_abs3
-g.remove vect=soil_1,soil_2,soil_3,soil_4,soil_5,soil_6,soil_7,soil_8
-g.remove vect=new_vect_1,new_vect_2,new_vect_3,new_vect_4,new_vect_5,new_vect_6
+g.remove -f type=vect name=soil_1,soil_2,soil_3,soil_4,soil_5,soil_6,soil_7,soil_8
+g.remove -f type=vect name=new_vect_1,new_vect_2,new_vect_3,new_vect_4,new_vect_5,new_vect_6
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.import/test.t.vect.import.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.import/test.t.vect.import.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.import/test.t.vect.import.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -59,7 +59,7 @@
# Cleaning up
rm -rf test
-g.remove vect=soil_1,soil_2,soil_3
+g.remove -f type=vect name=soil_1,soil_2,soil_3
t.unregister type=vect file="${n1}"
t.remove type=stvds input=soil_abs1,soil_abs2
rm stvds_export_gml.tar.bz2
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.list/t.vect.list.html
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.list/t.vect.list.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.list/t.vect.list.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -7,7 +7,6 @@
<em>
<a href="g.list.html">g.list</a>,
-<a href="g.mlist.html">g.mlist</a>,
<a href="t.create.html">t.create</a>,
<a href="t.info.html">t.info</a>,
<a href="t.list.html">t.list</a>,
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.list/test.t.vect.list.layer.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.list/test.t.vect.list.layer.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.list/test.t.vect.list.layer.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -121,4 +121,4 @@
t.unregister type=vect maps=soils:1,soils:2,soils:3,soils:4,soils:5,soils:6
t.remove type=stvds input=soils_abs1,soils_abs2,soils_abs3,soils_abs4,soils_abs5
-g.remove vect=soil_orig,soils
+g.remove -f type=vect name=soil_orig,soils
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.list/test.t.vect.list.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.list/test.t.vect.list.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.list/test.t.vect.list.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -106,4 +106,4 @@
#t.unregister type=vect maps=lidar_1,lidar_2,lidar_3,lidar_4,lidar_5,lidar_6
#t.remove type=stvds input=lidar_abs1,lidar_abs2,lidar_abs3,lidar_abs4,lidar_abs5
-#g.remove vect=lidar_1,lidar_2,lidar_3,lidar_4,lidar_5,lidar_6
+#g.remove -f type=vect name=lidar_1,lidar_2,lidar_3,lidar_4,lidar_5,lidar_6
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.observe.strds/test.t.vect.observe.strds.layer_bug.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.observe.strds/test.t.vect.observe.strds.layer_bug.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.observe.strds/test.t.vect.observe.strds.layer_bug.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -36,5 +36,5 @@
t.remove type=strds input=precip_abs1
t.remove type=stvds input=prec_observer
-#g.remove vect=prec_observer
-g.mremove -f type=rast pattern=test_prec_*
+#g.remove -f type=vect name=prec_observer
+g.remove -f type=rast pattern=test_prec_*
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.observe.strds/test.t.vect.observe.strds.relative.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.observe.strds/test.t.vect.observe.strds.relative.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.observe.strds/test.t.vect.observe.strds.relative.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -31,5 +31,5 @@
t.remove type=stvds input=prec_observer
t.unregister type=vect maps=prec_observer:1,prec_observer:2,prec_observer:3,prec_observer:4,prec_observer:5,prec_observer:6
-g.remove vect=prec_observer,test_extract
-g.remove rast=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
+g.remove -f type=vect name=prec_observer,test_extract
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.univar/test.t.vect.univar.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.univar/test.t.vect.univar.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.univar/test.t.vect.univar.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -27,5 +27,5 @@
# @postprocess
t.unregister type=vect maps=rpoints1,rpoints2,rvoronoi1,rvoronoi2
t.remove type=stvds input=random_data
-g.remove vect=rpoints1,rpoints2,rvoronoi1,rvoronoi2
+g.remove -f type=vect name=rpoints1,rpoints2,rvoronoi1,rvoronoi2
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/t.vect.what.strds.py
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/t.vect.what.strds.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/t.vect.what.strds.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -185,7 +185,9 @@
if aggreagated_map_name:
ret = grass.run_command("g.remove",
- rast=aggreagated_map_name)
+ flags='f',
+ type='rast',
+ name=aggreagated_map_name)
if ret != 0:
dbif.close()
grass.fatal(_("Unable to remove raster map <%s>")
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds.layer.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds.layer.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds.layer.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -77,5 +77,5 @@
t.unregister type=rast maps=sand_frac,sand_frac_1,sand_frac_2,sand_frac_3,sand_frac_4,sand_frac_5,sand_frac_6
t.remove type=strds input=sand_frac_abs_1,sand_frac_abs_2
-g.remove rast=sand_frac,sand_frac_1,sand_frac_2,sand_frac_3,sand_frac_4,sand_frac_5,sand_frac_6
-g.remove vect=soils,soil_orig
+g.remove -f type=rast name=sand_frac,sand_frac_1,sand_frac_2,sand_frac_3,sand_frac_4,sand_frac_5,sand_frac_6
+g.remove -f type=vect name=soils,soil_orig
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -54,5 +54,5 @@
t.unregister type=rast maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
t.remove type=strds input=precip_abs1
-g.remove rast=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
-g.remove vect=soil_1,soil_2,soil_3
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
+g.remove -f type=vect name=soil_1,soil_2,soil_3
Modified: grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds_relative.sh
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds_relative.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/temporal/t.vect.what.strds/test.t.vect.what.strds_relative.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -55,5 +55,5 @@
t.unregister type=rast maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
t.remove type=strds input=precip_rel1
-g.remove rast=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
-g.remove vect=soil_1,soil_2,soil_3
+g.remove -f type=rast name=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
+g.remove -f type=vect name=soil_1,soil_2,soil_3
Modified: grass/branches/releasebranch_7_0/testsuite/raster/raster_md5test.sh
===================================================================
--- grass/branches/releasebranch_7_0/testsuite/raster/raster_md5test.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/testsuite/raster/raster_md5test.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -48,7 +48,7 @@
cleanup()
{
echo "Removing temporary map"
- g.remove rast=$TMPNAME > /dev/null
+ g.remove -f type=rast name=$TMPNAME > /dev/null
}
# check if a MASK is already present:
@@ -64,11 +64,11 @@
{
echo "Restoring user region"
g.region region=$TMPNAME
- g.remove region=$TMPNAME > /dev/null
+ g.remove -f type=region name=$TMPNAME > /dev/null
#restore user mask if present:
if test -f $LOCATION/cell/$USERMASK ; then
echo "Restoring user MASK"
- g.remove rast=MASK > /dev/null
+ g.remove -f type=rast name=MASK > /dev/null
g.rename $USERMASK,MASK > /dev/null
fi
}
Modified: grass/branches/releasebranch_7_0/testsuite/raster/rhemisphere.sh
===================================================================
--- grass/branches/releasebranch_7_0/testsuite/raster/rhemisphere.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/testsuite/raster/rhemisphere.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -24,7 +24,7 @@
cleanup()
{
echo "Removing temporary map"
- g.remove --q rast=$TMP > /dev/null
+ g.remove --q -f type=rast name=$TMP > /dev/null
}
########################
Modified: grass/branches/releasebranch_7_0/testsuite/raster/rmapcalc_test.sh
===================================================================
--- grass/branches/releasebranch_7_0/testsuite/raster/rmapcalc_test.sh 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/testsuite/raster/rmapcalc_test.sh 2014-10-27 16:31:30 UTC (rev 62419)
@@ -43,7 +43,7 @@
cleanup()
{
echo "Removing temporary map"
- g.remove rast=$TMPNAME > /dev/null
+ g.remove -f type=rast name=$TMPNAME > /dev/null
}
# check if a MASK is already present:
@@ -59,11 +59,11 @@
{
echo "Restoring user region"
g.region region=$TMPNAME
- g.remove region=$TMPNAME > /dev/null
+ g.remove -f type=region name=$TMPNAME > /dev/null
#restore user mask if present:
if test -f $LOCATION/cell/$USERMASK ; then
echo "Restoring user MASK"
- g.remove rast=MASK > /dev/null
+ g.remove -f type=rast name=MASK > /dev/null
g.rename $USERMASK,MASK > /dev/null
fi
}
Modified: grass/branches/releasebranch_7_0/tools/thumbnails.py
===================================================================
--- grass/branches/releasebranch_7_0/tools/thumbnails.py 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/tools/thumbnails.py 2014-10-27 16:31:30 UTC (rev 62419)
@@ -30,9 +30,9 @@
if tmp_img:
grass.try_remove(tmp_img)
if tmp_grad_rel:
- grass.run_command('g.remove', rast = tmp_grad_rel, quiet = True)
+ grass.run_command('g.remove', type = 'rast', name = tmp_grad_rel, quiet = True, flags = 'f')
if tmp_grad_abs:
- grass.run_command('g.remove', rast = tmp_grad_abs, quiet = True)
+ grass.run_command('g.remove', type = 'rast', name = tmp_grad_abs, quiet = True, flags = 'f')
# def rotate(src, dst):
# grass.call(["convert", "-rotate", "90", src, dst])
Modified: grass/branches/releasebranch_7_0/vector/v.distance/v.distance.html
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.distance/v.distance.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/vector/v.distance/v.distance.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -149,7 +149,7 @@
# we need to give the lines category numbers, create a table, and create
# a column in that table to hold the distance data.
v.category vdistance_vectors_raw out=vdistance_vectors type=line op=add
-g.remove v=vdistance_vectors_raw
+g.remove -f type=vect name=vdistance_vectors_raw
v.db.addtable map=vdistance_vectors column="length DOUBLE"
v.to.db map=vdistance_vectors option=length column=length
Modified: grass/branches/releasebranch_7_0/vector/v.lrs/v.lrs.create/v.lrs.create.html
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.lrs/v.lrs.create/v.lrs.create.html 2014-10-27 15:42:25 UTC (rev 62418)
+++ grass/branches/releasebranch_7_0/vector/v.lrs/v.lrs.create/v.lrs.create.html 2014-10-27 16:31:30 UTC (rev 62419)
@@ -43,7 +43,7 @@
# vector line needs to be polyline
v.build.polylines busroute_tmp2 out=busroute_tmp3
v.category busroute_tmp3 out=busroute op=add
-g.remove vect=busroute_tmp,busroute_tmp2,busroute_tmp3
+g.remove -f type=vect name=busroute_tmp,busroute_tmp2,busroute_tmp3
</pre></div>
The result can be visualized:
More information about the grass-commit
mailing list