Skip to content

math_fns

cartesian_to_spherical

cartesian_to_spherical(x, y, z)

Convert cartesian coordinates to spherical coordinates.

Parameters:

Returns:

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:

  • array (np.ndarray) –

    Array of complex values

Returns:

spherical_to_cartesian

spherical_to_cartesian(r, theta, phi)

Convert spherical coordinates to cartesian coordinates.

Parameters:

Returns: