STATISTICS(1)
β¨ STATISTICS β¨
okay bestie, welcome to Statistics β she's a whole User Commands girlie and her entire job is calculate statistics of a dataset. that's it. that's the mission. π
πΈ SYNOPSIS πΈ
aststatistics [OPTION...] ASTRdata
π DESCRIPTION π
so Statistics is part of GNU Astronomy Utilities 0.24, and she will do a whole statistical analysis on the input dataset β whether that's a table column or an image, she does not care, she's versatile like that. π
important: all blank pixels or pixels outside of the given range are ignored. no cap. they simply do not exist to her.
you have two vibes to choose from:
- you can directly ask for certain statistics in one line/row as shown below, and they come out with the same order as requested, or
- you can get tables of different statistical measures like the histogram, cumulative frequency style and etc.
and if you request literally no particular statistic? she just prints some basic information about the dataset on the command-line. lowkey generous of her. π«Ά
for more info, please run any of the following commands. in particular the second one contains a very comprehensive explanation of Statistics's invocation: expected input(s), output(s), and a full description of all the options.
All options and their values:
$ aststatistics -P
Inputs/Outputs and options:
$ info aststatistics
Full section in manual/book:
$ info Statistics
Full Gnuastro manual/book:
$ info gnuastro
and if you couldn't find your answer in the manual, you can get direct help from experienced Gnuastro users and developers. for more information, please run:
$ info help-gnuastro
π OPTIONS π
Statistics options:
π Input:
-c,--column=STRβ Column number (counting from 1) or search string.--greaterequal2=FLTβ Upper range of 2nd dim in 2D histograms.-g,--greaterequal=FLTβ Only use values greater-equal than this.-h,--hdu=STR/INTβ Extension name or number of input data.-I,--ignorecaseβ Ignore case in matching/searching columns.--lessthan2=FLTβ Lower range of 2nd dim in 2D histograms.-l,--lessthan=FLTβ Only use values less than this.-Q,--qrange=FLT[,FLT]β Quantile range: one (from Q to 1-Q) or two.--searchin=STRβ Select column(s):'name','unit','comment'.--stdintimeout=INTβ Micro-seconds to wait for standard input.
π§ Tessellation (tile grid):
--checktilesβ Tile IDs in an image, the size of input.-F,--remainderfrac=FLTβ Fraction of remainder to split last tile.--interpmetric=STRβ Interpolation metric (radial, manhattan).--interpnumngb=INTβ No. of neighbors to use for interpolation.--interponlyblankβ Only interpolate over the blank tiles.-i,--interpolateβ Interpolate over blank tiles to fill them.-M,--numchannels=INT[,..]β No. of channels in dim.s (FITS order).--oneelempertileβ Display 1 element/tile, not full input res.--workoverchβ Work (not tile) over channel edges.-Z,--tilesize=INT[,INT]β Regular tile size on dim.s (FITS order).
π¦ Output:
-D,--dontdeleteβ Don't delete output if it exists.-K,--keepinputdirβ Keep input directory for automatic output.--outfitsnocommitβ No Git commit in 0-th HDU of output FITS.--outfitsnoconfigβ No metadata in 0-th HDU of output FITS.--outfitsnodateβ No'DATE'in 0-th HDU of output FITS.--outfitsnoversionsβ No versions in 0-th HDU of output FITS.-o,--output=STRβ Output file name.--tableformat=STRβ Table fmt:'fits-ascii','fits-binary','txt'.--wcslinearmatrix=STRβ WCS linear matrix of output ('pc'or'cd').
π Single value measurements
--concentration=FLT[,...]β Uniform dist: 1.0; higher: concentrated.-d,--stdβ Standad deviation.-E,--medianβ Median.--madβ Median absolute deviation.--madclip-madβ MAD-clipped Median Absolute Deviation.--madclip-meanβ MAD-clipped mean.--madclip-medianβ MAD-clipped median.--madclip-numberβ Number of elements after MAD-clipping.--madclip-stdβ MAD-clipped standard deviation.--maximumβ Maximum.--minimumβ Minimum.--modequantβ Mode quantile (see--mode)--modesymβ Mode symmetricity (see--mode).--modesymvalueβ Value at mode symmetricity (see--mode).-m,--meanβ Mean.--numberβ Number (non-blank).-O,--modeβ Mode (Appendix C of arXiv:1505.01664).--quantfunc=FLT[,...]β Quantile function (multiple values acceptable).--quantofmeanβ Quantile of the mean.--sigclip-madβ Sigma-clipped Median Absolute Deviation.--sigclip-meanβ Sigma-clipped mean.--sigclip-medianβ Sigma-clipped median.--sigclip-numberβ Number of elements after sigma-clipping.--sigclip-stdβ Sigma-clipped standard deviation.--sumβ Sum.-u,--quantile=FLT[,...]β Quantile (multiple values acceptable).
π Particular calculation
--asciicfpβ Print an ASCII cumulative frequency plot.-A,--asciihistβ Print an ASCII histogram.-C,--cumulativeβ Save the cumulative frequency plot in output.--histogram2d=STRβ 2D histogram (as'table'or'image').-H,--histogramβ Save the histogram in output.--madclipβ Overall MAD-clipping (see'--mclipparams')--mirror=FLTβ Save the histogram and CFP of the mirror dist.-R,--contour=STRβ Contour levels, save in PGFPlots format.-s,--sigmaclipβ Overall sigma-clipping (see'--sclipparams')-t,--ontileβ Single values on separate tiles, not full input.-y,--skyβ Find the Sky and its STD over the tessellation.
π Sky and Sky STD settings
-a,--outliernumngb=INTβ Num neighboring tiles to look for outlier.--checkskyβ Store steps in'_sky_steps.fits'file.--checkskynointerpβ Similar to--checksky, stops at interpolation.--ignoreblankintilesβ Don't write input's blanks in the tiled output.--khdu=STRβ HDU/extension name or number of kernel.-k,--kernel=FITSβ File name of kernel to convolve input.--mclipparams=FLT,FLTβ MAD clip: Multiple, and tolerance/number.--meanmedqdiff=FLTβ Max. mode and median quantile diff. per tile.--mirrordist=FLTβ Max. distance (error multip.) to find mode.--outliersclip=FLT,FLTβ Sigma-clip params for qthresh outliers.--outliersigma=FLTβ Multiple of sigma to define outliers.--sclipparams=FLT,FLTβ Sigma clip: Multiple, and tolerance/number.--smoothwidth=INTβ Sky: flat kernel width to smooth interpolated.
β Histogram and CFP settings
--asciiheight=INTβ Height of ASCII histogram or CFP plots.--manualbinrangeβ Set min/max of bins manually, not from data.--maxbinoneβ Scale such that the maximum bin has value of one.--numasciibins=INTβ No. of bins in ASCII histogram or CFP plots.--numbins=INTβ No. of bins in histogram or CFP tables.--numbins2=INTβ No. of bins in second-dim of 2D histogram.-n,--normalizeβ Set sum of all bins to 1.--onebinstart=FLTβ Shift bins so one bin starts on this value.--onebinstart2=FLTβ Similar to--onebinstart, for 2D histogram
π₯ Fitting (1 and 2 dimensional)
--fitestimate=STR/FLTβ Estimate fitted func. (number, file or'self').--fitestimatecol=STR/INTβ Column containing the--fitestimatevalues.--fitestimatehdu=STR/INTβ HDU containing the--fitestimatevalues.--fitrobust=STRβ The robust function name to use.--fitweight=STRβ Input weight:'std','var'or'inv-variance'.-f,--fit=STRβ Type of fitting:'linear','linear-weighted','linear-no-constant','linear-no-constant-weighted','polynomial','polynomial-weighted','polynomial-robust'.-p,--fitmaxpower=INTβ Maximum power in polynomial to fit.
πΈ Operating modes:
-?,--helpβ give this help list--checkconfigβ List all config files and variables read.--citeβ BibTeX citation for this program.--config=STRβ Read configuration file STR immediately.--config-prefix=STRβ Custom prefix of option names config files.--lastconfigβ Do not parse any more configuration files.--minmapsize=INTβ Min. 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 parameter values to be used and abort.--quietmmapβ Don't print mmap'd file's name and size.-q,--quietβ Only report errors, remain quiet about steps.-S,--setdirconfβ Set default values for this directory and abort.--usageβ give a short usage message-U,--setusrconfβ Set default values for this user and abort.-V,--versionβ print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
GNU Astronomy Utilities home page: http://www.gnu.org/software/gnuastro/
π REPORTING BUGS π
Report bugs to bug-gnuastro@gnu.org.
π 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
π SEE ALSO π
The full documentation for Statistics is maintained as a Texinfo manual. If the info and Statistics programs are properly installed at your site, the command
info Statistics
should give you access to the complete manual.
and that's the whole page bestie!! πβ¨ this one's from GNU Astronomy Utilities 0.24, dated November 2025, and it was served to you with main character energy, as always. go run some stats, you got this ππ¦
π¦ 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