[GRASS-user] r.le.setup trouble and r.li not found

Dear users,

After having updated grass from 6.2.2 to 6.2.3 (Ubuntu gutsy), I am still messing with r.le.setup with the error:

(...)
Enter name of site map
Enter 'list' for a list of existing vector files
Hit RETURN to cancel request
> sites5
<sites5>
WARNING: Adapted sites library used for vector points (module should be
        updated to GRASS 6 vector library).
ERROR: G_get_site() not yet updated.

Googling on help list it seems that at least one other lister has met the same problem (see http://lists.osgeo.org/pipermail/grass-user/2005-October/030841.html) but no answer have been proposed yet.

Has really no one an idea about what happens ?

Moreover, it in help lists, it is sometimes advised to use r.li unstead r.le. However, a call to r.li.setup gives:

GRASS 6.2.3 (startt):~ > r.li.setup
bash: r.li.setup : commande introuvable

Patrick

Patrick Giraudoux wrote:

After having updated grass from 6.2.2 to 6.2.3 (Ubuntu gutsy), I am
still messing with r.le.setup with the error:

(...)
Enter name of site map
Enter 'list' for a list of existing vector files
Hit RETURN to cancel request

sites5

<sites5>
WARNING: Adapted sites library used for vector points (module should be
       updated to GRASS 6 vector library).
ERROR: G_get_site() not yet updated.

FWIW this stage works for me with current GRASS 6.2 CVS and
GRASS 6.3 CVS.

GRASS 6.2.3 (startt):~ > r.li.setup
bash: r.li.setup : commande introuvable

r.li.* commands are not supposed to be present in 6.2 AFAIK.
In 6.3 they are.

Maciek

Hm... This is quite strange. I have removed grass and then re-install 6.2.3 completely. No success at all and still this frustrating message:

<sites5>
WARNING: Adapted sites library used for vector points (module should be
       updated to GRASS 6 vector library).
ERROR: G_get_site() not yet updated.

I really wonder what the origin can be. I have re-installed thinking that some library could have escaped for some reason during a former updating. This ws obviously not the case since complete intallation does not fix the problem. I have also tried other mapsets... with the same result. My system is Ubuntu Gusty. Wonder if it could come from that ???

Anyway, any further suggestion appreciated.

Patrick

Maciej Sieczka wrote:

Patrick Giraudoux wrote:

After having updated grass from 6.2.2 to 6.2.3 (Ubuntu gutsy), I am
still messing with r.le.setup with the error:

(...)
Enter name of site map
Enter 'list' for a list of existing vector files
Hit RETURN to cancel request
    

sites5
      

<sites5>
WARNING: Adapted sites library used for vector points (module should be
       updated to GRASS 6 vector library).
ERROR: G_get_site() not yet updated.
    
FWIW this stage works for me with current GRASS 6.2 CVS and
GRASS 6.3 CVS.

GRASS 6.2.3 (startt):~ > r.li.setup
bash: r.li.setup : commande introuvable
    
r.li.* commands are not supposed to be present in 6.2 AFAIK.
In 6.3 they are.

Maciek
  

Patrick Giraudoux wrote:

>> (...)
>> Enter name of site map
>> Enter 'list' for a list of existing vector files
>> Hit RETURN to cancel request
>>
>>> sites5
>>>
>> <sites5>
>> WARNING: Adapted sites library used for vector points (module should be
>> updated to GRASS 6 vector library).
>> ERROR: G_get_site() not yet updated.

...

Hm... This is quite strange. I have removed grass and then re-install
6.2.3 completely. No success at all and still this frustrating message:

...

I really wonder what the origin can be. I have re-installed thinking
that some library could have escaped for some reason during a former
updating. This ws obviously not the case since complete intallation does
not fix the problem. I have also tried other mapsets... with the same
result.

r.le.setup was not fully ported from GRASS 5. GRASS 5's "sites" format was
independent from its vector lines/areas format. In GRASS 6 these were merged.
To ease the change the GRASS 5 sites library was partially adapted to work with
GRASS 6 vectors, but as you are finding not fully.

Fortunately it is not hard to update r.le.setup, patch attached.

My system is Ubuntu Gusty. Wonder if it could come from that ???

No, it affects everyone.

Maciek:

> FWIW this stage works for me with current GRASS 6.2 CVS and
> GRASS 6.3 CVS.

spearfish example:

r.le.setup map=elevation.dem vect=archsites
Setup sampling units (3)
Use keyboard to enter sampling unit dimensions (1)
How many different SCALES do you want (1-15)? 1
Centered over sites 5
Do you want to sample using rectangles
    (including squares) (y) or circles (n)? (y/n) [y] y

Sampling unit SHAPE (aspect ratio, #cols/#rows) expressed as real number
    (e.g., 10 cols/5 rows = 2.0) for sampling units of scale 1? 1.0

    What size (in pixels) for each sampling unit of scale 1? 50
    The nearest size is 7 cells wide X 7 cells high = 49 cells
    Is this SIZE OK? (y/n) [y] y

Enter name of site map
Enter 'list' for a list of existing vector files
Hit RETURN to cancel request

archsites

WARNING: Adapted sites library used for vector points (module should be
         updated to GRASS 6 vector library).
ERROR: G_get_site() not yet updated.

Hamish

      ____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

(attachments)

rle_setup_sample_points.diff (3.16 KB)

Fortunately it is not hard to update r.le.setup, patch attached.

Thanks for the hint and the patch. However, I am not sure about how to use it... Looks like a C script but I am not a C programmer. How and where can it be compiled to be used in GRASS ? Sorry for this likely trivial question...

All the best,

Patrick

Hamish:

> Fortunately it is not hard to update r.le.setup, patch attached.

Patrick Giraudoux wrote:

Thanks for the hint and the patch. However, I am not sure about how to
use it... Looks like a C script but I am not a C programmer.

It is C. You must recompile r.le.setup to use it. But you don't need to know
any C to apply the patch or build GRASS from source code.

How and where can it be compiled to be used in GRASS ? Sorry for this likely
trivial question...

You will have to recompile GRASS yourself from the source code to use the
patch, or wait for the next 6.2.4, 6.3.0, or 6.3-cvs/svn snapshot release.
(note the patch is not yet applied in CVS/SVN, but will be in the next day or
two)

Compiling from source code is not as hard as you might think, and can be both a
rewarding and empowering experience. The instructions given for Debian will be
very similar to Ubuntu if you need more help.
  http://grass.gdf-hannover.de/wiki/Patches#Applying_a_patch
  http://grass.gdf-hannover.de/wiki/Compile_and_Install

Hamish

      ____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Patrick Giraudoux ha scritto:

Hm... This is quite strange. I have removed grass and then re-install

...
Please note: r.li is a replacement of r.le. Not all the analyses are
implemented, but those who are are much faster and more flexible.
Adding new indices is relatively straightforward.
All the best.
pc
--
Paolo Cavallini, see: http://www.faunalia.it/pc