testsuite rhemisphere.sh: update r.mapcalc call
git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65691 15284696-431f-4ddb-bdfa-cd5b030d7da7py3
parent
ea1e61112f
commit
5d8d7ebaf4
|
@ -36,13 +36,13 @@ Y="($RADIUS - row())"
|
|||
r="sqrt($X^2 + $Y^2)"
|
||||
|
||||
#Mask out unwanted parts (check for <= ??):
|
||||
r.mapcalc "$TMP=if($r<$RADIUS,$r,null())"
|
||||
r.mapcalc "$TMP = if($r<$RADIUS,$r,null())"
|
||||
|
||||
ALPHA="acos ($TMP/$RADIUS)"
|
||||
HEIGHT="$RADIUS * sin($ALPHA)"
|
||||
|
||||
|
||||
r.mapcalc "hemisphere=$HEIGHT"
|
||||
r.mapcalc "hemisphere = $HEIGHT"
|
||||
cleanup
|
||||
g.message "Generated raster map <hemisphere>"
|
||||
#echo "Now generate aspect + slope on <hemisphere>"
|
||||
|
|
Loading…
Reference in New Issue