<HTML><HEAD>
<META content="text/html; charset=iso-8859-15" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16722"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>Hi Markus</DIV>
<DIV>&nbsp;</DIV>
<DIV>Yes you're right. Solved the output issue. Thanks! </DIV>
<DIV>&nbsp;</DIV>
<DIV>Next problem is then how to access the minimum value in the stats.txt file. Can you guide me in a direction or to script examples (unfortunately I didn't find any in your book)?</DIV>
<DIV>I would like have the minimum value used in a r.mapcalc DOS_MODIS = MODISIMAGE - STATS.TXT(%MIN%)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Basically what I am trying to is a Dark Objection Subtraction of a MODIS timeserie, so if you have ideas for other approaches for this please let me know. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Best regards, </DIV>
<DIV>Rasmus<BR><BR>&gt;&gt;&gt; </DIV>
<TABLE style="MARGIN: 0px 0px 0px 15px; FONT-SIZE: 1em" border=0 bgColor=#f3f3f3>
<TBODY>
<TR>
<TD>
<DIV style="BORDER-LEFT: #050505 1px solid; PADDING-LEFT: 7px">
<TABLE style="FONT: 9pt Segoe UI" bgColor=#f3f3f3>
<TBODY>
<TR vAlign=top>
<TD><STRONG>From: </STRONG></TD>
<TD>Markus Neteler &lt;neteler@osgeo.org&gt;</TD></TR>
<TR vAlign=top>
<TD><STRONG>To:</STRONG></TD>
<TD>rasmus borgstrøm&lt;rb@gras.ku.dk&gt;</TD></TR>
<TR vAlign=top>
<TD><STRONG>CC:</STRONG></TD>
<TD>&lt;grass-windows@lists.osgeo.org&gt;</TD></TR>
<TR vAlign=top>
<TD><STRONG>Date: </STRONG></TD>
<TD>18-03-2011 02:01</TD></TR>
<TR vAlign=top>
<TD><STRONG>Subject: </STRONG></TD>
<TD>Re: [GRASS-windows] Re: Zonal Statistics - min</TD></TR></TBODY></TABLE>On Thu, Mar 17, 2011 at 10:41 PM, rasmus borgstrøm &lt;rb@gras.ku.dk&gt; wrote:<BR>&gt; Hi<BR>&gt;<BR>&gt; I have installed winGRASS 7 and tried to calculate the zonal statistics, but<BR>&gt; I cannot seem to get the results.<BR>&gt; I tried this:<BR>&gt; r.univar -g -e -t map=MOD02QKM zones=fields.10m output=out2&gt;fields_stats.txt<BR>&gt;<BR>&gt; I assume this will write the zonal stat to the .txt file, but I cannot seem<BR>&gt; to access/find the txt file. ?!<BR><BR>You are writing the output to out2 (maybe better call it out2.txt or<BR>even better stats.txt).<BR>It should be in the current directory. The &gt;fields_stats.txt will not gain<BR>anything since output= is used and not set to output=- (stdout).<BR><BR>I guess you are already there.<BR><BR>Markus<BR></DIV></TD></TR></TBODY></TABLE></BODY></HTML>