MTANHDR(1)
β¨ MTANHDR β¨ (the mTANHdr manual page, bestie edition)
okay so bestie, welcome to mTANHdr π this is a Montage tool and it's literally here to help you figure out if your header could have an equivalent distorted TAN projection. She's a little niche, she's a little powerful, and she is so much faster than the general-purpose girlie. let's get into it π«Ά
πΈ NAME πΈ
mTANHdr β determine if there would be an equivalent distorted TAN projection π
π SYNOPSIS π
mTANHdr [-d] [-o order][-i maxiter][-t tolerance][-s statusfile]
orig.hdr new.hdr
π¦ DESCRIPTION π¦
So what she does is: she analyzes a template file and figures out if there would be an adequate equivalent distorted TAN projection, within a specified tolerance, and then she outputs the alternate header. periodt.
That header can be used in conjunction with mProjectPP to produce a TAN plane image β¨ and the way that this process is considerably faster than projecting with the general purpose tool mProject? iconic.
The output header is a FITS header template containing a TAN projection with polynomial focal plane distortions. (Link to an example output header)
mTANHdr is most suitable for projections which can be approximated by tangent-plane projections (TAN, SIN, ZEA, STG, ARC), and is also therefore not suited for images covering large portions of the sky. no cap, keep her in her lane π
π OPTIONS π
-dβ print additional debugging information to stdout. she's chatty, she's telling you everything π£οΈ-oorder β order of output header polynomial focal plane distortions (default =4)-imaxiter β maximum number of iteration attempts to produce header (default =50)-ttolerance β distortion tolerance value for acceptable output (default =0.01)-sstatusfile β output and errors are written to statusfile instead of stdout.
π ARGUMENTS π
orig.hdrβ input FITS headernew.hdrβ path to output header to be created
π RESULT π
[struct stat="OK", fwdxerr=fwdxerr, fwdyerr=fwdyerr, fwditer=iter,
revxerr=revxerr, revyerr=revyerr, reviter=reviter]
where fwdxerr and fwdyerr are the maximum errors along each axis found when projecting from the original image to the distorted header; revxerr and revyerr are the maximum errors along each axis found when projecting from the distorted header back to the original header; and fwditer and reviter are the number of iterations required in each direction to converge on a solution π«
π MESSAGES π
OKβ[struct stat="OK", fwdxerr=fwdxerr, fwdyerr=fwdyerr, fwditer=iter, revxerr=revxerr, revyerr=revyerr, reviter=reviter]ERRORβ-i(iterations) argumentERRORβ-o(order) argumentERRORβ-t(tolerance) argumentERRORβ Cannot open status file: statusfileERRORβ Cannot open output template file new.hdrERRORβ All points offscale in forward transformERRORβ All points offscale in reverse transformERRORβ Bad template: orig.hdrERRORβ Outputwcsinit()failed.ERRORβ Singular Matrix-1ERRORβ Singular Matrix-2ERRORβ Allocation failure inivector()
β EXAMPLES β
$ mTANHdr input/SIN_1.hdr alternate.hdr
[struct stat="OK", fwdxerr=4.31068e-05, fwdyerr=4.42599e-05,
fwditer=4, revxerr=1.22123e-05, revyerr=1.19694e-05, reviter=4]
The output header is a FITS header template containing a TAN projection with polynomial focal plane distortions: alternate.hdr π
π BUGS π
The drizzle algorithm has been implemented but has not been tested in this release. so like, she's there, she's just untested, be careful π«
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"] β windows line endings really said "not today" π
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 -l flag in mBgModel).
π 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 version 5, dated Dec 2016 β mwah, slay, go project something pretty β¨ππ¦
π¦ 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