Mon, Apr 7 2003
10:16:34
|
|
Request created by guest
|
|
Subject: grass_r_interface.html corrections
Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.0+
I found the following problems in grass_r_interface.html ... have fun
Hamish
--- grass_r_interface.html.OLD Mon Apr 7 18:40:13 2003
+++ grass_r_interface.html Mon Apr 7 20:05:23 2003
@@ -209,7 +209,8 @@
map!
<p>After loading a map, first we can test if any NA raster cells are present
-in the map (example: slope map):
+in the map (example: slope map <a href="#genSlope">from below</a>):<BR>
+
<div class="code"><pre>
slope <- rast.get(G, rlist="slope")
summary(slope$slope)
@@ -242,15 +243,15 @@
"landcov" map from GRASS:
<div class="code"><pre>
landcov <- rast.get(G, rlist="landcov")
-landcov.nas<-which(is.na(landcov$landcov))
-mylandcov<-landcov.nas[!is.na(landcov$landcov)]
+landcov.nas <- which(is.na(landcov$landcov))
+mylandcov <- landcov$landcov[!is.na(landcov$landcov)]
summary(myslope)
-summary(mylanduse)
+summary(mylandcov)
</div></pre>
-Now further statistical analysis could be done.
-<p>Storing back the NAs is a three step procedure:<br>
-1. Create new empty numeric vector:
+Now further statistical analysis can be done.
+<p>Restoring the NAs is a three step procedure:<br>
+1. Create a new empty numeric vector:
<div class="code"><pre>
new.myslope <- numeric(length(slope$slope))
</div></pre>
@@ -272,7 +273,7 @@
plot(G, slope$slope)
</div></pre>
-A mathematical is is a simple subtraction:
+A mathematical check is a simple subtraction:
<div class="code"><pre>
summary(slope$slope - new.myslope)
</div></pre>
@@ -280,13 +281,12 @@
The result should be "0" for Min, Median and Max.
<p>Dealing with legends
-<p>Drawing a legend needs some work: Generate levels,
-analyse topo range for useful breaks:
+<p>Drawing a legend requires some work:<BR>
+Generate levels, analyse topo range for useful breaks:
<div class="code"><pre>
library(MASS)
truehist(leics$topo, nbins=100)
-legendlevels <- as.ordered(cut(leics$topo, breaks=c(50,100,150,
-200, 250)))
+legendlevels <- as.ordered(cut(leics$topo, breaks=c(50,100,150,200, 250)))
plot(G, leics$topo, col=terrain.colors(20))
legend(x=c(452000,456000), y=c(316000,320000), pch=c(1:5),
legend=levels(as.ordered(legendlevels)))
@@ -298,8 +298,8 @@
gc()
</div></pre>
<p>----------------------------<br>
-Another example with "leics" (the system() function
-allows to call external commands):
+Another example with "leics" (the <tt>system()</tt> function
+allows calls to external commands):
<div class="code"><pre>
system("g.list rast")
</div></pre>
@@ -309,6 +309,7 @@
print(list.GRASS(type="rast"))
</div></pre>
+<a name="genSlope">
Calculate slope/aspect directly in GRASS:
<div class="code"><pre>
system("r.slope.aspect el=topo as=aspect sl=slope")
|
|
Mon, Apr 7 2003
10:40:37
|
|
Mail sent by bernhard@intevation.de
|
|
Return-Path |
<bernhard@intevation.de>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Mon, 7 Apr 2003 10:40:06 +0200
|
From |
Bernhard Reiter <bernhard@intevation.de>
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
[bug #1784] (grass) grass_r_interface.html corrections
|
Message-ID |
<20030407084006.GI7567@intevation.de>
|
Mail-Followup-To |
Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
|
References |
<20030407081634.7AFAD13B60@lists.intevation.de>
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Disposition |
inline
|
In-Reply-To |
<20030407081634.7AFAD13B60@lists.intevation.de>
|
User-Agent |
Mutt/1.3.28i
|
X-Spam-Status |
No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.44
|
X-Spam-Level |
|
Hamish,
you do have CVS write access, don't you?
If it is a clear bug you can fix it in the CVS directly.
Bernhard
On Mon, Apr 07, 2003 at 10:16:34AM +0200, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=1784
> -------------------------------------------------------------------------
> I found the following problems in grass_r_interface.html ... have fun
> Hamish
>
>
> --- grass_r_interface.html.OLD Mon Apr 7 18:40:13 2003
> +++ grass_r_interface.html Mon Apr 7 20:05:23 2003
> @@ -209,7 +209,8 @@
> map!
>
> <p>After loading a map, first we can test if any NA raster cells are present
> -in the map (example: slope map):
> +in the map (example: slope map <a href="#genSlope">from below</a>):<BR>
> +
|
|
Mon, Apr 7 2003
11:58:22
|
|
Mail sent by guest
|
|
> If it is a clear bug you can fix it in the CVS directly.
Where? I couldn't find it.
web/statsgrass/ only has index.html and grass_r_insthints.html as far as I can
tell.
shrug,
Hamish
|
|
Thu, Apr 10 2003
10:57:45
|
|
Mail sent by neteler@itc.it
|
|
Return-Path |
<neteler@itc.it>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Thu, 10 Apr 2003 10:57:23 +0200
|
From |
Markus Neteler <neteler@itc.it>
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
hamish_nospam@yahoo.com
|
Subject |
Re: [GRASS5] [bug #1784] (grass) grass_r_interface.html corrections
|
Message-ID |
<20030410105723.I29748@itc.it>
|
References |
<20030407081634.7AFAD13B60@lists.intevation.de>
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Disposition |
inline
|
User-Agent |
Mutt/1.2.5.1i
|
In-Reply-To |
<20030407081634.7AFAD13B60@lists.intevation.de>; from grass-bugs@intevation.de on Mon, Apr 07, 2003 at 10:16:34AM +0200
|
X-Spam-Status |
No, hits=-5.1 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, SIGNATURE_SHORT_SPARSE,SPAM_PHRASE_00_01,USER_AGENT, USER_AGENT_MUTT version=2.44
|
X-Spam-Level |
|
Hamish,
may I ask you to send the patch directly to me?
Hunk #1 succeeded at 209 with fuzz 2.
Hunk #2 FAILED at 243.
...
The RT has damaged the file.
Thanks,
Markus
On Mon, Apr 07, 2003 at 10:16:34AM +0200, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=1784
> -------------------------------------------------------------------------
>
> Subject: grass_r_interface.html corrections
>
> Platform: GNU/Linux/i386
> grass obtained from: Mirror of Trento site
> grass binary for platform: Compiled from Sources
> GRASS Version: 5.0.0+
>
> I found the following problems in grass_r_interface.html ... have fun
>
>
> Hamish
>
>
> --- grass_r_interface.html.OLD Mon Apr 7 18:40:13 2003
> +++ grass_r_interface.html Mon Apr 7 20:05:23 2003
> @@ -209,7 +209,8 @@
> map!
>
> <p>After loading a map, first we can test if any NA raster cells are present
> -in the map (example: slope map):
> +in the map (example: slope map <a href="#genSlope">from below</a>):<BR>
> +
> <div class="code"><pre>
> slope <- rast.get(G, rlist="slope")
> summary(slope$slope)
> @@ -242,15 +243,15 @@
> "landcov" map from GRASS:
> <div class="code"><pre>
> landcov <- rast.get(G, rlist="landcov")
> -landcov.nas<-which(is.na(landcov$landcov))
> -mylandcov<-landcov.nas[!is.na(landcov$landcov)]
> +landcov.nas <- which(is.na(landcov$landcov))
> +mylandcov <- landcov$landcov[!is.na(landcov$landcov)]
> summary(myslope)
> -summary(mylanduse)
> +summary(mylandcov)
> </div></pre>
>
> -Now further statistical analysis could be done.
> -<p>Storing back the NAs is a three step procedure:<br>
> -1. Create new empty numeric vector:
> +Now further statistical analysis can be done.
> +<p>Restoring the NAs is a three step procedure:<br>
> +1. Create a new empty numeric vector:
> <div class="code"><pre>
> new.myslope <- numeric(length(slope$slope))
> </div></pre>
> @@ -272,7 +273,7 @@
> plot(G, slope$slope)
> </div></pre>
>
> -A mathematical is is a simple subtraction:
> +A mathematical check is a simple subtraction:
> <div class="code"><pre>
> summary(slope$slope - new.myslope)
> </div></pre>
> @@ -280,13 +281,12 @@
> The result should be "0" for Min, Median and Max.
>
> <p>Dealing with legends
> -<p>Drawing a legend needs some work: Generate levels,
> -analyse topo range for useful breaks:
> +<p>Drawing a legend requires some work:<BR>
> +Generate levels, analyse topo range for useful breaks:
> <div class="code"><pre>
> library(MASS)
> truehist(leics$topo, nbins=100)
> -legendlevels <- as.ordered(cut(leics$topo, breaks=c(50,100,150,
> -200, 250)))
> +legendlevels <- as.ordered(cut(leics$topo, breaks=c(50,100,150,200, 250)))
> plot(G, leics$topo, col=terrain.colors(20))
> legend(x=c(452000,456000), y=c(316000,320000), pch=c(1:5),
> legend=levels(as.ordered(legendlevels)))
> @@ -298,8 +298,8 @@
> gc()
> </div></pre>
> <p>----------------------------<br>
> -Another example with "leics" (the system() function
> -allows to call external commands):
> +Another example with "leics" (the <tt>system()</tt> function
> +allows calls to external commands):
> <div class="code"><pre>
> system("g.list rast")
> </div></pre>
> @@ -309,6 +309,7 @@
> print(list.GRASS(type="rast"))
> </div></pre>
>
> +<a name="genSlope">
> Calculate slope/aspect directly in GRASS:
> <div class="code"><pre>
> system("r.slope.aspect el=topo as=aspect sl=slope")
>
>
> -------------------------------------------- Managed by Request Tracker
>
> _______________________________________________
> grass5 mailing list
> grass5@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
--
Markus Neteler
ITC-irst, Istituto per la Ricerca Scientifica e Tecnologica
Project on Predictive Models for the Environment
Via Sommarive, 18 - 38050 Povo (Trento), Italy
tel +39 0461 314 520 (fax -591) http://mpa.itc.it
|
|
Sat, Apr 12 2003
09:36:12
|
|
Status changed to resolved by hbowman
|
|