MPIX2COORD(1)
π¦ NAME π¦
okay bestie, meet mPix2Coord (that's the Montage manual, page MPIX2COORD(1), if you're keeping track) β it outputs the sky location corresponding to a pixel coordinate. yes, it's literally a pixel-to-sky translator and it's iconic for it π
β¨ SYNOPSIS β¨
mPix2Coord [-d] template.hdr ixpix jypix
πΈ DESCRIPTION πΈ
So the way this works: you hand it an image FITS header template and a pixel (x,y) coordinate, and it hands you back the corresponding sky location. that's the whole vibe. sky location out, pixel in, no cap π«Ά
lowkey important tea: newer mExamine can do the same thing and more β but only for real image files. so if you're working with a template, this is your girl.
π OPTIONS π
-dβ print out additional debugging information. extra yapping, but make it useful π₯
π ARGUMENTS π
template.hdrβ ASCII header template describing the image (either a FITS image, or a JPEG file created from the FITS file). it's giving "the blueprint" β¨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. yes bestie, lon=ra and lat=dec β that's the whole point of the exercise π
β MESSAGES β
OKβ[struct stat="OK", lon=ra, lat=dec]ERRORβBad template: template.hdrERRORβOutput wcsinit() failed.
π§ EXAMPLES π§
say you wanna find out what the coordinates are at the 100,130 pixel on an image defined by template.hdr. watch:
$ mPix2Coord template.hdr 100 130
[struct stat="OK", lon=0.027777, lat=0.036110]
ate. no crumbs. ππ
π BUGS π
bestie, listen up, this part is important.
The drizzle algorithm has been implemented but has not been tested in this release. so like... it exists. that's all we can say for sure π
If a header template contains carriage returns (i.e., created/modified on a Windows machine), the cfitsio library will be unable to read it properly, resulting in the error: [struct stat="ERROR", status=207, msg="illegal character in keyword"]. literally the Windows line-ending jumpscare πͺπ
It is best for the background correction algorithms if the area described in the header template completely encloses all of the input images in their entirety. If parts of input images are "chopped off" by the header template, the background correction will be affected. We recommend you use an expanded header for the reprojection and background modeling steps, returning to the originally desired header size for the final coaddition. The default background matching assumes that there are no non-linear background variations in the individual images (and therefore in the overlap differences). If there is any uncertainty in this regard, it's safer to turn on the "level only" background matching (the -l flag in mBgModel). k that one's a mouthful but fr fr, don't skip it πΈ
π COPYRIGHT π
2001-2015 California Institute of Technology, Pasadena, California
If your research uses Montage, please include the following acknowledgement: "This research made use of Montage. It is funded by the National Science Foundation under Grant Number ACI-1440620, and was previously funded by the National Aeronautics and Space Administration's Earth Science Technology Office, Computation Technologies Project, under Cooperative Agreement Number NCC5-626 between NASA and the California Institute of Technology."
The Montage distribution includes an adaptation of the MOPEX algorithm developed at the Spitzer Science Center.
and that's the whole page, bestie π«Ά this was Montage 5, dated Dec 2016 β go find your sky coordinates, you absolute main character ππ
π¦ where this page comes from
- debian bookworm: montage 6.0+dfsg-7+b8 Β· BSD-3-Clause
- debian trixie: montage 6.1+dfsg-1+b1 Β· BSD-3-Clause
- ubuntu jammy: montage 6.0+dfsg-7build5 Β· BSD-3-Clause
- ubuntu noble: montage 6.0+dfsg-9 Β· BSD-3-Clause
- ubuntu questing: montage 6.1+dfsg-2
- ubuntu resolute: montage 6.1+dfsg-2build2 Β· BSD-3-Clause
- ubuntu stonking: montage 6.1+dfsg-2build2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms