SEGMENT(1)

πŸ“¦
version 0.24 Β· 5 versions
, in epel 10, epel 9, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– 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:

  1. she finds the true clumps (local maxima),
  2. figures out which ones have strong connections,
  3. 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 only CLUMPS and/or OBJECTS HDUs.
  • --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 file STR immediately.
  • --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 is STR.
  • -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 Β© 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