aspect map with azimuth values

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

aspect map with azimuth values

orkun
Hello

how can I convert aspect map's values to azimuth values?
or is there any way to create aspect map with azimuth values?

regards

Ahmet Temiz


--
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency


_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: aspect map with azimuth values

Moritz Lennert
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
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: aspect map with azimuth values

Glynn Clements

Moritz Lennert wrote:

> > 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))"

Or:

        r.mapcalc "azimuth_aspect = (450 - aspect) % 360"

--
Glynn Clements <[hidden email]>
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: aspect map with azimuth values

Moritz Lennert
On 2015-07-09 00:51, Glynn Clements wrote:

> Moritz Lennert wrote:
>
>> > 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))"
>
> Or:
>
> r.mapcalc "azimuth_aspect = (450 - aspect) % 360"


Even better, thanks !

Added as a FAQ [1] and to the r.slope.aspect manual (r65553).

Moritz

[1] http://grasswiki.osgeo.org/wiki/Transform_CCW_aspect_to_azimuth
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: aspect map with azimuth values

orkun

thank you all

On Thursday, July 9, 2015, Moritz Lennert <[hidden email]> wrote:
On 2015-07-09 00:51, Glynn Clements wrote:
Moritz Lennert wrote:

> 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))"

Or:

        r.mapcalc "azimuth_aspect = (450 - aspect) % 360"


Even better, thanks !

Added as a FAQ [1] and to the r.slope.aspect manual (r65553).

Moritz

[1] http://grasswiki.osgeo.org/wiki/Transform_CCW_aspect_to_azimuth
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user


--
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency


_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user