Usage of detectNegativeTsys

Return to directory of Todd's CASA extensions

Usage:

detectNegativeTsys(vis='', antenna='', spw='', showfield=False, vm='', pol='', edge=0, timerange='')
Reads the SYSCAL table of the specified ms and searches for negative values of TSYS_SPECTRUM, printing a summary for each row as it finds them.
  • If an antenna is specified (ID or name), then only that antenna will be displayed.
  • If an spw is specified (integer or string), then only that spw will be displayed.
  • If a pol is specifed (integer or string: 0 or 1), then only that polarization will be displayed
  • If showfield=True, it will run ValueMapping (casa < 4.1.0) or use the msmd tool (casa >= 4.1.0) in order to list the field name and scan associated with the row.
    • If vm is not a blank string, it will try to use this structure rather than run ValueMapping (to save time)
  • edge: if non-zero, then this number of channels will be ignored on both edges of each spw
  • timerange is an integer starting at 0, and represents each unique time in the solution.
  • Returns: the value of vm, either a blank string, or a ValueMapping structure if showfield was True (casa < 4.1.0)

Examples:

Here is an example where we restrict the output to one antenna:
CASA <2>: vm=au.detectNegativeTsys('/export/lustre/cbrogan/ALMA_SV_data/Band9_IRAS16293/3.4Calibration/uid___A002_X3d55cb_X90c.ms',antenna='DV05',showfield=T)
Running ValueMapping (because showfield=True)...
Ignoring spectral window [0, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37] because it is WVR related
Row  19 (ant 4=DV05, spw15, scan  4, field=        1924-292), found    1 of  256
Row  68 (ant 4=DV05, spw 9, scan  7, field=            Juno), found  256 of  256
Row  69 (ant 4=DV05, spw11, scan  7, field=            Juno), found  256 of  256
Row  70 (ant 4=DV05, spw13, scan  7, field=            Juno), found  256 of  256
Row  71 (ant 4=DV05, spw15, scan  7, field=            Juno), found  256 of  256
Row 175 (ant 4=DV05, spw15, scan 13, field=        1625-254), found    1 of  256
Row 383 (ant 4=DV05, spw15, scan 23, field=IRAS16293-2422-a), found    1 of  256
Row 435 (ant 4=DV05, spw15, scan 26, field=      nrao530 ph), found    1 of  256
Row 539 (ant 4=DV05, spw15, scan 31, field=      nrao530 ph), found    1 of  256
Row 591 (ant 4=DV05, spw15, scan 33, field=IRAS16293-2422-a), found    1 of  256
Row 643 (ant 4=DV05, spw15, scan 36, field=      nrao530 ph), found    1 of  256
Row 799 (ant 4=DV05, spw15, scan 43, field=IRAS16293-2422-a), found    1 of  256
Row 851 (ant 4=DV05, spw15, scan 46, field=      nrao530 ph), found    1 of  256
Row 903 (ant 4=DV05, spw15, scan 48, field=IRAS16293-2422-a), found    1 of  256
Row 955 (ant 4=DV05, spw15, scan 51, field=      nrao530 ph), found    1 of  256
A total of 1035 negative values encountered.

