[GRASS-user] Behavior difference: g.list and g.remove

   Running 7.5.svn (r71933) on Slackware-14.2. Using g.remove without the
'-f' option to check which files would be removed does not find the same
files found by g.list:

g.list type=rast pattern=blocked1_*

blocked1_h_0000
blocked1_h_0001
blocked1_h_0002
blocked1_h_0003
blocked1_h_max
[Raster MASK present]

g.remove type=rast pattern=blocked1_*

The following data base element files would be deleted:
WARNING: No data base element files found
[Raster MASK present]

   Is this a user error?

Rich

On 14/12/17 17:18, Rich Shepard wrote:

Running 7.5.svn (r71933) on Slackware-14.2. Using g.remove without the
'-f' option to check which files would be removed does not find the same
files found by g.list:

g.list type=rast pattern=blocked1_*

blocked1_h_0000
blocked1_h_0001
blocked1_h_0002
blocked1_h_0003
blocked1_h_max
[Raster MASK present]

g.remove type=rast pattern=blocked1_*

The following data base element files would be deleted:
WARNING: No data base element files found
[Raster MASK present]

Is this a user error?

In which mapset are the maps found by g.list. AFAIR, g.remove only lists those files that are in the current mapset as the user can only remove files there.

Moritz

On Thu, 14 Dec 2017, Moritz Lennert wrote:

In which mapset are the maps found by g.list. AFAIR, g.remove only lists
those files that are in the current mapset as the user can only remove
files there.

Moritz,

   Yes, I had forgotten this, as Vero pointed out.

   As a suggestion, would it be difficult to append mapset names to map names
for all files, not only duplicates? It would be really helpful to see in
which mapset a map is located, especially when cleaning up from multiple
trials, each having a different map name.

Thanks,

Rich

2017-12-14 18:02 GMT+01:00 Rich Shepard <rshepard@appl-ecosys.com>:

  As a suggestion, would it be difficult to append mapset names to map names
for all files, not only duplicates? It would be really helpful to see in
which mapset a map is located, especially when cleaning up from multiple
trials, each having a different map name.

g.list -m

see the manual. Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On Thu, 14 Dec 2017, Martin Landa wrote:

g.list -m

Martin,

   Mea culpa! I missed that when I looked at the options.

Apologies to all,

Rich