Actually return an azimuth from generate_azimuth
Correct cdt vector direction