Here is an example with no restriction on the output
CASA <15>: vm=au.detectNegativeTsys('/export/lustre/cbrogan/ALMA_SV_data/Band9_IRAS16293/3.4Calibration/uid___A002_X3d55cb_X90
c.ms',antenna='',showfield=T)
Running ValueMapping (because showfield=True)...
Ignoring spectral window [0, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37] because it is WVR related
Row  19 (ant 4=DV05, spw15, scan  4, field=        1924-292) found    1 of  256
Row  52 (ant 0=DA41, spw 9, scan  7, field=            Juno) found  256 of  256
Row  53 (ant 0=DA41, spw11, scan  7, field=            Juno) found  256 of  256
Row  54 (ant 0=DA41, spw13, scan  7, field=            Juno) found  256 of  256
Row  55 (ant 0=DA41, spw15, scan  7, field=            Juno) found  256 of  256
Row  56 (ant 1=DA43, spw 9, scan  7, field=            Juno) found  256 of  256
Row  57 (ant 1=DA43, spw11, scan  7, field=            Juno) found  256 of  256
Row  58 (ant 1=DA43, spw13, scan  7, field=            Juno) found  256 of  256
Row  59 (ant 1=DA43, spw15, scan  7, field=            Juno) found  256 of  256
Row  60 (ant 2=DV02, spw 9, scan  7, field=            Juno) found  256 of  256
Row  61 (ant 2=DV02, spw11, scan  7, field=            Juno) found  256 of  256
Row  62 (ant 2=DV02, spw13, scan  7, field=            Juno) found  256 of  256
Row  63 (ant 2=DV02, spw15, scan  7, field=            Juno) found  256 of  256
Row  64 (ant 3=DV03, spw 9, scan  7, field=            Juno) found  256 of  256
Row  65 (ant 3=DV03, spw11, scan  7, field=            Juno) found  256 of  256
Row  66 (ant 3=DV03, spw13, scan  7, field=            Juno) found  256 of  256
Row  67 (ant 3=DV03, spw15, scan  7, field=            Juno) found  256 of  256
Row  68 (ant 4=DV05, spw 9, scan  7, field=            Juno) found  256 of  256
Row  69 (ant 4=DV05, spw11, scan  7, field=            Juno) found  256 of  256
Row  70 (ant 4=DV05, spw13, scan  7, field=            Juno) found  256 of  256
Row  71 (ant 4=DV05, spw15, scan  7, field=            Juno) found  256 of  256
Row  72 (ant 5=DV07, spw 9, scan  7, field=            Juno) found  256 of  256
Row  73 (ant 5=DV07, spw11, scan  7, field=            Juno) found  256 of  256
Row  74 (ant 5=DV07, spw13, scan  7, field=            Juno) found  256 of  256
Row  75 (ant 5=DV07, spw15, scan  7, field=            Juno) found  256 of  256
Row  76 (ant 6=DV09, spw 9, scan  7, field=            Juno) found  256 of  256
Row  77 (ant 6=DV09, spw11, scan  7, field=            Juno) found  256 of  256
Row  78 (ant 6=DV09, spw13, scan  7, field=            Juno) found  256 of  256
Row  79 (ant 6=DV09, spw15, scan  7, field=            Juno) found  256 of  256
Row  80 (ant 7=DV10, spw 9, scan  7, field=            Juno) found  256 of  256
Row  81 (ant 7=DV10, spw11, scan  7, field=            Juno) found  256 of  256
Row  82 (ant 7=DV10, spw13, scan  7, field=            Juno) found  256 of  256
Row  83 (ant 7=DV10, spw15, scan  7, field=            Juno) found  256 of  256
Row  84 (ant 8=DV12, spw 9, scan  7, field=            Juno) found  256 of  256
Row  85 (ant 8=DV12, spw11, scan  7, field=            Juno) found  256 of  256
Row  86 (ant 8=DV12, spw13, scan  7, field=            Juno) found  256 of  256
Row  87 (ant 8=DV12, spw15, scan  7, field=            Juno) found  256 of  256
Row  88 (ant 9=DV13, spw 9, scan  7, field=            Juno) found  256 of  256
Row  89 (ant 9=DV13, spw11, scan  7, field=            Juno) found  256 of  256
Row  90 (ant 9=DV13, spw13, scan  7, field=            Juno) found  256 of  256
Row  91 (ant 9=DV13, spw15, scan  7, field=            Juno) found  256 of  256
Row  92 (ant10=DV14, spw 9, scan  7, field=            Juno) found  256 of  256
Row  93 (ant10=DV14, spw11, scan  7, field=            Juno) found  256 of  256
Row  94 (ant10=DV14, spw13, scan  7, field=            Juno) found  256 of  256
Row  95 (ant10=DV14, spw15, scan  7, field=            Juno) found  256 of  256
Row  96 (ant11=DV15, spw 9, scan  7, field=            Juno) found  256 of  256
Row  97 (ant11=DV15, spw11, scan  7, field=            Juno) found  256 of  256
Row  98 (ant11=DV15, spw13, scan  7, field=            Juno) found  256 of  256
Row  99 (ant11=DV15, spw15, scan  7, field=            Juno) found  256 of  256
Row 100 (ant12=DV17, spw 9, scan  7, field=            Juno) found  256 of  256
Row 101 (ant12=DV17, spw11, scan  7, field=            Juno) found  256 of  256
Row 102 (ant12=DV17, spw13, scan  7, field=            Juno) found  256 of  256
Row 103 (ant12=DV17, spw15, scan  7, field=            Juno) found  256 of  256
Row 175 (ant 4=DV05, spw15, scan 13, field=        1625-254) found    1 of  256
Row 383 (ant 4=DV05, spw15, scan 23, field=IRAS16293-2422-a) found    1 of  256
Row 435 (ant 4=DV05, spw15, scan 26, field=      nrao530 ph) found    1 of  256
Row 539 (ant 4=DV05, spw15, scan 31, field=      nrao530 ph) found    1 of  256
Row 591 (ant 4=DV05, spw15, scan 33, field=IRAS16293-2422-a) found    1 of  256
Row 643 (ant 4=DV05, spw15, scan 36, field=      nrao530 ph) found    1 of  256
Row 799 (ant 4=DV05, spw15, scan 43, field=IRAS16293-2422-a) found    1 of  256
Row 851 (ant 4=DV05, spw15, scan 46, field=      nrao530 ph) found    1 of  256
Row 903 (ant 4=DV05, spw15, scan 48, field=IRAS16293-2422-a) found    1 of  256
Row 955 (ant 4=DV05, spw15, scan 51, field=      nrao530 ph) found    1 of  256
A total of 13323 negative values encountered.

- ToddHunter - 2012-05-26
Topic revision: r4 - 2013-06-09, 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