xy2sky(1)
πΈ xy2sky β the "where tf is this pixel actually" tool πΈ
okay bestie, you're looking at the xy2sky(1) page from the General Commands Manual π
and honestly? she's an icon. let's get into it.
β¨ Name β¨
xy2sky β compute RA Dec from X Y using WCS in FITS and IRAF image files π¦
β¨ Synopsis β¨
xy2sky [-vbjg] [-n ndec] file.fts x1 y1 ... xn yn
or
xy2sky [-bdjgv] [-n ndec] file.fts @listfile
β¨ Description β¨
so. xy2sky β pronounced X-Y-to-sky, yes really, that's the vibe β is a little utility that gets you the world coordinates of a bunch of image coordinates in a FITS or IRAF image. π
the World Coordinate System (WCS) info sitting in the image header describes, in a standard way, how sky coordinates and image pixels relate to each other. this program takes that info and uses it to transform image coordinate (X,Y) pairs into right ascension and declination sky coordinate pairs. it's giving translator. it's giving glow-up from pixels to sky. π«
the current version of the program prints the coordinates at the same equinox as is given in the image header, but future versions will allow transformations to B1950/FK4, J2000/FK5, or galactic coordinates. and input and output files in the Starbase format will eventually be allowed too β we're manifesting it. π―οΈβ¨
β¨ Options β¨
-aβ append the input line after the output position π-bβ B1950 (FK4) output-dβ RA and Dec output in degrees π-eβ output in ecliptic longitude and latitude, in degrees-f <number>β set the third dimension for 3-D projections such as CSC π§-gβ galactic longitude and latitude output π-iβ first column is star id; 2nd and 3rd are the x,y position π·οΈ-jβ J2000 (FK5) output-m <number>β set the mode for output of LINEAR WCS coordinates:0: x y linear,1: x units y units,2: x y linear units units ποΈ-n <number>β number of decimal places in the output RA seconds π’-q <year>β output equinox if not 2000 (-j) or 1950 (-b) π-tβ output as a tab-separated table π-vβ more descriptive output π¬-zβ use AIPS classic projections instead of WCSLIB π
β¨ See Also β¨
sky2xy(1) β the reverse queen, go say hi π«Ά
β¨ Author β¨
Jessica Mink, SAO (jmink@cfa.harvard.edu) π
lowkey a whole legend. no cap.
and that's the page!! this was WCSTools, dated 6 July 2001 β yeah she's vintage but she still ate, fr fr. ππ bye bestie, go convert some pixels π
π¦ where this page comes from
- debian bookworm: wcstools 3.9.7-1 Β· GPL-2.0-only
- debian trixie: wcstools 3.9.7-1.1+b1 Β· GPL-2.0-only
- epel 9: wcstools 3.9.7-2.el9 Β· GPLv2+
- fedora 43: wcstools 3.9.7-12.fc43 Β· GPL-2.0-or-later
- fedora 44: wcstools 3.9.7-13.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: wcstools 3.9.6-1 Β· GPL-2.0-only
- ubuntu noble: wcstools 3.9.7-1.1build1 Β· GPL-2.0-only
- ubuntu questing: wcstools 3.9.7-2
- ubuntu resolute: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- ubuntu stonking: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms