MMAKEHDR(1)
π MMAKEHDR β bestie edition π
okay so real talk: this is the mMakeHdr page from the Montage manual, section 1 of the Unix manual pages, and it's literally the tool that builds your mosaic header. no cap. let's get into it π«Ά
β¨ NAME β¨
mMakeHdr β Create a FITS header template for use in mosaic creation π
β¨ SYNOPSIS β¨
MakeHdr [-d level] [-s statusfile] [-p(ixel-scale) cdelt] [-P maxpixel]
[-n] images.tbl template.hdr [system [equinox]]
(yes bestie, the synopsis says MakeHdr and the page is called mMakeHdr, that's just how it is, we don't question it π
)
β¨ DESCRIPTION β¨
So here's the vibe: you hand it a list of images you wanna mosaic together, and mMakeHdr generates the FITS header that best describes the output image. iconic behaviour fr fr.
And if your input metadata describes a properly matched set of data cubes (three or four dimensions), the header will reflect that, and you can use it for cube mosaicking. obsessed. π§β¨
Now, if the spatial coverage of the data is large enough that a TAN projection header is infeasible, an allsky (AITOFF) header gets created instead. But β οΈ use that with caution, because it can easily be the result of metadata for images that shouldn't really be combined. it's giving "these are not the same sky, bestie" π
β¨ OPTIONS β¨
-dlevel β turns on debugging to the specified level (1-3). detective mode π-sstatusfile β output and errors get written to statusfile instead of tostdout. quiet girl era π€«-pcdelt β specify a pixel scale for the header, if it's different from the input images. (the synopsis calls it-p(ixel-scale), yes really)-Pmaxpixel β sanity check!! forces an upper limit on derivedNAXIS1,NAXIS2, just in time. safety first π-nβ the "North-aligned" flag. by default the FITS header generated represents the best fit to the images, which often results in a slight rotation. if you want north to be straight up in your final mosaic, you should use this flag. β¬οΈβ¨
β¨ ARGUMENTS β¨
- images.tbl β metadata table (generated by
mImgtbl) describing the images to be mosaicked. π - template.hdr β path to the header template to be generated. this is the baby you're birthing π
- system (optional) β specifies the system for the header (default is Equatorial). possible values are:
EQUJ EQUB ECLJ ECLB GAL SGAL
- equinox (optional) β if a coordinate system is specified, the equinox can also be given in the form
YYYY. default isJ2000. π
β¨ RESULT β¨
Creation of output file template.hdr. that's it, that's the result π
β¨ MESSAGES β¨
the receipts, in order:
OKβ[struct stat = "OK", count=nimages, ncube=ncubes, clon=ra, clat=dec, lonsize=crpix1, latsize=crpix2, posang=ang, lon1=ra1, lat1=dec1, lon2=ra2, lat2=dec2, lon3=ra3, lat3=dec3, lon4=ra4, lat4=dec4]OKβ messages about projection and number of axes>ERRORβ Memory allocation failure.ERRORβ Invalid pixel scale string: cdeltERRORβ Cannot open status file: statusfileERRORβ Invalid system string. Must be EQUJ|EQUB|ECLJ|ECLB|GAL|SGALERRORβ Equinox string is not a numberERRORβ Can't open output header file.ERRORβ Invalid image metadata file: filenameERRORβ Need columns: ctype1 ctype2 nl ns crval1 crval2 crpix1 crpix2 cdelt1 cdelt2 crota2 (equinox optional). Four corners (equatorial) will be used if they exist or even just a single set of coordinatesERRORβ Bad WCS for image nERRORβ Error computing boundaries.ERRORβ Output wcsinit() failed.
β¨ EXAMPLES β¨
watch her serve:
$ mMakeHdr 2mass-images.tbl orig.hdr
[struct stat="OK", count=30]
β¨ BUGS β¨
girl, read these. they are not decorative. π
- The drizzle algorithm has been implemented but has not been tested in this release. (implemented but not tested, the audacity π)
- If a header template contains carriage returns (i.e., created/modified on a Windows machine), the
cfitsiolibrary will be unable to read it properly, resulting in the error:[struct stat="ERROR", status=207, msg="illegal character in keyword"]. windows line endings strike again πͺπ - 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 is safer to turn on the "level only" background matching (the
-lflag inmBgModel). π«Ά - Due to some numerical approximation, the "North Up" bounding box calculated when the
-nswitch is on can be skewed a fraction of a degree. a lil crooked, as a treat π
β¨ 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, periodt π
this was Montage version 5, dated Dec 2016, page MMAKEHDR(1) β go make some gorgeous mosaics, you've got this π¦πΈπ
π¦ 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