Package wsatools :: Module pywcs
[hide private]

Module pywcs

C++ to Python binder for the WCS library.

Functions [hide private]
tuple(float, float)
convPixelToSky(...)
Convert from pixel (X,Y) coordinates in the detector plane to sky (RA, Dec) coordinates in the celestial sphere.
tuple(float, float)
convSkyToPixel(...)
Convert from sky (RA, Dec) coordinates in the celestial sphere to pixel (X,Y) coordinates in the detector plane.
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

convPixelToSky(...)

 

Convert from pixel (X,Y) coordinates in the detector plane to sky (RA, Dec) coordinates in the celestial sphere.

Parameters:
  • x (float) - Pixel x coordinate.
  • y (float) - Pixel y coordinate.
  • projection (str) - Projection, either ZPN or TAN.
  • wcs (tuple(float*13)) - WCS coefficients (crpix, crval, cd, pv).
Returns: tuple(float, float)
Sky (RA, Dec) coordinates in radians.

convSkyToPixel(...)

 

Convert from sky (RA, Dec) coordinates in the celestial sphere to pixel (X,Y) coordinates in the detector plane.

Parameters:
  • ra (float) - RA coordinate in radians.
  • dec (float) - Dec coordinate in radians.
  • projection (str) - Projection, either ZPN or TAN.
  • wcs (tuple(float*13)) - WCS coefficients (crpix, crval, cd, pv).
Returns: tuple(float, float)
Pixel (x, y) co-ordinates.