DO YOU KNOW THAT IS POSSIBLE TO CALC AZIMNUTH IN ARCMAP EASLY

135
1
05-19-2020 11:44 AM
MosheRoi
New Contributor

ADD GEOMETRY ATRIBUTES "line bearing"

and than if you want azimuth in arthitimatic you can do this [(450- !BEARING! ) % 360] in python calc field

Tags (1)
0 Kudos
1 Reply
DanPatterson
MVP Esteemed Contributor

Yes, since % represents the modulus which can be expressly stated in the math and numpy module.

This has been used many times in scripts, and it is sometimes safer to use the expressly stated version rather than relying on short form operators like %

angle = 135

math.fmod((450 - angle), 360.)
315.0

np.mod((450.0 - angle), 360.)
315.0

... sort of retired...
0 Kudos