<br>thank you all<div><br>On Thursday, July 9, 2015, Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2015-07-09 00:51, Glynn Clements wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Moritz Lennert wrote:<br><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> how can I convert aspect map's values to azimuth values?<br>
> or is there any way to create aspect map with azimuth values?<br>
<br>
I think this should work (but you should double check):<br>
<br>
if aspect <= 90, then azimuth = 90 - aspect<br>
else: azimuth = 450 - aspect<br>
<br>
i.e.<br>
<br>
r.mapcalc "azimuth_aspect = if(aspect <= 90, (90 - aspect), (450 -<br>
aspect))"<br>
</blockquote>
<br>
Or:<br>
<br>
r.mapcalc "azimuth_aspect = (450 - aspect) % 360"<br>
</blockquote>
<br>
<br>
Even better, thanks !<br>
<br>
Added as a FAQ [1] and to the r.slope.aspect manual (r65553).<br>
<br>
Moritz<br>
<br>
[1] <a href="http://grasswiki.osgeo.org/wiki/Transform_CCW_aspect_to_azimuth" target="_blank">http://grasswiki.osgeo.org/wiki/Transform_CCW_aspect_to_azimuth</a><br>
_______________________________________________<br>
grass-user mailing list<br>
<a>grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div><br><br>-- <br><div dir="ltr"><div><div dir="ltr"><div>Ahmet Temiz<br>Jeoloji Müh.<br>Afet ve Acil Durum Yönetimi Başkanlığı<br>Bilgi İşlem Dairesi Başkanlığı-CBS Grubu<br><br><br>________________________<br><br>Ahmet Temiz<br>Geological Eng.<br>Information Systems - GIS Group<br>Disaster and Emergency Management<br>of Presidency</div></div></div></div><br>