CartToSphere

pylayers.antprop.antssh.CartToSphere(theta, phi, ex, ey, ez, bfreq=True, pattern=True)[source]

Convert from Cartesian to Spherical

theta phi ex ey ez bfreq : boolean pattern : boolean

Convert from cartesian to spherical coordinates bfreq : boolean parameter to indicate if the conversion is done for all frequencies of only one.