Usage for scaleweights
Return to directory of Todd's CASA extensions
This function will scale all of the data weights in a specified ms. See also
resetweights,
copyweights and
scaleWeightSpectrum.
Usage:
au.scaleweights(msfile, wtfac=1.0, antenna='', square=False, squareroot=False, spw='')
- wtfac = multiplicative weight factor
- antenna = restrict scaling to baselines including this single antenna ID (int or string)
- square = Boolean, if True, then square the weights (ignoring wtfac)
- squareroot = Boolean, if True, then take the square root of the weights (ignoring wtfac)
- spw = integer or string or list of spws to process (default = '' which means all)
Created S.T. Myers 2011-08-23 v1.0 from flagaverage.py (CAS-2422)
Example:
CASA <2>: au.scaleweights('uid___A002_X3fdb4f_X463_copy.ms',wtfac=2,antenna=0)
Will scale weights by a factor of 2
Found 13 DataDescription IDs
Scaled 2146 spectral points in 34336 rows in DD=0
Scaled 2400 spectral points in 10200 rows in DD=1
Scaled 4800 spectral points in 20400 rows in DD=2
Scaled 2400 spectral points in 10200 rows in DD=3
Scaled 4800 spectral points in 20400 rows in DD=4
Scaled 2400 spectral points in 10200 rows in DD=5
Scaled 4800 spectral points in 20400 rows in DD=6
Scaled 2400 spectral points in 10200 rows in DD=7
Scaled 4800 spectral points in 20400 rows in DD=8
Scaled 36768 spectral points in 156264 rows in DD=9
Scaled 73536 spectral points in 312528 rows in DD=10
Scaled 36768 spectral points in 156264 rows in DD=11
Scaled 73536 spectral points in 312528 rows in DD=12
Scaled Total 251554 spectral points in 1094320 rows
--
ToddHunter - 2012-01-22