I am looking for a Python code block to calculate azimuth per each polyline feature. So far I have been able to use the following Python code to calculate bearing:
180 + math.atan2(( !Shape.firstpoint.X! - !Shape.lastpoint.X! ), (!Shape.firstpoint.Y! - !Shape.lastpoint.Y! ) ) * (180 / math.pi)
However bearing is not sufficient for me as I am looking to ultimately find line directions which can be detected by caclulating an azimuth.