Documentation for jbiu/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

astro/

sky2xy.pro


top source sky2xy

Astro

result = sky2xy(fitsfile, ra, dec, string=string, wcstoolsdir=wcstoolsdir)

Converts between sky coordinates and pixel coordinates of a FITS image using the WCSTOOLS sky2xy routine. Useful for images with WCS keywords that are not implemented in the astronomy library (such as the TNX convention for distortions).

Return value

The function returns a structure with fields .X and .Y which are arrays containing the x and y pixel values. NOTES: Requires WCSTOOLS to be installed, along with the UWashington TMPFILE and DIR_EXIST routines.

Parameters

fitsfile in

Name of FITS file that contains the WCS to use.

ra in

Vector of right ascensions. Assumed to be in decimal degrees unless /STRING is set.

dec in

Vector of declinations. Assumed to be in decimal degrees unless /STRING is set.

Keywords

string in

If set, Ra and Dec are strings in HH:MM:SS, DD:MM:SS format.

wcstoolsdir in

Path to the location of the binary sky2xy files in wcstools.

Author information

History:

Written by: Jeremy Bailin 20 August 2010 Initial release 10 Feb 2011 Made WCSTOOLSDIR a keyword parameter.

File attributes

Modification date: Thu Feb 10 11:08:15 2011
Lines: 69