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 πŸŽ€