[GRASS-user] GEM and Add-ons

Raphael Saldanha saldanha.plangeo at gmail.com
Wed Aug 13 08:11:20 EDT 2008


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 input=HRC_20080528_151_B_124 at PERMANENT

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 <
mlennert at club.worldonline.be> 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
saldanha.plangeo at gmail.com
Lucille Ball  - "The secret of staying young is to live honestly, eat
slowly, and lie about your age."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080813/a542ea51/attachment-0001.html


More information about the grass-user mailing list