resetVisibilities

Return to directory of Todd's CASA extensions

Set all visibilities to a single user-supplied value.

Usage:

au.resetVisibilities(vis, newval=1.0, spw='')
Inputs:
  • vis: name of measurement set
  • newval = real or complex value
  • spw: integer or string or list of spws to process (default is all)

Example:

CASA <2>: au.resetVisibilities('uid___A002_X93514d_X220.ms.split',spw='0')
Will set data to 1.0
Found 4 DataDescription IDs
Will process spws =  [0]
Working on spw 0
shape =  (2, 128, 320110)
Set 81948160 spectral points in 2 pols in 128 channels in DD=0
Set 81948160 spectral points in 2 pols in 128 channels in DD=1
Set 81948160 spectral points in 2 pols in 128 channels in DD=2
Set 81948160 spectral points in 2 pols in 128 channels in DD=3
Set Total 327792640 spectral points in 512 channels

-- ToddHunter - 2014-11-12
Topic revision: r1 - 2014-11-12, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback