(f=1   if   θ<0   and   ϕ'≥-(π/4)   orθ>0   and   ϕ'≤(π/4)f=2   if   θ>0   and   ϕ'>(π/4)f=3   if   θ<0   and   ϕ'<-(π/4))