Restructure the oscill angle processing to be more vectorized

Instead of doing array processing inside of nested conditionals,
do as much processing as possible on the whole array of oscill
angles. This improved the overall speed on the test analysis
from 150.2 to 114.0.