[GRASSLIST:10342] BUG in r.shaded.relief

Norbert Pfeifer Norbert.Pfeifer at uibk.ac.at
Thu Feb 16 11:45:06 EST 2006


Hi!

I found a bug in r.shaded.relief where the input parameters are checked,
especially the azimuth.

the current version reads:
================
if test $alt -lt 0 -o $alt -gt 90
then
        echo "Sorry, altitude must be greater than 0 and less than 90"
        exit 1
fi

if test $az -lt 0 -o $alt -gt 360
then
        echo "Sorry, azimuth must be between 0 and 360"
        exit 1
fi
================
and it should be according to the text description
================
if test $alt -lt 1 -o $alt -gt 89
then
        echo "Sorry, altitude must be greater than 0 and less than 90"
        exit 1
fi

if test $az -lt 0 -o $az -gt 360
then
        echo "Sorry, azimuth must be between 0 and 360"
        exit 1
fi
================

Can you please check this and put it into CVS?

Bernhard & Norbert




More information about the grass-user mailing list