How do I write a function for this this in Python?
<p>Assume   that   we   have   two   datums   which   use   the   same   sphere   (with   a   radius   of   r)   to   represent   the   shape   and   size   of   the   Earth.   Write   a   function   DatumTransform(phi,   theta,   r,   dx,   dy,   dz)   which   performs   3 ‐ parameter   datum   transformation   between   the   two   datums.   phi   ( ‐ 90   to   90)   and   theta   ( ‐ 180   to   180)   are   the   latitude   and   longitude   of   a   point   on   the   from ‐ datum.   dx ,   dy ,   and   dz   are   the   shift   of   the   center   of   the   to ‐ datum   relative   to   the   center   of   the   from ‐ datum.  </p>
