XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


ssclib (ssclib-3.24) [xmmsas_20050815_1803-6.5.0]

getThetaPhiMaps Routines for performing coordinate cartesianToSky Home Index

Meta Index / Home Page / Routines for performing coordinate

skyToCartesian

  function skyToCartesian(ra, dec) result(vector)
    real(double), intent(in) :: ra, dec 
    real(double)             :: vector(3)
  end function skyToCartesian

Returns a vector of direction cosines of the celestial coordinates $ra$ and $dec$. NOTE $ra$ and $dec$ must be in radians.



XMM-Newton SOC/SSC -- 2005-08-15