Usage of resetweights
Return to directory of Todd's CASA extensions
Reset weights to a fixed value. Ported from
scaleweights, which was originally written by Steve Myers. See also
copyweights.
Usage
au.resetweights(msfile, wtval=1.0, spw='')
- msfile: name of the measurement set
- wtval: The new value to set all the weights to.
- spw: spws to process, as an integer or comma-delimited string or integer list
Example:
CASA <2>: au.resetweights('uid___A002_X8113a9_X370.ms',spw='!0')
Will set weights to 1.0
Found 25 DataDescription IDs
Will process spws = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]
Set 1440 spectral points in 720 rows in DD=1
Set 1440 spectral points in 720 rows in DD=2
Set 1440 spectral points in 720 rows in DD=3
Set 1440 spectral points in 720 rows in DD=4
Set 1440 spectral points in 720 rows in DD=5
Set 1440 spectral points in 720 rows in DD=6
Set 1440 spectral points in 720 rows in DD=7
Set 1440 spectral points in 720 rows in DD=8
Set 2808 spectral points in 1404 rows in DD=9
Set 2808 spectral points in 1404 rows in DD=10
Set 2808 spectral points in 1404 rows in DD=11
Set 2808 spectral points in 1404 rows in DD=12
Set 2808 spectral points in 1404 rows in DD=13
Set 2808 spectral points in 1404 rows in DD=14
Set 2808 spectral points in 1404 rows in DD=15
Set 2808 spectral points in 1404 rows in DD=16
Set 20298 spectral points in 10149 rows in DD=17
Set 20514 spectral points in 10257 rows in DD=18
Set 20298 spectral points in 10149 rows in DD=19
Set 20514 spectral points in 10257 rows in DD=20
Set 20298 spectral points in 10149 rows in DD=21
Set 20514 spectral points in 10257 rows in DD=22
Set 20298 spectral points in 10149 rows in DD=23
Set 20514 spectral points in 10257 rows in DD=24
Set Total 197232 spectral points in 98616 rows
--
ToddHunter - 2012-05-22