[STATSGRASS] R - problem with mapsets
Roger Bivand
Roger.Bivand at nhh.no
Thu Jul 29 07:51:31 EDT 2004
On Thu, 29 Jul 2004, Hamish wrote:
> > Thanks, this is helpful. I'll look at rast.get(), the underlying C
> > function rastget, and the GRASS function it calls (G_find_cell()) -
> > rastget doesn't try to parse the @, and if G_find_cell() doesn't, then
> > the behaviour you see is reasonable.
>
>
> g.mlist might be a *much* better program to use for parsing.
> (works well in GRASS 5.3 & newer; take care with the 5.0.3 version)
>
> e.g., 'g.mlist rast' lists all rasters in mapset, one on each line.
>
>
> see:
> http://grass.ibiblio.org/grass57/manuals/html57_user/g.mlist.html
Thanks, I'll look at its code, but it is not a program that is needed, it
is the libgis.a functions for a program that stays running longer than
regular GRASS programs, and gets fooled by legagy GRASS buffers and
squirrels-away (mapset was one) because it doesn't see changes made by
other GRASS programs.
Roger
>
>
>
> Hamish
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
More information about the grass-stats
mailing list