use rangeHA to make sure -12 < HA <= 12

Authored by mutlaqja on Aug 6 2019, 12:38 PM.