Fri, Jan 27 2006
18:45:15
|
|
Request created by guest
|
|
Subject: r.random not so random
Platform: WindowsNT/2000/XP
grass obtained from: Other (CDROM etc)
grass binary for platform: Downloaded precompiled Binaries
GRASS Version: 6.0.0
I recently downloaded and installed the cygwin version of GRASS GIS. My primary
objective is to generate hillshades. To do so I have been importing shapefiles
with contour data and running v.surf.rst. The results have been OK but very
segmented. Following the suggestion by Neteler and Mitasova in "Open Source GIS:
A GRASS Approach", I attempted to generate random points to merge with the contour
points and re-run v.surf.rst. Unfortunately, r.random seems to be generating
points clustered at the top of the region. I have been unable to find a way around
this in GRASS and have noticed only one or two mentions of the problem in the
mailing list archives, but no suggested work-around.
Request: The randomness of r.random requires improvement/correction.
Cheers,
Paul A. Light |
|
Fri, Jan 27 2006
22:26:15
|
|
Mail sent by glynn@gclements.plus.com
|
|
Return-Path |
<glynn@gclements.plus.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn@gclements.plus.com>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<17370.36848.907337.694041@cerise.gclements.plus.com>
|
Date |
Fri, 27 Jan 2006 21:26:08 +0000
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #4045] (grass) r.random not so random
|
In-Reply-To |
<20060127174516.0EA02100160@lists.intevation.de>
|
References |
<20060127174516.0EA02100160@lists.intevation.de>
|
X-Mailer |
VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4045
> -------------------------------------------------------------------------
>
> Subject: r.random not so random
>
> Platform: WindowsNT/2000/XP
> grass obtained from: Other (CDROM etc)
> grass binary for platform: Downloaded precompiled Binaries
> GRASS Version: 6.0.0
That bug has since been fixed.
I'm not sure whether the fix made it into 6.0.1, as there doesn't
appear to be a CVS tag for the 6.0.1 release.
--
Glynn Clements <glynn@gclements.plus.com>
|
|
Fri, Jan 27 2006
23:53:05
|
|
Mail sent by "palight@hfx.eastlink.ca"
|
|
Return-Path |
<glynn@gclements.plus.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn@gclements.plus.com>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<17370.36848.907337.694041@cerise.gclements.plus.com>
|
Date |
Fri, 27 Jan 2006 21:26:08 +0000
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #4045] (grass) r.random not so random
|
In-Reply-To |
<20060127174516.0EA02100160@lists.intevation.de>
|
References |
<20060127174516.0EA02100160@lists.intevation.de>
|
X-Mailer |
VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
-------------------------------------------- Managed by Request Tracker --- Headers Follow --- >From palight@hfx.eastlink.ca Fri Jan 27 23:53:04 2006
|
Return-Path |
<palight@hfx.eastlink.ca>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Fri, 27 Jan 2006 18:52:48 -0400
|
From |
PA Light <palight@hfx.eastlink.ca>
|
Subject |
RE: [bug #4045] (grass) r.random not so random
|
To |
'Glynn Clements via RT' <grass-bugs@intevation.de>
|
Reply-To |
"palight@hfx.eastlink.ca" <palight@hfx.eastlink.ca>
|
Message-id |
<01C62372.DE8BDDF0.palight@hfx.eastlink.ca>
|
Organization |
Home
|
MIME-version |
1.0
|
Content-type |
TEXT/PLAIN
|
Content-transfer-encoding |
7BIT
|
X-BrightmailFiltered |
true
|
X-Brightmail-Tracker |
AAAAAQAAA+k=
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
Thank you.
-----Original Message-----
From: Glynn Clements via RT [SMTP:grass-bugs@intevation.de]
Sent: 27 January 2006 17:26
To: palight@hfx.eastlink.ca
Subject: [bug #4045] (grass) r.random not so random
Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4045
> -------------------------------------------------------------------------
>
> Subject: r.random not so random
>
> Platform: WindowsNT/2000/XP
> grass obtained from: Other (CDROM etc)
> grass binary for platform: Downloaded precompiled Binaries
> GRASS Version: 6.0.0
That bug has since been fixed.
I'm not sure whether the fix made it into 6.0.1, as there doesn't
appear to be a CVS tag for the 6.0.1 release.
--
Glynn Clements <glynn@gclements.plus.com>
|
|
Sat, Jan 28 2006
02:30:09
|
|
Mail sent by hamish_nospam@yahoo.com
|
|
Return-Path |
<hamish_nospam@yahoo.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Sat, 28 Jan 2006 14:25:16 +1300
|
From |
Hamish <hamish_nospam@yahoo.com>
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #4045] (grass) r.random not so random
|
Message-Id |
<20060128142516.614c5f7e.hamish_nospam@yahoo.com>
|
In-Reply-To |
<20060127174516.0EA02100160@lists.intevation.de>
|
References |
<20060127174516.0EA02100160@lists.intevation.de>
|
X-Mailer |
Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
|
X-Face |
M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=US-ASCII
|
Content-Transfer-Encoding |
7bit
|
X-Spam-Status |
No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
|
X-Spam-Level |
|
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4045
> ---------------------------------------------------------------------
>
> Subject: r.random not so random
>
> Platform: WindowsNT/2000/XP
> grass obtained from: Other (CDROM etc)
> grass binary for platform: Downloaded precompiled Binaries
> GRASS Version: 6.0.0
>
> I recently downloaded and installed the cygwin version of GRASS GIS.
> My primary objective is to generate hillshades. To do so I have been
> importing shapefiles with contour data and running v.surf.rst. The
> results have been OK but very segmented. Following the suggestion by
> Neteler and Mitasova in "Open Source GIS: A GRASS Approach", I
> attempted to generate random points to merge with the contour points
> and re-run v.surf.rst. Unfortunately, r.random seems to be generating
> points clustered at the top of the region. I have been unable to find
> a way around this in GRASS and have noticed only one or two mentions
> of the problem in the mailing list archives, but no suggested
> work-around.
>
> Request: The randomness of r.random requires improvement/correction.
Can you try GRASS 6.1? I think it is fixed.
here we go:
http://freegis.org/cgi-bin/viewcvs.cgi/grass6/raster/r.random/creat_rand.c
Revision 2.1 / (as text) / (view) - annotate - [select for diffs] , Tue Jul 5
05:50:31 2005 UTC (6 months, 3 weeks ago) by hamish
Branch: MAIN
Changes since 2.0: +1 -1 lines
Diff to previous 2.0
fix lrand48() for Cygwin & Apple. (fix from Glynn) see:
http://grass.itc.it/pipermail/grass5/2005-June/018519.html
http://grass.itc.it/pipermail/grass5/2005-June/018528.html
.. but apparently not backported to 6.0.x.
(can someone please do if it works?, thanks.)
Hamish
|
|
Sat, Jan 28 2006
08:49:20
|
|
Mail sent by neteler@itc.it
|
|
Return-Path |
<neteler@itc.it>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Sat, 28 Jan 2006 08:49:17 +0100
|
From |
Markus Neteler <neteler@itc.it>
|
To |
Hamish <hamish_nospam@yahoo.com>
|
Cc |
Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #4045] (grass) r.random not so random
|
Message-ID |
<20060128074917.GA29875@bartok.itc.it>
|
Mail-Followup-To |
Hamish <hamish_nospam@yahoo.com>, Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
|
References |
<20060127174516.0EA02100160@lists.intevation.de> <20060128142516.614c5f7e.hamish_nospam@yahoo.com>
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Disposition |
inline
|
In-Reply-To |
<20060128142516.614c5f7e.hamish_nospam@yahoo.com>
|
User-Agent |
Mutt/1.4.1i
|
X-PGP-Key |
http://www.gdf-hannover.de/neteler/markus_gpgkey.asc
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
On Sat, Jan 28, 2006 at 02:25:16PM +1300, Hamish wrote:
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=4045
> > ---------------------------------------------------------------------
> >
> > Subject: r.random not so random
> >
> > Platform: WindowsNT/2000/XP
...
> fix lrand48() for Cygwin & Apple. (fix from Glynn) see:
> http://grass.itc.it/pipermail/grass5/2005-June/018519.html
> http://grass.itc.it/pipermail/grass5/2005-June/018528.html
>
>
> .. but apparently not backported to 6.0.x.
> (can someone please do if it works?, thanks.)
I have sync'ed r.random in 6.0-CVS to the 6.1 version.
The fix will appear in 6.0.2.
Markus
|
|
Sat, Jan 28 2006
08:49:33
|
|
Status changed to resolved by mneteler
|
|