NRAO Home > CASA > CASA Toolkit Reference Manual
ms.statistics2 - 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

useweights

Use the data weights

allowed:

bool

Default:

false

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:

intent

Scan intents : example : ’*AMPL*,*PHASE*’

allowed:

string

Default:

array

Array Indices or names : example : ’VLAA’

allowed:

string

Default:

obs

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

allowed:

string

Default:

reportingaxes

Statistics reporting axes: example: ’ddid,field’

allowed:

string

Default:

timeaverage

Average data in time

allowed:

bool

Default:

false

timebin

Time averaging interval

allowed:

string

Default:

0s

timespan

Boundaries to ignore in time averaging: example: ’scan,state’

allowed:

string

Default:

maxuvwdistance

Maximum separation of start-to-end baselines that can be included in an average. (meters)

allowed:

double

Default:

0.0

Returns
record

Example

 
 
    ms.open("3C273XC1.MS")  
    ms.statistics2(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