Package astLib :: Module astWCS
[hide private]
[frames] | no frames]

Module astWCS

source code

module for handling World Coordinate Systems (WCS)

(c) 2007-2009 Matt Hilton

http://astlib.sourceforge.net

This is a higher level interface to some of the routines in PyWCSTools (distributed with astLib). PyWCSTools is a simple SWIG wrapping of WCSTools by Doug Mink (http://tdc-www.harvard.edu/software/wcstools/). It is intended is to make this interface complete enough such that direct use of PyWCSTools is unnecessary.

Classes [hide private]
  WCS
This class provides methods for accessing information from the World Coordinate System (WCS) contained in the header of a FITS image.
Functions [hide private]
dictionary
findWCSOverlap(wcs1, wcs2)
Finds the minimum, maximum WCS coords that overlap between wcs1 and wcs2.
source code
Variables [hide private]
  NUMPY_MODE = True
  lconv = locale.localeconv()
Function Details [hide private]

findWCSOverlap(wcs1, wcs2)

source code 

Finds the minimum, maximum WCS coords that overlap between wcs1 and wcs2. Returns these coordinates, plus the corresponding pixel coordinates for each wcs. Useful for clipping overlapping region between two images.

Returns: dictionary
dictionary with keys 'overlapWCS' (min, max RA, dec of overlap between wcs1, wcs2) 'wcs1Pix', 'wcs2Pix' (pixel coords in each input WCS that correspond to 'overlapWCS' coords)