fitsstats - compute statistics ( avg, max, median, min, sum ) on FITS files.
fitsstats [ --range | -r [start]:[end] or [start]/count ] [ --Stats | -S median ] [-- output | -o foo.fits ] [ --sort ] -- @filename | files
Options may be abbreviated. Options which take values may be separated from their values either by white space or the = character. If some arguments begin with a dash, then a double dash must preceed the file list.
The options are :
For example, if all the FITS file in the directory /pool1/mydir are to be used, then type the following line:
fitsstats /pool1/mydir/*.fits
The user can select a specific number of files by entering the files, with full pathname, in a file. For example, if the file myfile contains the following entries:
/pool1/mydir/a.fits /pool1/mydir/b.fits /pool1/mydir/c.fits /pool1/mydir/d.fits
then enter the following command:
fitsstats @myfile
fitsstats --usage
fitsstats --help
or
fitsstats -h
For example to write the output to a file called foobar.fits, type:
fitsstats --output foobar.fits -- /pool1/mydir/*.fits
or
fitsstats -o foobar.fits -- /pool1/mydir/*.fits
More than one range may be specified
r1,r2,r3
avg|max|median|min|sumFor example, to calculate the minimum of all the files in the directory /pool1/mydir/, type:
fitsstats --Stats min -- /pool1/mydir/*.fits
or
fitsstats -S min -- /pool1/mydir/*.fits
fitsstats --version