MFLATTENEXEC(1)
π MFLATTENEXEC(1) π
okay bestie, sit down, we're doing Montage today. this is mFlattenExec, a whole little program whose entire job is removing the background from an image. that's it. that's the gig. and honestly? she ate. π
β¨ NAME β¨
mFlattenExec β remove the background from an image π§
πΈ SYNOPSIS πΈ
mFlattenExec [-p imgdir] [-d] [-n(o-areas)] [-s statusfile] images.tbl
flatdir
π¦ DESCRIPTION π¦
so like, this is a two-for-one situation. mFlattenExec runs both mFitPlane and mBackground on a set of images, back to back, no cap. that's literally the whole description. iconic. π
π OPTIONS π
-pimgdir β tells it where the images live, aka the path to the directory containing the images to be flattened. show her the way. π«Ά-dβ turns on debugging. she's gonna be loud about what she's doing.-nβ the no-area-images flag, meaningmFlattenExecshould not require area images for all the input FITS images. lowkey a vibe. (also written as-n(o-areas)in the synopsis, just so you know what the vibe is.)-sstatusfile β output and errors get sent to statusfile instead of tostdout. quiet mode, main character energy, we love a girl who journals. π
π ARGUMENTS π
- images.tbl β the metadata table (generated by
mImgtbl) that describes the images to be flattened. she's the receipt. π§Ύ - flatdir β path to the directory where the output files should be created. new folder, new me. β¨
π RESULT π
creates "flattened" versions of each input FITS image. periodt.
π¬ MESSAGES π¬
- OK β
[struct stat="OK", count=nimages, failed=nfailed, warning=nwarnings] - ERROR β
Cannot open status file: statusfile - ERROR β
Cannot access flatdir - ERROR β
flatdir is not a directory - ERROR β
Invalid image metadata file: filename - ERROR β
Need column 'file' in image metadata file filename - ERROR β
mDiff or mBackground error
β EXAMPLES β
look at her go:
$ mFlattenExec output/images.tbl output/flattened
[struct stat="OK", count=5, failed=0, warning=0]
count=5, failed=0, warning=0?? she did that. ππ
π BUGS π
okay so, not everything is perfect, and we need to be honest:
- the drizzle algorithm has been implemented but has not been tested in this release. like. it's there. we don't know her. π
- if a header template contains carriage returns (i.e., it was created or modified on a Windows machine), the
cfitsiolibrary will be unable to read it properly, and you'll get this error:[struct stat="ERROR", status=207, msg="illegal character in keyword"]. π - it's 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. so: 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. also 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
-lflag inmBgModel. noted. π
π 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, Montage 5, dated Dec 2016, and yes this manual page itself is MFLATTENEXEC(1). go flatten some backgrounds, you're gonna 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