Fixed major error in angle function (parallel rebin)