XVista8 manual page

NAME

mn - computes the mean of an image file

SYNOPSIS

mn file [box=] [circle=] [pix=] [nozero]

DESCRIPTION

This routine calculates the mean of the data in file1 (or file.fts) specified in the command line. The operation is performed over the entire file, or as specified optionally in the box or circle parameters. Each data point is used unless the pix parameter causes the data mean to be calculated from every PIX'th pixel.

This program sets to Xvista variables mn and mn_file1 where file1 is the filename specified in the command line. It also sets the variable std_dev to the standard deviation of the file.

The nozero option tells the program to ignore pixels whose value equals zero from the calculation of the mean.

The program puts a line to stdout similar to the following:

mean=10.16 rms=9.89 sum=3169 npixels=312

EXAMPLE

mn alflyr circle=1 - Computes the mean of file alflyr.fts over the region defined by circle number 1.

SYMBOLS

mean, mn_file1, std_dev.