SEGMENT(1)
π SEGMENT(1) π
okay bestie, gather round, because this is the manual page for Segment β part of the astsegment situation β and it lives in the User Commands corner of the GNU Astronomy Utilities 0.24 universe. she's giving β¨segmentation based on signal structureβ¨ and honestly? iconic.
πΈ NAME πΈ
Segment β segmentation based on signal structure. that's the whole vibe. π
π SYNOPSIS π
astsegment [OPTION...] ASTRdata
π¦ DESCRIPTION π¦
so Segment is part of GNU Astronomy Utilities 0.24, and what she does is take an initially labeled region and segment it based on the structure inside the signal. the whole process is like a little three-act play:
- she finds the true clumps (local maxima),
- figures out which ones have strong connections,
- then grows them out until they cover the full area of each detection.
slay.
for more info, you can run any of these commands. and lowkey, the second one is the main character β it has a very comprehensive explanation of how Segment gets invoked: expected input(s), output(s), and a full rundown of every single option. no cap.
all options and their values:
$ astsegment -P
inputs/outputs and options:
$ info astsegment
full section in the manual/book:
$ info Segment
full Gnuastro manual/book:
$ info gnuastro
and if the manual is not giving what you need, you can get direct help from experienced Gnuastro users and developers. for that, run:
$ info help-gnuastro
β¨ OPTIONS β¨
Segment options:
π Input:
--chdu=STRβ HDU/extension of the convolved image inside the file.--convolved=FITSβ a convolved image file, so you can skip the whole convolution thing.--dhdu=STRβ the HDU that holds the detection image.-d,--detection=FITSβ filename of the detection image (the one getting segmented).-h,--hdu=STR/INTβ the HDU holding the values (aka the science image).--khdu=STRβ the HDU holding the kernel image.-k,--kernel=FITSβ filename of the kernel you want to convolve with the input.--sky=STR/FLTβ filename of the Sky values image you want subtracted.--skyhdu=STRβ the HDU containing the Sky value to subtract.--std=STR/FLTβ filename of the Sky standard deviation.--stdhdu=STRβ the HDU containing the Sky standard deviation.--varianceβ plot twist: the STD input is actually variance.
π§ Tessellation (tile grid):
--checktilesβ tile IDs in an image, sized the same as the input.-F,--remainderfrac=FLTβ fraction of the remainder to split off for the last tile.--interpmetric=STRβ interpolation metric (radial,manhattan).--interpnumngb=INTβ number of neighbors to use for interpolation.--interponlyblankβ only interpolate over the blank tiles. nothing else. mind your business.-L,--largetilesize=INT[,INT]β same energy as--tilesize, but for the larger tiles.-M,--numchannels=INT[,..]β number of channels in dim.s (FITS order).--oneelempertileβ display 1 element per tile, not the full input resolution.--workoverchβ work over channel edges (as a whole, not tile by tile).-Z,--tilesize=INT[,INT]β regular tile size on dim.s (FITS order).
π Output:
-D,--dontdeleteβ don't delete the output if it already exists. she's stubborn like that.-K,--keepinputdirβ keep the input directory for the automatic output.--noobjectsβ finish with true clumps only, don't make objects.--outfitsnocommitβ no Git commit in the 0-th HDU of the output FITS.--outfitsnoconfigβ no metadata in the 0-th HDU of the output FITS.--outfitsnodateβ no'DATE'in the 0-th HDU of the output FITS.--outfitsnoversionsβ no versions in the 0-th HDU of the output FITS.-o,--output=STRβ output file name.--rawoutputβ output contains onlyCLUMPSand/orOBJECTSHDUs.--tableformat=STRβ'txt','fits-ascii','fits-binary'.--wcslinearmatrix=STRβ WCS linear matrix of the output ('pc'or'cd').
π Segmentation:
-B,--minskyfrac=FLTβ minimum fraction of undetected area allowed in a tile.--checksegmentationβ store the segmentation steps into a file.--checksnβ save the clump S/N values into a file.-c,--snquant=FLTβ S/N quantile of the true sky clumps.--grownclumpsβ save the grown clumps instead of the original ones.-G,--gthresh=FLTβ multiple of STD at which to stop growing clumps.--minimaβ build internal clumps from minima.--minnumfalse=INTβ minimum number for S/N estimation.-m,--snminarea=INTβ minimum area of clumps for S/N estimation.-O,--objbordersn=FLTβ minimum S/N for grown clumps to count as one object.-s,--clumpsnthresh=FLTβ S/N threshold of true clumps.-v,--keepmaxnearriverβ keep clumps whose peak is touching a river. ποΈ-y,--minriverlength=INTβ minimum length of useful grown clump rivers.
π Operating modes:
-?,--helpβ give this help list.--checkconfigβ list all config files and variables that were read.--citeβ BibTeX citation for this program. cite your sources, bestie.--config=STRβ read configuration fileSTRimmediately.--config-prefix=STRβ custom prefix of option names in config files.-C,--continueaftercheckβ continue processing after the checks.--lastconfigβ do not parse any more configuration files.--minmapsize=INTβ minimum bytes to avoid RAM automatically.-N,--numthreads=INTβ number of CPU threads to use.--onlyversion=STRβ only run if the program version isSTR.-P,--printparamsβ print the parameter values that would be used, then abort.--quietmmapβ don't print the mmap'd file's name and size.-q,--quietβ only report errors, stay quiet about the steps.-S,--setdirconfβ set default values for this directory, then abort.--usageβ give a short usage message.-U,--setusrconfβ set default values for this user, then abort.-V,--versionβ print program version.
π heads up: mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. yes, the short ones inherit the drama.
GNU Astronomy Utilities home page: http://www.gnu.org/software/gnuastro/
π REPORTING BUGS π
found a bug? report it to bug-gnuastro@gnu.org. don't be shy, they're nice about it. π«Ά
β COPYRIGHT β
Copyright Β© 2015-2025 Free Software Foundation, Inc. License GPLv3+: GNU General public license version 3 or later.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written/developed by Mohammad Akhlaghi. king behavior, honestly. π
π« SEE ALSO π«
The full documentation for Segment is maintained as a Texinfo manual. If the info and Segment programs are properly installed at your site, the command
info Segment
should give you access to the complete manual.
and that's the whole page, bestie π this was GNU Astronomy Utilities 0.24, dated November 2025 β go segment something gorgeous. periodt. πβ¨π¦
π¦ where this page comes from
- epel 10: gnuastro 0.24-1.el10_3 Β· GPL-3.0-or-later AND FSFAP AND GFDL-1.3-or-later
- epel 9: gnuastro 0.24-1.el9 Β· GPL-3.0-or-later AND FSFAP AND GFDL-1.3-or-later
- nixos 26.05: gnuastro 0.24
- nixpkgs unstable: gnuastro 0.24
- ubuntu resolute: gnuastro 0.24-1 Β· GPL-3.0-or-later
- ubuntu stonking: gnuastro 0.24-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms