math_fns
cartesian_to_spherical ¶
cartesian_to_spherical(x, y, z)
clean_complex_to_db ¶
clean_complex_to_db(array)
Calculates dB from an array of complex values.
Does some preprocessing of the input data to ensure no warnings are generated. Specifically, it replaces 0 magnitudes with a very small constant (1e-20).
Parameters:
Returns:
spherical_to_cartesian ¶
spherical_to_cartesian(r, theta, phi)