MDIFF(1)
π MDIFF(1) β the mDiff page, but make it make sense π
okay so this is the mDiff manual, from the Montage crew (manual page MDIFF(1)), and bestie I need you to know up front: this one is niche and it's specific and it ate. It does ONE thing. It does it well. Let's go π¦
β¨ NAME β¨
mDiff β Calculates the difference between a pair of overlapping images. That's it. That's the whole job. π
β¨ SYNOPSIS β¨
mDiff [-d level] [-n(o-areas)] [-s statusfile] in1.fits in2.fits
out.fits template.hdr
look at her go, all four positional args and everything πΈ
β¨ DESCRIPTION β¨
So mDiff calculates a simple difference between a single pair of overlapping images. Single pair. Not a whole pile. A pair. π«Ά
This is meant for use on reprojected images where the pixels already line up exactly. No cap β if your pixels aren't already perfectly aligned, this is not the tool, bestie.
mDiff analyzes an image metadata table to determine a list of overlapping images. Each image is compared with every other image to determine all overlapping image pairs. π A pair of images are deemed to overlap if any pixel around the perimeter of one image falls within the boundary of the other image.
perimeter pixel in the other image's boundary = they're overlapping, periodt π«
β¨ OPTIONS β¨
-d levelβ Turns on debugging to the specified level (1-4). 1 to 4, and yes you have to pick one π-nβ No-area-images flag. Creates difference image without requiring pixel area FITS image. freedom from area images, iconic-z factorβ Scale second image by factor before subtracting. multiply then subtract, the math girlies get it β¨-s statusfileβ Output and errors are sent tostatusfileinstead of to stdout. redirect the whole vibe π
β¨ ARGUMENTS β¨
in1.fitsβ First input FITS file. (Also needs area imagein1_area.fits, or use-nflag) πΈin2.fitsβ Second input FITS file. (Also needs area imagein2_area.fits, or use-nflag) πΈout.fitsβ Difference FITS image to be generated. this is the one you're making, the main character πtemplate.hdrβ FITS header template used to generate output image. the blueprint π
β¨ RESULT β¨
FITS image and area image representing the difference in the overlap region. two for the price of one, we love a duo π
β¨ MESSAGES β¨
OKβ[struct stat="OK"]β¨ERRORβ Cannot open status file: statusfile πERRORβ Images don't overlap πERRORβ All pixels are blank πERRORβ Template file not found πERRORβ FITS library error π₯ERRORβ general error π«
β¨ EXAMPLES β¨
$ mDiff proj/in1.fits proj/in2.fits output/diff.fits template.hdr
[struct stat="OK"]
and that's it, that's the whole run, slay π
β¨ BUGS β¨
heads up bestie, read this part, fr fr
- The drizzle algorithm has been implemented but has not been tested in this release. Not tested. In this release. We said what we said. π
- 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).
β¨ 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. β
okay that's the whole page bestie, you're officially a mDiff girlie now π
β¨
this was Montage 5, dated Dec 2016 β thanks for reading, ily, go difference some images π¦π
π¦ 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