Hi Hamesh,<br><br>Thanks for providing the information.<br><br>I have installed "Cygwin" and still am getting the same error Displaying that there is no such command. Can you explain more clearly what should i do to execute this command.<br>
<br>Thanks,<br>nani.<br><br><div class="gmail_quote">On Sun, Apr 3, 2011 at 6:00 PM, <span dir="ltr"><<a href="mailto:grass-user-request@lists.osgeo.org" target="_blank">grass-user-request@lists.osgeo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send grass-user mailing list submissions to<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:grass-user-request@lists.osgeo.org" target="_blank">grass-user-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:grass-user-owner@lists.osgeo.org" target="_blank">grass-user-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of grass-user digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Problem with Python Scripts and grass.script (GRASS<br>
6.5SVN) on Mac (Glynn Clements)<br>
2. Re: Re: r.li.setup (Hamish)<br>
3. Re: Using r.buffer on image with geographic coordinates<br>
(Markus Metz)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 2 Apr 2011 23:37:47 +0100<br>
From: Glynn Clements <<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>><br>
Subject: Re: [GRASS-user] Problem with Python Scripts and grass.script<br>
(GRASS 6.5SVN) on Mac<br>
To: Johannes Radinger <<a href="mailto:JRadinger@gmx.at" target="_blank">JRadinger@gmx.at</a>><br>
Cc: <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>, Michael Barton<br>
<<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>><br>
Message-ID: <<a href="mailto:19863.42299.525955.400396@cerise.gclements.plus.com" target="_blank">19863.42299.525955.400396@cerise.gclements.plus.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
Johannes Radinger wrote:<br>
<br>
> I tried to figure out the problem with william kyngesburye.<br>
> the script is also working on his mac. I saved the script in the bin<br>
> folder and ran in the GRASS terminal:<br>
<br>
> AttributeError: 'module' object has no attribute 'mapcalc'<br>
><br>
><br>
> What causes this AttributeError?<br>
<br>
The grass.script module is either broken or very old (the mapcalc()<br>
function was added in December 2008).<br>
<br>
>From within GRASS, try the following:<br>
<br>
$ python<br>
> import grass.script as grass<br>
> print grass.__file__<br>
> print grass.__path__<br>
<br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 2 Apr 2011 16:52:15 -0700 (PDT)<br>
From: Hamish <<a href="mailto:hamish_b@yahoo.com" target="_blank">hamish_b@yahoo.com</a>><br>
Subject: Re: [GRASS-user] Re: r.li.setup<br>
To: <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>, vinod kumar <<a href="mailto:nani.kunithi@gmail.com" target="_blank">nani.kunithi@gmail.com</a>><br>
Message-ID: <<a href="mailto:235869.98585.qm@web110005.mail.gq1.yahoo.com" target="_blank">235869.98585.qm@web110005.mail.gq1.yahoo.com</a>><br>
Content-Type: text/plain; charset=iso-8859-1<br>
<br>
Nani wrote:<br>
>r.li.setup<br>
..<br>
> How to install, Where to find it, how is it provided,<br>
<br>
r.li.* is not provided in WinGrass. Only on UNIX builds (Mac or<br>
Linux). If you want to use these modules, you may also try the<br>
Cygwin build of GRASS for MS Windows, or try the older r.le<br>
modules.<br>
<br>
> what is it supposed this command do.<br>
<br>
see <a href="http://grass.osgeo.org/grass64/manuals/html64_user/r.li.html" target="_blank">http://grass.osgeo.org/grass64/manuals/html64_user/r.li.html</a><br>
<br>
<br>
Hamish<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sun, 3 Apr 2011 15:07:47 +0200<br>
From: Markus Metz <<a href="mailto:markus.metz.giswork@googlemail.com" target="_blank">markus.metz.giswork@googlemail.com</a>><br>
Subject: Re: [GRASS-user] Using r.buffer on image with geographic<br>
coordinates<br>
To: Ned Horning <<a href="mailto:horning@amnh.org" target="_blank">horning@amnh.org</a>><br>
Cc: GRASS user list <<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>><br>
Message-ID: <BANLkTi=<a href="mailto:C5ETWZ0OH267Y3zQ3bvgrmB1kJw@mail.gmail.com" target="_blank">C5ETWZ0OH267Y3zQ3bvgrmB1kJw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Wed, Mar 30, 2011 at 1:52 PM, Ned Horning <<a href="mailto:horning@amnh.org" target="_blank">horning@amnh.org</a>> wrote:<br>
> Thanks for the help compiling with v.buffer. I think I'm running the correct<br>
> version now but the function still does not complete properly. I pasted the<br>
> last several lines from the terminal screen below. I have a feeling I ran<br>
> out of memory. Any ideas about what I can try next?<br>
><br>
Not sure if the "d.vect: free(): invalid" error means that d.vect<br>
caused the problem.<br>
<br>
You could try several things:<br>
- update your grass-6.5 to r45873<br>
- close the grass gui and other applications not really necessary<br>
- now try v.buffer again<br>
<br>
The process got killed while snapping boundaries which is rather<br>
memory demanding. Memory consumption for vector operations like<br>
snapping can be substantially reduced in grass 7, but grass 7 still<br>
has only the broken version of v.buffer2 (to be fixed).<br>
<br>
Alternatively you could use r.grow.distance on the rasterized version<br>
and set all values larger than the desired buffer distance to NULL<br>
<br>
Markus M<br>
<br>
<br>
><br>
> --<br>
> D0/0: sa: 22<br>
> D0/0: current: 22<br>
> D0/0: current = 29, last = 30, lcount = 1<br>
> D0/0: sa: 28<br>
> D0/0: current: 28<br>
> D0/0: current = 29, last = 34, lcount = 1<br>
> D0/0: sa: 28<br>
> D0/0: current: 28<br>
> Building parts of topology...<br>
> Building topology for vector map <testBuf>...<br>
> Registering primitives...<br>
> 1433691 primitives registered<br>
> 119731336 vertices registered<br>
> Number of nodes: 1433605<br>
> Number of primitives: 1433691<br>
> Number of points: 0<br>
> Number of lines: 0<br>
> Number of boundaries: 1433691<br>
> Number of centroids: 0<br>
> Number of areas: -<br>
> Number of isles: -<br>
> Snapping boundaries...<br>
> Killed<br>
> GRASS 6.5.svn (NHD_Test):~ ><br>
><br>
> GRASS 6.5.svn (NHD_Test):~ > *** glibc detected *** d.vect: free(): invalid<br>
> next size (normal): 0x0000000001a77fc0 ***<br>
> ======= Backtrace: =========<br>
> /lib/libc.so.6(+0x775b6)[0x7f32f1a055b6]<br>
> /lib/libc.so.6(cfree+0x73)[0x7f32f1a0be83]<br>
> /usr/local/grass-6.5.svn/lib/<a href="http://libgrass_vect.6.5.svn.so" target="_blank">libgrass_vect.6.5.svn.so</a>(Vect_destroy_line_struct+0x28)[0x7f32f35be638]<br>
> d.vect(plot1+0xb0a)[0x40876a]<br>
> d.vect(main+0x1314)[0x4072d4]<br>
> /lib/libc.so.6(__libc_start_main+0xfd)[0x7f32f19acc4d]<br>
> d.vect[0x403cd9]<br>
> ======= Memory map: ========<br>
> 00400000-0040c000 r-xp 00000000 08:05 206108<br>
> /usr/local/grass-6.5.svn/bin/d.vect<br>
> 0060b000-0060c000 r--p 0000b000 08:05 206108<br>
> /usr/local/grass-6.5.svn/bin/d.vect<br>
> 0060c000-0060d000 rw-p 0000c000 08:05 206108<br>
> /usr/local/grass-6.5.svn/bin/d.vect<br>
> 01a6a000-01a8b000 rw-p 00000000 00:00 0<br>
> [heap]<br>
> 7f32e4000000-7f32e4021000 rw-p 00000000 00:00 0<br>
> 7f32e4021000-7f32e8000000 ---p 00000000 00:00 0<br>
> 7f32e8b3c000-7f32e8b48000 r-xp 00000000 08:05 531120<br>
> /lib/<a href="http://libnss_files-2.11.1.so" target="_blank">libnss_files-2.11.1.so</a><br>
> 7f32e8b48000-7f32e8d47000 ---p 0000c000 08:05 531120<br>
> /lib/<a href="http://libnss_files-2.11.1.so" target="_blank">libnss_files-2.11.1.so</a><br>
> 7f32e8d47000-7f32e8d48000 r--p 0000b000 08:05 531120<br>
> /lib/<a href="http://libnss_files-2.11.1.so" target="_blank">libnss_files-2.11.1.so</a><br>
> 7f32e8d48000-7f32e8d49000 rw-p 0000c000 08:05 531120<br>
> /lib/<a href="http://libnss_files-2.11.1.so" target="_blank">libnss_files-2.11.1.so</a><br>
> 7f32e8d49000-7f32e8d53000 r-xp 00000000 08:05 531542<br>
> /lib/<a href="http://libnss_nis-2.11.1.so" target="_blank">libnss_nis-2.11.1.so</a><br>
> 7f32e8d53000-7f32e8f52000 ---p 0000a000 08:05 531542<br>
> /lib/<a href="http://libnss_nis-2.11.1.so" target="_blank">libnss_nis-2.11.1.so</a><br>
> 7f32e8f52000-7f32e8f53000 r--p 00009000 08:05 531542<br>
> /lib/<a href="http://libnss_nis-2.11.1.so" target="_blank">libnss_nis-2.11.1.so</a><br>
> 7f32e8f53000-7f32e8f54000 rw-p 0000a000 08:05 531542<br>
> /lib/<a href="http://libnss_nis-2.11.1.so" target="_blank">libnss_nis-2.11.1.so</a><br>
> 7f32e8f54000-7f32e8f5c000 r-xp 00000000 08:05 527981<br>
> /lib/<a href="http://libnss_compat-2.11.1.so" target="_blank">libnss_compat-2.11.1.so</a><br>
> 7f32e8f5c000-7f32e915b000 ---p 00008000 08:05 527981<br>
> /lib/<a href="http://libnss_compat-2.11.1.so" target="_blank">libnss_compat-2.11.1.so</a><br>
> 7f32e915b000-7f32e915c000 r--p 00007000 08:05 527981<br>
> /lib/<a href="http://libnss_compat-2.11.1.so" target="_blank">libnss_compat-2.11.1.so</a><br>
> 7f32e915c000-7f32e915d000 rw-p 00008000 08:05 527981<br>
> /lib/<a href="http://libnss_compat-2.11.1.so" target="_blank">libnss_compat-2.11.1.so</a><br>
> 7f32e915d000-7f32e9160000 r-xp 00000000 08:05 523508<br>
> /lib/libgpg-error.so.0.4.0<br>
> 7f32e9160000-7f32e935f000 ---p 00003000 08:05 523508<br>
> /lib/libgpg-error.so.0.4.0<br>
> 7f32e935f000-7f32e9360000 r--p 00002000 08:05 523508<br>
> /lib/libgpg-error.so.0.4.0<br>
> 7f32e9360000-7f32e9361000 rw-p 00003000 08:05 523508<br>
> /lib/libgpg-error.so.0.4.0<br>
> 7f32e9361000-7f32e9371000 r-xp 00000000 08:05 134688<br>
> /usr/lib/libtasn1.so.3.1.7<br>
> 7f32e9371000-7f32e9570000 ---p 00010000 08:05 134688<br>
> /usr/lib/libtasn1.so.3.1.7<br>
> 7f32e9570000-7f32e9571000 r--p 0000f000 08:05 134688<br>
> /usr/lib/libtasn1.so.3.1.7<br>
> 7f32e9571000-7f32e9572000 rw-p 00010000 08:05 134688<br>
> /usr/lib/libtasn1.so.3.1.7<br>
> 7f32e9572000-7f32e958b000 r-xp 00000000 08:05 134634<br>
> /usr/lib/libsasl2.so.2.0.23<br>
> 7f32e958b000-7f32e978a000 ---p 00019000 08:05 134634<br>
> /usr/lib/libsasl2.so.2.0.23<br>
> 7f32e978a000-7f32e978b000 r--p 00018000 08:05 134634<br>
> /usr/lib/libsasl2.so.2.0.23<br>
> 7f32e978b000-7f32e978c000 rw-p 00019000 08:05 134634<br>
> /usr/lib/libsasl2.so.2.0.23<br>
> 7f32e978c000-7f32e97a2000 r-xp 00000000 08:05 531562<br>
> /lib/<a href="http://libresolv-2.11.1.so" target="_blank">libresolv-2.11.1.so</a><br>
> 7f32e97a2000-7f32e99a1000 ---p 00016000 08:05 531562<br>
> /lib/<a href="http://libresolv-2.11.1.so" target="_blank">libresolv-2.11.1.so</a><br>
> 7f32e99a1000-7f32e99a2000 r--p 00015000 08:05 531562<br>
> /lib/<a href="http://libresolv-2.11.1.so" target="_blank">libresolv-2.11.1.so</a><br>
> 7f32e99a2000-7f32e99a3000 rw-p 00016000 08:05 531562<br>
> /lib/<a href="http://libresolv-2.11.1.so" target="_blank">libresolv-2.11.1.so</a><br>
> 7f32e99a3000-7f32e99a5000 rw-p 00000000 00:00 0<br>
> 7f32e99a5000-7f32e99a7000 r-xp 00000000 08:05 523515<br>
> /lib/<a href="http://libkeyutils-1.2.so" target="_blank">libkeyutils-1.2.so</a><br>
> 7f32e99a7000-7f32e9ba6000 ---p 00002000 08:05 523515<br>
> /lib/<a href="http://libkeyutils-1.2.so" target="_blank">libkeyutils-1.2.so</a><br>
> 7f32e9ba6000-7f32e9ba7000 r--p 00001000 08:05 523515<br>
> /lib/<a href="http://libkeyutils-1.2.so" target="_blank">libkeyutils-1.2.so</a><br>
> 7f32e9ba7000-7f32e9ba8000 rw-p 00002000 08:05 523515<br>
> /lib/<a href="http://libkeyutils-1.2.so" target="_blank">libkeyutils-1.2.so</a><br>
> 7f32e9ba8000-7f32e9baf000 r-xp 00000000 08:05 134268<br>
> /usr/lib/libkrb5support.so.0.1<br>
> 7f32e9baf000-7f32e9dae000 ---p 00007000 08:05 134268<br>
> /usr/lib/libkrb5support.so.0.1<br>
> 7f32e9dae000-7f32e9daf000 r--p 00006000 08:05 134268<br>
> /usr/lib/libkrb5support.so.0.1<br>
> 7f32e9daf000-7f32e9db0000 rw-p 00007000 08:05 134268<br>
> /usr/lib/libkrb5support.so.0.1<br>
> 7f32e9db0000-7f32e9dd4000 r-xp 00000000 08:05 132675<br>
> /usr/lib/libk5crypto.so.3.1<br>
> 7f32e9dd4000-7f32e9fd4000 ---p 00024000 08:05 132675<br>
> /usr/lib/libk5crypto.so.3.1<br>
> 7f32e9fd4000-7f32e9fd5000 r--p 00024000 08:05 132675<br>
> /usr/lib/libk5crypto.so.3.1<br>
> 7f32e9fd5000-7f32e9fd6000 rw-p 00025000 08:05 132675<br>
> /usr/lib/libk5crypto.so.3.1<br>
> 7f32e9fd6000-7f32e9fed000 r-xp 00000000 08:05 527976<br>
> /lib/<a href="http://libnsl-2.11.1.so" target="_blank">libnsl-2.11.1.so</a><br>
> 7f32e9fed000-7f32ea1ec000 ---p 00017000 08:05 527976<br>
> /lib/<a href="http://libnsl-2.11.1.so" target="_blank">libnsl-2.11.1.so</a><br>
> 7f32ea1ec000-7f32ea1ed000 r--p 00016000 08:05 527976<br>
> /lib/<a href="http://libnsl-2.11.1.so" target="_blank">libnsl-2.11.1.so</a><br>
> 7f32ea1ed000-7f32ea1ee000 rw-p 00017000 08:05 527976<br>
> /lib/<a href="http://libnsl-2.11.1.so" target="_blank">libnsl-2.11.1.so</a><br>
> 7f32ea1ee000-7f32ea1f0000 rw-p 00000000 00:00 0<br>
> 7f32ea1f0000-7f32ea265000 r-xp 00000000 08:05 523504<br>
> /lib/libgcrypt.so.11.5.2<br>
> 7f32ea265000-7f32ea464000 ---p 00075000 08:05 523504<br>
> /lib/libgcrypt.so.11.5.2<br>
> 7f32ea464000-7f32ea465000 r--p 00074000 08:05 523504<br>
> /lib/libgcrypt.so.11.5.2<br>
> 7f32ea465000-7f32ea468000 rw-p 00075000 08:05 523504<br>
> /lib/libgcrypt.so.11.5.2<br>
> 7f32ea468000-7f32ea504000 r-xp 00000000 08:05 134182<br>
> /usr/lib/libgnutls.so.26.14.12<br>
> 7f32ea504000-7f32ea703000 ---p 0009c000 08:05 134182<br>
> /usr/lib/libgnutls.so.26.14.12<br>
> 7f32ea703000-7f32ea709000 r--p 0009b000 08:05 134182<br>
> /usr/lib/libgnutls.so.26.14.12<br>
> 7f32ea709000-7f32ea70a000 rw-p 000a1000 08:05 134182<br>
> /usr/lib/libgnutls.so.26.14.12<br>
> 7f32ea70a000-7f32ea717000 r-xp 00000000 08:05 132150<br>
> /usr/lib/liblber-2.4.so.2.5.4<br>
><br>
><br>
> On 03/29/2011 03:00 AM, Markus Neteler wrote:<br>
>><br>
>> On Tue, Mar 29, 2011 at 8:27 AM, Markus Metz<br>
>> <<a href="mailto:markus.metz.giswork@googlemail.com" target="_blank">markus.metz.giswork@googlemail.com</a>> wrote:<br>
>> ...<br>
>>><br>
>>> If you ran make in the v.buffer directory and afterwards configure,<br>
>>> make and make install in /usr/local/src/grass6_devel, you would end up<br>
>>> with v.buffer2.<br>
>>><br>
>>> 1. run configure, make, but not make install in<br>
>>> /usr/local/src/grass6_devel<br>
>>><br>
>>> 2. run make in the v.buffer directory, watch out for errors to make<br>
>>> sure it compiles all right<br>
>>><br>
>>> 3. run make install in /usr/local/src/grass6_devel, but not again<br>
>>> configure and/or make<br>
>>><br>
>>> 4. that should give you the original v.buffer<br>
>><br>
>> An alternative: simply modify<br>
>> vector/Makefile<br>
>> to point to v.buffer and not v.buffer2...<br>
>><br>
>> Markus<br>
>><br>
><br>
><br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br>
<br>
End of grass-user Digest, Vol 60, Issue 5<br>
*****************************************<br>
</blockquote></div><br>