NRAO Home > CASA > CASA Toolkit Reference Manual
sd.scantable.stats - Function

5.1.2 Compute specified statistics of the spectra
Description

Determine the specified statistic of the current beam/if/pol Takes a ’mask’ as an optional parameter to specify which channels should be excluded.

Available statistics are ’min’, ’max’, ’min_abc’, ’max_abc’, ’sumsq’, ’sum’, ’mean’, ’var’, ’stddev’, ’avdev’, ’rms’, ’median’.

Arguments





Inputs

stat

Statistics to be calculated

allowed:

string

Default:

’stddev’

mask

An optional mask specifying where the statistic should be determined

allowed:

bool array

Default:

None

form

Format string to print statistic values

allowed:

string

Default:

’3.3f’

row

Row number of spectrum to process

allowed:

integer

Default:

None (all rows)





Returns
float array

Example

        scan = sd.scantable(’OrionS_rawACSmod_cal’)  
        scan.set_unit(’channel’)  
        msk = scan.create_mask([100, 200], [500, 600])  
        scan.stats(stat=’mean’, mask=m)


More information about CASA may be found at the CASA web page

Copyright 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search