MHDR(1)

✨ MHDR(1) ✨

okay bestie, welcome to the Montage corner of the universe β€” this is the page for mHdr πŸ’–

NAME

mHdr β€” connect to the IRSA service to create a header template πŸŽ€


SYNOPSIS

mHdr [-s system] [-e equinox] [-h height] [-p pixsize] [-r rotation] [-t
2mass-band] object|location width outfile

DESCRIPTION

So like, mHdr reaches out and connects to the IRSA service called HdrTemplate, and it builds you a header template based on a location, a size, a resolution and a rotation. That's it, that's the whole vibe. πŸ’…


OPTIONS

  • -s system β€” pick your coordinate system, queen. it can be one of:
    • "equatorial" or "eq" (this one's the default, no cap)
    • "ecliptic" or "ec"
    • "galactic" or "ga"
    • "supergalactic" or "sgal"
  • -e equinox β€” sets the equinox. default is 2000.0 ⭐
  • -h height β€” the height (that's the y-axis, iykyk) of the area, in degrees. default is literally just equal to the width πŸ¦‹
  • -p pixsize β€” the size of a pixel, measured in arcsec. default is 1 πŸ”
  • -r rotation β€” rotation of the image. default is 0 πŸŒ€
  • -t 2mass-band β€” if your data is 2MASS, the correct MAGZP gets added to the header. cute, right? ✨

ARGUMENTS

  • object|location β€” an object string or a coordinate location. put it in quotes if there are any spaces or special characters in there, bestie, or it's gonna get messy πŸ™ˆ
  • width β€” the width (that's the x-axis) of the area
  • outfile β€” the path to your output header template πŸ“

RESULT

[struct stat="OK", count=header-lines]

MESSAGES

  • OK β€” [struct stat="OK", count=header-lines] πŸ’–
  • ERROR β€” Can't open output file outfile
  • ERROR β€” location parameter required
  • ERROR β€” width parameter required
  • ERROR β€” Invalid object/coordinates
  • ERROR β€” Couldn't find host irsa.ipac.caltech.edu
  • ERROR β€” Couldn't create socket
  • ERROR β€” irsa.ipac.caltech.edu: connect failed

EXAMPLES

say a user wants to create a mosaic centered on m31, 1 degree on each side. first step? create the header template that describes the mosaic you want. periodt. πŸ‘‘

mHdr "10.68469 +41.26904" 1 m31.hdr
       [struct stat="OK", count=16]

and now m31.hdr can be used by other Montage modules to generate a mosaic. slay 🌈


BUGS

the drizzle algorithm has been implemented but has not been tested in this release. yeah. we know. 😭
if a header template contains carriage returns (like, if it was created/modified on a Windows machine), the cfitsio library will be unable to read it properly, and you'll get the error: [struct stat="ERROR", status=207, msg="illegal character in keyword"] πŸ’€
for the background correction algorithms, it's best if the area described in the header template completely encloses all of the input images in their entirety. if parts of the 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, then return to the originally desired header size for the final coaddition. the default background matching assumes there are no non-linear background variations in the individual images (and therefore in the overlap differences). if there's any uncertainty about that, it's safer to turn on the "level only" background matching β€” that's the -l flag in mBgModel. 🫢

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 thing bestie πŸ’œ this page is from Montage 5, dated Dec 2016 β€” go make some iconic headers, mwah πŸ’…πŸŒΈ