OK!

I can get the help with:

sh C:/GRASS/scripts/r.colors.stddev --help

And run the script with:

sh C:/GRASS/scripts/r.colors.stddev [EMAIL PROTECTED]

Running the script, I get a blank cmd, no percentages or anything, with the
name "C:\GRASS\msys\sh.exe"

But works!!!!

Thanks for the help!

But, the script makes a colored output, and I want a grayscale...

So, reading the code, I found this:

if [ $GIS_FLAG_Z -eq 0 ] ; then

   MEAN_MINUS_2STDEV=`echo "$mean $stddev" | awk '{print $1 - 2*$2}'`
   MEAN_PLUS_2STDEV=`echo "$mean $stddev" | awk '{print $1 + 2*$2}'`

   if [ $GIS_FLAG_B -eq 0 ] ; then
     # smooth free floating blue/white/red
     r.colors "$GIS_OPT_INPUT" color=rules << EOF
       0% blue
       $MEAN_MINUS_2STDEV blue
       $mean white
       $MEAN_PLUS_2STDEV red
       100% red

The, I change to:

if [ $GIS_FLAG_Z -eq 0 ] ; then

   MEAN_MINUS_2STDEV=`echo "$mean $stddev" | awk '{print $1 - 2*$2}'`
   MEAN_PLUS_2STDEV=`echo "$mean $stddev" | awk '{print $1 + 2*$2}'`

   if [ $GIS_FLAG_B -eq 0 ] ; then
     # smooth free floating blue/white/red
     r.colors "$GIS_OPT_INPUT" color=rules << EOF
       0% black
       $MEAN_MINUS_2STDEV black
       $mean grey
       $MEAN_PLUS_2STDEV white
       100% white

But the output turns the colors to a light grey filter or something... how
can I maintain the black pure black?



On Wed, Aug 13, 2008 at 4:22 AM, Moritz Lennert <
[EMAIL PROTECTED]> wrote:

> On 12/08/08 17:26, Raphael Saldanha wrote:
>
>> Ok, I put the file (r.colors.sttdev) on C:\GRASS\scripts.
>>
>> 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?
>>
>
> Have you tried clicking on 'Run (GUI)' ?
>
> Moritz
>



-- 
Atenciosamente,

Raphael Saldanha
[EMAIL PROTECTED]
Lucille Ball  - "The secret of staying young is to live honestly, eat
slowly, and lie about your age."
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to