NRAO Home > CASA > CASA Toolkit Reference Manual
ms.statistics - Function

1.3.1 Get statistics on the selected measurement set


Description

This function computes descriptive statistics on the measurement set. It returns the statistical values as a python dictionary. The given column name must be a numerical column. If it is a complex valued column, the parameter complex_value defines which derived real value is used for the statistics computation.

Arguments





Inputs

column

Column name

allowed:

string

Default:

complex_value

Which derived value to use for complex columns (amp, amplitude, phase, imag, real, imaginary)

allowed:

string

Default:

useflags

Use the data flags

allowed:

bool

Default:

true

spw

Spectral Window Indices or names : example : ’1,2’

allowed:

string

Default:

field

Field indices or source names : example : ’2,3C48’

allowed:

string

Default:

baseline

Baseline number(s): example: ”2&3;4&5”

allowed:

string

Default:

uvrange

UV-distance range, with a unit : example : ’2.0-3000.0 m’

allowed:

string

Default:

time

Time range, as MJDs or date strings : example : ’xx.x.x.x.x~yy.y.y.y.y’

allowed:

string

Default:

correlation

Correlations/polarizations : example : ’RR,LL,RL,LR,XX,YY,XY,YX’

allowed:

string

Default:

scan

Scan number : example : ’1,2,3’

allowed:

string

Default:

array

Array Indices or names : example : ’VLAA’

allowed:

string

Default:

obs

Observation ID(s): examples : ” or ’1~3’

allowed:

string

Default:

Returns
record

Example

 
 
 
      ms.open("3C273XC1.MS")  
      ms.statistics(column="DATA", complex_value=’amp’, field="2")  
 

__________________________________________________________________


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