<div dir="ltr">OK!<br><br>I can get the help with:<br><br><div style="margin-left: 40px;">sh C:/GRASS/scripts/r.colors.stddev --help<br></div><br>And run the script with:<br><br><div style="margin-left: 40px;">sh C:/GRASS/scripts/r.colors.stddev input=HRC_20080528_151_B_124@PERMANENT<br>
<br></div>Running the script, I get a blank cmd, no percentages or anything, with the name "C:\GRASS\msys\sh.exe"<br><br>But works!!!!<br><br>Thanks for the help!<br><br>But, the script makes a colored output, and I want a grayscale...<br>
<br>So, reading the code, I found this:<br><br><div style="margin-left: 40px;">if [ $GIS_FLAG_Z -eq 0 ] ; then<br><br> MEAN_MINUS_2STDEV=`echo "$mean $stddev" | awk '{print $1 - 2*$2}'`<br> MEAN_PLUS_2STDEV=`echo "$mean $stddev" | awk '{print $1 + 2*$2}'`<br>
<br> if [ $GIS_FLAG_B -eq 0 ] ; then<br> # smooth free floating blue/white/red<br> r.colors "$GIS_OPT_INPUT" color=rules << EOF<br> 0% blue<br> $MEAN_MINUS_2STDEV blue<br> $mean white<br>
$MEAN_PLUS_2STDEV red<br> 100% red<br></div><br>The, I change to:<br><br><div style="margin-left: 40px;">if [ $GIS_FLAG_Z -eq 0 ] ; then<br><br> MEAN_MINUS_2STDEV=`echo "$mean $stddev" | awk '{print $1 - 2*$2}'`<br>
MEAN_PLUS_2STDEV=`echo "$mean $stddev" | awk '{print $1 + 2*$2}'`<br><br> if [ $GIS_FLAG_B -eq 0 ] ; then<br> # smooth free floating blue/white/red<br> r.colors "$GIS_OPT_INPUT" color=rules << EOF<br>
0% black<br> $MEAN_MINUS_2STDEV black<br> $mean grey<br> $MEAN_PLUS_2STDEV white<br> 100% white<br></div><br>But the output turns the colors to a light grey filter or something... how can I maintain the black pure black?<br>
<div><br><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 4:22 AM, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On 12/08/08 17:26, Raphael Saldanha wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok, I put the file (r.colors.sttdev) on C:\GRASS\scripts.<br>
<br>
On the output windowm, if I enter with r.colors.sttdev and Run, seems GRASS recognize the command. But how in the syntax to inform the input and other parametres?<br>
</blockquote>
<br></div>
Have you tried clicking on 'Run (GUI)' ?<br><font color="#888888">
<br>
Moritz<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Atenciosamente,<br><br>Raphael Saldanha<br><a href="mailto:saldanha.plangeo@gmail.com" target="_blank">saldanha.plangeo@gmail.com</a><br>Lucille Ball - "The secret of staying young is to live honestly, eat slowly, and lie about your age."
</div></div>