MBGMODEL(1)
π MBGMODEL β the MBGMODEL(1) page, bestie edition π
okay so. hi. you're looking at the Montage page for mBgModel, and honestly? this one's a baddie. buckle up. π
β¨ NAME β¨
mBgModel β Re-project and mosaic your images, with background rectification π¦
β¨ SYNOPSIS β¨
mBgModel [-i niter] [-l(evel-only)] [-d level] [-r refimg] [-s
statusfile] images.tbl fits.tbl corrections.tbl
β¨ DESCRIPTION β¨
mBgModel is a modelling/fitting program. It takes the image-to-image difference parameter table that mFitExec made, and then it interactively figures out a set of corrections to slap onto each image so you get a "best" global fit. like, it's out here doing the math so your mosaic doesn't look a mess. no cap. π
β¨ OPTIONS β¨
-i,-niterβ number of iterations. (without the switch it defaults to5000.) can be anywhere between1and32767.-lβ calculate level adjustments only (ie, don't attempt to match the slopes). lowkey the safe option, remember this one.-d levelβ turns on debugging to the specified level (1-3).-r refimgβ turns on additional debugging for the *n*th image inimages.tbl.-aβ use all the input differences (by default we exclude very small overlap areas). π-s statusfileβmBgModeloutput and errors are written tostatusfileinstead of tostdout.
β¨ ARGUMENTS β¨
images.tblβ Image metadata table generated bymImgtbl. π§fits.tblβ Plane fitting table generated bymFitExec.corrections.tblβ Output table of background corrections. this is the one you actually came for, bestie. π
β¨ RESULT β¨
Output table containing corrections to be applied to each image. periodt.
β¨ MESSAGES β¨
the whole group chat of things it can say to you, verbatim, no edits:
OK [struct stat="OK"]
ERROR Argument for -i (string) cannot be interpreted as an integer
ERROR Number of iterations too small (niter). This parameter is
normally around 5000.
ERROR Argument for -r (string) cannot be interpreted as an integer
ERROR Cannot open status file: statusfile
ERROR Failed to open output filename
ERROR Invalid image metadata file: filename
ERROR Need columns: cntr nl ns crpix1 crpix2 in image info file
ERROR malloc() failed (ImgInfo)
ERROR realloc() failed (ImgInfo)
ERROR Invalid background fit parameters file: filename
ERROR Need columns: plus minus a b c crpix1 crpix2 xmin xmax ymin ymax
xcenter ycenter npixel rms boxx boxy boxwidth boxheight boxang
ERROR malloc() failed (FitInfo)
ERROR realloc() failed (FitInfo)
ERROR malloc() failed (CorrInfo)
ERROR realloc() failed (CorrInfo)
ERROR Debug reference image out of range (0 - n)
ERROR Invalid fit type
ERROR Allocation failure in ivector()
β¨ EXAMPLES β¨
so after you run mDiffExec to create a set of difference images in diffdir, we generate an image difference table using mFitExec: sample fits.tbl.
$ mBgModel images.tbl fits.tbl corrections.tbl
[struct stat="OK"]
this results in the creation of corrections.tbl. iconic behaviour, honestly. π
β¨ BUGS β¨
The drizzle algorithm has been implemented but has not been tested in this release. π
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"]
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).
okay so that last one is genuinely important β if you're not sure, just use -l. fr fr.
β¨ 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 thing, bestie π«Ά this was Montage 5, dated Dec 2016 β main character energy from start to finish. now go fix those backgrounds. you 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