MBGEXEC(1)
π
MBGEXEC β the mBgExec page, bestie edition π
okay so real talk, this is the MBGEXEC(1) manual page from Montage, and it's all about a little command called mBgExec. she runs mBackground over every single image in a metadata table. every one. no skips. π
β¨ NAME β¨
mBgExec β run mBackground on all the images in a metadata table π¦
π SYNOPSIS π
mBgExec [-p projdir] [-s statusfile] [-d] [-n(o-areas)] images.tbl
corrections.tbl corrdir
πΈ DESCRIPTION πΈ
so basically πββοΈ mBgExec runs mBackground on every image in a metadata table, using the corrections that mFitExec generated. that's it, that's the whole vibe. she's the one who actually applies the glow-up to all your pics at once. β¨
π OPTIONS π
-pprojdir β tells her where the projected images are chillin'. this is the path to the directory holding them. π-sstatusfile β writes the output message to statusfile instead of tostdout. quiet girl behavior, we love it. π€«-dβ turns on debugging. she's gonna be so chatty. π-nβ indicates that no area images are present. this assumes equal weighting for each pixel, no cap. βοΈ
π«Ά ARGUMENTS π«Ά
- images.tbl β the image metadata table, generated by mImgtbl. π
- corrections.tbl β the table of corrections, generated by mFitExec. β¨
- corrdir β the directory where the output images should be written. this is where the magic lands. π
π RESULT π
output FITS images get created in the directory specified by corrdir, with names that are the same as the uncorrected images. so like, same name, new corrected energy. iconic. π₯
π MESSAGES π
- OK β
[struct stat="OK", count=num-images, nocorrection=num-skipped, failed=num-failed] - ERROR β
MPI initialization failed - ERROR β
Cannot open status file: statusfile - ERROR β
Cannot access corrdir - ERROR β
corrdir is not a directory - ERROR β
Invalid image metadata file: images.tbl - ERROR β
Need columns: cntr and fname in image list - ERROR β
Too many entries in image list for compiled program - ERROR β
mBackground error
not me getting an error message π but fr fr, if you see one of these, that's what's up.
π EXAMPLES π
in this example, images.tbl describes the unprojected or projected images (the filenames are the same if mProjExec was used), and corrections.tbl was generated using mBgModel after running mDiffExec and mFitExec on those images. the full pipeline, she ate. π
$ mBgExec -p proj images.tbl corrections.tbl corr
[struct stat="OK", count=16, failed=0]
and now corr contains the images with background removal applied. periodt. π
π BUGS π
- the drizzle algorithm has been implemented but has not been tested in this release. it's giving "we wrote it, we didn't check it." π
- 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, resulting in this 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, then return 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).
bestie please read that third one twice, it's not a vibe, it's a warning. π¨
π 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, you're so welcome π«Ά Montage 5, dated Dec 2016 β go run some background correction, you got this, slay πβ¨
π¦ 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