in3Utils.geoTrans.cartToSpherical

cartToSpherical(X, Y, Z)[source]

convert from cartesian to spherical coordinates

Parameters
  • X (float) – x coordinate

  • Y (float) – y coordinate

  • Z (float) – z coordinate

Returns

  • r (float) – radius

  • phi (float) – azimuth angle [degrees]

  • theta (float) – for elevation angle defined from Z-axis down [degrees]