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


ssclib (ssclib-4.30) [xmmsas_20160201_1833-15.0.0]

raDecToPixels Routines for performing coordinate raDecToTan Home Index

Meta Index / Home Page / Routines for performing coordinate

pixelsToRaDec

  interface pixelsToRaDec
    subroutine pixelsToRaDecScalar(xPixel, yPixel, wcs, ra, dec)
      real(single), intent(in)  :: xPixel,&
                                   yPixel
      type(WcsT),   intent(in)  :: wcs	! defined in ssclib/wcs_aux
      real(double), intent(out) :: ra,&
                                   dec
    end subroutine pixelsToRaDecScalar

    subroutine pixelsToRaDecVector(xPixel, yPixel, wcs, ra, dec)
      real(single), intent(in)  :: xPixel(:),&
                                   yPixel(size(xPixel))
      type(WcsT),   intent(in)  :: wcs	! defined in ssclib/wcs_aux
      real(double), intent(out) :: ra(size(xPixel)),&
                                   dec(size(xPixel))
    end subroutine pixelsToRaDecVector

    subroutine pixelsToRaDecArray(xPixel, yPixel, wcs, ra, dec)
      real(single), intent(in)  :: xPixel(:,:),&
                                   yPixel(size(xPixel,1),size(xPixel,2))
      type(WcsT),   intent(in)  :: wcs	! defined in ssclib/wcs_aux
      real(double), intent(out) :: ra(size(xPixel,1),size(xPixel,2)),&
                                   dec(size(xPixel,1),size(xPixel,2))
    end subroutine pixelsToRaDecArray(xPixel, yPixel, wcs, ra, dec)
  end interface

The inverse subroutine of raDecToPixels(). This retuns the celestial coordinates (in J2000) in degrees for the given pair of the sky pixel coordinates.



XMM-Newton SOC/SSC -- 2016-02-01