Scroll to navigation

STATISTICS(1) User Commands STATISTICS(1)

NAME

Statistics - calculate statistics of a dataset

SYNOPSIS

aststatistics [OPTION...] ASTRdata

DESCRIPTION

Statistics is part of GNU Astronomy Utilities 0.22. Statistics will do statistical analysis on the input dataset (table column or image). All blank pixels or pixels outside of the given range are ignored. You can either directly ask for certain statistics in one line/row as shown below with the same order as requested, or get tables of different statistical measures like the histogram, cumulative frequency style and etc. If no particular statistic is requested, some basic information about the dataset is printed on the command-line.

For more information, please run any of the following commands. In particular the second contains a very comprehensive explanation of Statistics's invocation: expected input(s), output(s), and a full description of all the options.

$ aststatistics -P
$ info aststatistics
$ info Statistics
$ info gnuastro

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

Statistics options:

Input:
Column number (counting from 1) or search string.
Upper range of 2nd dim in 2D histograms.
Only use values greater-equal than this.
Extension name or number of input data.
Ignore case in matching/searching columns.
Lower range of 2nd dim in 2D histograms.
Only use values less than this.
Quantile range: one (from Q to 1-Q) or two.
Select column(s): 'name', 'unit', 'comment'.
Micro-seconds to wait for standard input.
Tessellation (tile grid):
Tile IDs in an image, the size of input.
Fraction of remainder to split last tile.
Interpolation metric (radial, manhattan).
No. of neighbors to use for interpolation.
Only interpolate over the blank tiles.
Interpolate over blank tiles to fill them.

-M, --numchannels=INT[,..] No. of channels in dim.s (FITS order).

Display 1 element/tile, not full input res.
Work (not tile) over channel edges.
Regular tile size on dim.s (FITS order).
Output:
Don't delete output if it exists.
Keep input directory for automatic output.
No Git commit in 0-th HDU of output FITS.
No metadata in 0-th HDU of output FITS.
No 'DATE' in 0-th HDU of output FITS.
No versions in 0-th HDU of output FITS.
Output file name.
Table fmt: 'fits-ascii', 'fits-binary', 'txt'.
WCS linear matrix of output ('pc' or 'cd').
Single value measurements
Standad deviation.
Median.
Median absolute deviation.
MAD-clipped Median Absolute Deviation.
MAD-clipped mean.
MAD-clipped median.
Number of elements after MAD-clipping.
MAD-clipped standard deviation.
Maximum.
Minimum.
Mode quantile (see --mode)
Mode symmetricity (see --mode).
Value at mode symmetricity (see --mode).
Mean.
Number (non-blank).
Mode (Appendix C of arXiv:1505.01664).
Quantile function (multiple values acceptable).
Quantile of the mean.
Sigma-clipped Median Absolute Deviation.
Sigma-clipped mean.
Sigma-clipped median.
Number of elements after sigma-clipping.
Sigma-clipped standard deviation.
Sum.
Quantile (multiple values acceptable).
Particular calculation
Print an ASCII cumulative frequency plot.
Print an ASCII histogram.
Save the cumulative frequency plot in output.
2D histogram (as 'table' or 'image').
Save the histogram in output.
Overall MAD-clipping (see '--mclipparams')
Save the histogram and CFP of the mirror dist.
Contour levels, save in PGFPlots format.
Overall sigma-clipping (see '--sclipparams')
Single values on separate tiles, not full input.
Find the Sky and its STD over the tessellation.
Sky and Sky STD settings
Num neighboring tiles to look for outlier.
Store steps in '_sky_steps.fits' file.
Similar to --checksky, stops at interpolation.
Don't write input's blanks in the tiled output.
HDU/extension name or number of kernel.
File name of kernel to convolve input.
MAD clip: Multiple, and tolerance/number.
Max. mode and median quantile diff. per tile.
Max. distance (error multip.) to find mode.

--outliersclip=FLT,FLT Sigma-clip params for qthresh outliers.

Multiple of sigma to define outliers.
Sigma clip: Multiple, and tolerance/number.
Sky: flat kernel width to smooth interpolated.
Histogram and CFP settings
Height of ASCII histogram or CFP plots.
Set min/max of bins manually, not from data.
Scale such that the maximum bin has value of one.
No. of bins in ASCII histogram or CFP plots.
No. of bins in histogram or CFP tables.
No. of bins in second-dim of 2D histogram.
Set sum of all bins to 1.
Shift bins so one bin starts on this value.
Similar to --onebinstart, for 2D histogram
Fitting (1 dimensional)
Estimate fitted func. (number, file or 'self').
Column containing the --fitestimate values.
HDU containing the --fitestimate values.
The robust function name to use.
Input weight: 'std', 'var' or 'inv-variance'.
Type of fitting: 'linear', 'linear-weighted', 'linear-no-constant', 'linear-no-constant-weighted', 'polynomial', 'polynomial-weighted', 'polynomial-robust'.
Maximum power in polynomial to fit.
Operating modes:
-?, --help
give this help list
List all config files and variables read.
BibTeX citation for this program.
Read configuration file STR immediately.
Custom prefix of option names config files.
Do not parse any more configuration files.
Min. bytes to avoid RAM automatically.
Number of CPU threads to use.
Only run if the program version is STR.
Print parameter values to be used and abort.
Don't print mmap'd file's name and size.
Only report errors, remain quiet about steps.
Set default values for this directory and abort.
give a short usage message
Set default values for this user and abort.
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-2024 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.

February 2024 GNU Astronomy Utilities 0.22