Using plotSBGainFromASDM
Return to directory of Todd's CASA extensions
Plots the sideband gain ratio values from the CalAtmosphere.xml table of the specified ASDM. See also
plotSBGain and
getSBGain.
Usage
CASA <2>: help(au.plotSBGainFromASDM)
Help on function plotSBGainFromASDM in module analysisUtils:
plotSBGainFromASDM(asdm='', pol='', figfile='', verbose=False, antenna='', baseband='', doplot=True, threshold=None, SBR_THRESHOLD_2SB=0.80, SBR_THRESHOLD_DSB=0.25)
Plots the sideband gain ratio values from the SIDEBAND_RATIO entries inthe CalAtmosphere.xml table for the specified ASDM.
pol: 'X', 'Y', or ''=both,only plot this polarization
figfile: name of png file to save, default = asdm + '.sbgain.png'
verbose: print all values of sbGain (very anomalous values are printed regardless)
antenna: restrict the verbose printing to one specified antenna name
baseband: restrict the verbose printing to one specified baseband number (1..4)
doplot: set to False to turn off the plot GUI and the generation of a png file
threshold: the upper limit criterion to use to declare an SBR ratio as suspect, regardless of the setting of SBR_THRESHOLD_2SB and SBR_THRESHOLD_DSB
SBR_THRESHOLD_2SB: the upper limit criterion to use for 2SB receivers to declare an SBR ratio as suspect
SBR_THRESHOLD_DSB: the upper limit criterion to use for DSB receivers to declare an SBR ratio as suspect
Example
CASA <3>: au.plotSBGainFromASDM('/export/lustre/cbrogan/ALMA_SV_data/Band9_IRAS16293/uid___A002_X3d55cb_Xb50',figfile='/users/thunter/Xb50.png')
Found 1176 rows in CalAtmosphere.xml
Median for Pol X = 0.522719/0.477281 = -3.212254 dB
Minimum for Pol X = 0.380311/0.619689 = -2.078264 dB
Maximum for Pol X = 0.570729/0.429271 = -3.672683 dB
Median for Pol Y = 0.513634/0.486366 = -3.130370 dB
Minimum for Pol Y = 0.447140/0.552860 = -2.573848 dB
Maximum for Pol Y = 0.614011/0.385989 = -4.134253 dB
--
ToddHunter - 2012-04-30