[GRASS-user] aspect map with azimuth values

Moritz Lennert mlennert at club.worldonline.be
Wed Jul 8 10:48:45 PDT 2015


On 2015-07-08 08:33, Ahmet Temiz wrote:
> Hello
>
> how can I convert aspect map's values to azimuth values?
> or is there any way to create aspect map with azimuth values?

I think this should work (but you should double check):

if aspect <= 90, then azimuth = 90 - aspect
else: azimuth = 450 - aspect

i.e.

r.mapcalc "azimuth_aspect = if(aspect <= 90, (90 - aspect), (450 - 
aspect))"

Moritz


More information about the grass-user mailing list