>  Docs Center  >  Libraries  >  JBIU  >  XY2SKY

XY2SKY

XY2SKY

Name


    XY2SKY

Purpose


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

Category


    Astro

Calling Sequence


    Result = XY2SKY(FITSFile, X, Y)

Inputs


    FITSFile: Name of FITS file that contains the WCS to use.
    X: Vector of x coordinates.
    Y: Vector of y coordinates.

Keyword Parameters


    STRING: Output strings of HH:MM:SS and DD:MM:SS format.
    WCSTOOLSDIR: Path to the location of the binary xy2sky in wcstools.

Outputs


    The function returns a structure with fields .RA and .DEC which are arrays
    containing the RA and Dec values in decimal degrees (or in strings,
    if /STRING is set).

Notes


    Requires WCSTOOLS to be installed, along with the UWashington TMPFILE
    and DIR_EXIST routines.

Modification History


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



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us