mPix2Coord1
Output the sky location corresponding to a pixel coordinate
Usage
mPix2Coord [-d]
template.hdr
ixpix
jypix
Overview
Takes an image FITS header template and a pixel (x,y) coordinate, and outputs the corresponding sky location. Newer mExamine can do the same and more for real image files.
Options
-
-d -
Print out additional debugging information
Arguments
- template.hdr
-
ASCII header template describing the image (either a FITS image, or a JPEG file created from the FITS file)
- ixpix
-
X coordinate (pixel location) on image
- jypix
-
Y coordinate (pixel location) on image
Result
[struct stat="OK", lon=ra, lat=dec]
where ra, dec are the sky coordinates that correspond to the input pixel.
Messages
OK
|
[struct stat="OK", lon=ra, lat=dec] |
|---|---|
ERROR
|
Bad template: template.hdr |
ERROR
|
Output wcsinit() failed. |
Examples
To find out what the coordinates are at the 100,130 pixel on an image defined by template.hdr:
- $ mPix2Coord template.hdr 100 130
-
[struct stat="OK", lon=0.027777, lat=0.036110]
Releases
5 releases since Debian 9 (Stretch); the text changed 1 time.