[GRASS-user] r.reclass and g.remove: another issue
Glynn Clements
glynn at gclements.plus.com
Thu Apr 26 18:35:09 EDT 2007
Jarekj Jasiewicz wrote:
> IProblem concerns cvs update from april, 26, 19:13 EET
>
> The test of bugfix from r.reclass and g.remove reveals another small
> problem: the map wchich is base map for reclassed map cannot be removed
> even if reclassed map is removed first:
>
> on spearfish:
>
> I created new map "abc" (copy of elevation.dem form PERMANENT)
>
> and created a reclassed "abc" map named "cdf"
>
> I tried:
>
> g.remove rast=cdf at nowe
>
> GRASS_INFO_MESSAGE(28577,1): Removing raster <cdf at nowe>
>
> (map cdf not exist)
>
>
> next:
>
> I tried to remove map abc:
>
> g.remove rast=abc at nowe
>
> GRASS_INFO_WARNING(28608,1): [abc at nowe@nowe] is a base map. Remove
> reclassed map first: cdf at nowe
In this situation, you can use "g.remove -f ..." to ignore the warning
and remove the map anyhow.
> I tried also:
>
> g.list type=rast
>
> and I recived:
>
> ------
> raster files available in mapset nowe:
> abc
>
> raster files available in mapset PERMANENT:
> aspect bugsites density ..............
> --------
>
> The problem is beacause:
>
> in:
> ~/spearfish60/nowe/cell_misc/abc
>
> exist file reclased_to with "cdf at nowe"
>
> if reclased_to will be removed manually base map can be removed without
> problem. Unfortunatly I don't how to fix it
The first g.remove should have removed the entry from the reclassed_to
file; I'll look into why it didn't.
However, if another user creates a reclass of one of your maps, it may
not be possible to remove their reclass map first, so sometimes using
the -f switch is necessary.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list