plotBaselinesSorted

Return to directory of Todd's CASA extensions

Runs plotms for every baseline, sorts by baseline and compiles into a PDF with shortest baseline on the first page.

Usage:

au. plotBaselinesSorted(vis, plotfile, spw, scan='', xaxis='freq', yaxis='phase', 
              correlation='XX', antenna='0&*', title='', iteraxis='baseline', overwrite=True, 
              avgtime='', avgscan=False, plotrange=[0, 0, -180, 180], pdfname='', 
              maxrows=4, field='', debug=False, customflaggedsymbol=False, 
              showgui=False, flaggedsymbolshape='nosymbol', avgchannel='128')
Inputs:
  • antenna: if set to '', then all baselines will be plotted
  • scan: can be a single scan number, an integer list of scans, or a comma-delimited string (passed directly to plotms)
  • overwrite: if True, then re-create an image if it already exists
  • maxplots: maximum number of PNGs to create
  • maxpages: maximum number of pages in the PDF to produce
  • sort: if True, then sort by baseline length
  • avgchannel, avgtime, avgscan, xaxis, yaxis, correlation, title, iteraxis, plotrange: passed to plotms
  • field: the field parameter to pass to plotms (string name or ID)
  • projected: if True, then use the projected baseline length of the (first) specified field

Example:

CASA <2>: au.plotBaselinesSorted('uid___A002_X99c183_X25b6.ms.split',antenna=1,spw=0,plotfile='test',field=0)                                                                             
antennaList =  [1]                                                                           
Using scan 4 to get baseline lengths                                                         
Found 595 baselines                                                                          
Projected lengths toward the source:  min=13.623815, max=319.575359, rms=112.245114 meters   
Starting antenna DA42 (1 of 1)                                                               
Running plotms('uid___A002_X99c183_X25b6.ms.split', spw='0', xaxis='freq', yaxis='phase', correlation='XX', antenna='01&00', plotrange=[0, 0, -180, 180], title='DA42_with_DA41 (149m) XX pol', scan='', plotfile='test_DA42_with_DA41.png', field='0', customflaggedsymbol=False, overwrite=True, showgui=False, flaggedsymbolshape='nosymbol', avgchannel='128', coloraxis='', ydatacolumn='', avgtime='', avgscan=False)   
Pruned list =  ['test_DA42_with_DV22.png', 'test_DA42_with_DV25.png', 'test_DA42_with_DA51.png', 'test_DA42_with_DV16.png', 'test_DA42_with_DA57.png', 'test_DA42_with_DA60.png', 'test_DA42_with_DV06.png', 'test_DA42_with_DA52.png', 'test_DA42_with_DV21.png', 'test_DA42_with_DV18.png', 'test_DA42_with_DA63.png', 'test_DA42_with_DA59.png', 'test_DA42_with_DA62.png', 'test_DA42_with_DA54.png', 'test_DA42_with_DV02.png', 'test_DA42_with_DV12.png', 'test_DA42_with_DA43.png', 'test_DA42_with_DV04.png', 'test_DA42_with_DA45.png', 'test_DA42_with_DA47.png', 'test_DA42_with_DV20.png', 'test_DA42_with_DV10.png', 'test_DA42_with_DA49.png', 'test_DA42_with_DV09.png', 'test_DA42_with_DV07.png', 'test_DA42_with_DV13.png', 'test_DA42_with_DV15.png', 'test_DA42_with_DV08.png', 'test_DA42_with_DA55.png', 'test_DA42_with_DA46.png', 'test_DA42_with_DV05.png', 'test_DA42_with_DA41.png', 'test_DA42_with_DA44.png', 'test_DA42_with_DA61.png']
Running command =  convert test_DA42_with_DV22.png test_DA42_with_DV22.png.pdf
Running command =  convert test_DA42_with_DV25.png test_DA42_with_DV25.png.pdf               
Running command =  convert test_DA42_with_DA51.png test_DA42_with_DA51.png.pdf               
Running command =  convert test_DA42_with_DV16.png test_DA42_with_DV16.png.pdf               
Running command =  convert test_DA42_with_DA57.png test_DA42_with_DA57.png.pdf               
Running command =  convert test_DA42_with_DA60.png test_DA42_with_DA60.png.pdf               
Running command =  convert test_DA42_with_DV06.png test_DA42_with_DV06.png.pdf               
Running command =  convert test_DA42_with_DA52.png test_DA42_with_DA52.png.pdf               
Running command =  convert test_DA42_with_DV21.png test_DA42_with_DV21.png.pdf               
Running command =  convert test_DA42_with_DV18.png test_DA42_with_DV18.png.pdf               
Running command =  convert test_DA42_with_DA63.png test_DA42_with_DA63.png.pdf               
Running command =  convert test_DA42_with_DA59.png test_DA42_with_DA59.png.pdf               
Running command =  convert test_DA42_with_DA62.png test_DA42_with_DA62.png.pdf               
Running command =  convert test_DA42_with_DA54.png test_DA42_with_DA54.png.pdf               
Running command =  convert test_DA42_with_DV02.png test_DA42_with_DV02.png.pdf               
Running command =  convert test_DA42_with_DV12.png test_DA42_with_DV12.png.pdf               
Running command =  convert test_DA42_with_DA43.png test_DA42_with_DA43.png.pdf               
Running command =  convert test_DA42_with_DV04.png test_DA42_with_DV04.png.pdf               
Running command =  convert test_DA42_with_DA45.png test_DA42_with_DA45.png.pdf               
Running command =  convert test_DA42_with_DA47.png test_DA42_with_DA47.png.pdf               
Running command =  convert test_DA42_with_DV20.png test_DA42_with_DV20.png.pdf               
Running command =  convert test_DA42_with_DV10.png test_DA42_with_DV10.png.pdf               
Running command =  convert test_DA42_with_DA49.png test_DA42_with_DA49.png.pdf
Running command =  convert test_DA42_with_DV09.png test_DA42_with_DV09.png.pdf
Running command =  convert test_DA42_with_DV07.png test_DA42_with_DV07.png.pdf
Running command =  convert test_DA42_with_DV13.png test_DA42_with_DV13.png.pdf
Running command =  convert test_DA42_with_DV15.png test_DA42_with_DV15.png.pdf
Running command =  convert test_DA42_with_DV08.png test_DA42_with_DV08.png.pdf
Running command =  convert test_DA42_with_DA55.png test_DA42_with_DA55.png.pdf
Running command =  convert test_DA42_with_DA46.png test_DA42_with_DA46.png.pdf
Running command =  convert test_DA42_with_DV05.png test_DA42_with_DV05.png.pdf
Running command =  convert test_DA42_with_DA41.png test_DA42_with_DA41.png.pdf
Running command =  convert test_DA42_with_DA44.png test_DA42_with_DA44.png.pdf
Running command =  convert test_DA42_with_DA61.png test_DA42_with_DA61.png.pdf
Checking if I have write privilege on ..
Running command = pdftk test_DA42_with_DV22.png.pdf test_DA42_with_DV25.png.pdf test_DA42_with_DA51.png.pdf test_DA42_with_DV16.png.pdf test_DA42_with_DA57.png.pdf test_DA42_with_DA60.png.pdf test_DA42_with_DV06.png.pdf test_DA42_with_DA52.png.pdf test_DA42_with_DV21.png.pdf test_DA42_with_DV18.png.pdf test_DA42_with_DA63.png.pdf test_DA42_with_DA59.png.pdf test_DA42_with_DA62.png.pdf test_DA42_with_DA54.png.pdf test_DA42_with_DV02.png.pdf test_DA42_with_DV12.png.pdf test_DA42_with_DA43.png.pdf test_DA42_with_DV04.png.pdf test_DA42_with_DA45.png.pdf test_DA42_with_DA47.png.pdf test_DA42_with_DV20.png.pdf test_DA42_with_DV10.png.pdf test_DA42_with_DA49.png.pdf test_DA42_with_DV09.png.pdf test_DA42_with_DV07.png.pdf test_DA42_with_DV13.png.pdf test_DA42_with_DV15.png.pdf test_DA42_with_DV08.png.pdf test_DA42_with_DA55.png.pdf test_DA42_with_DA46.png.pdf test_DA42_with_DV05.png.pdf test_DA42_with_DA41.png.pdf test_DA42_with_DA44.png.pdf test_DA42_with_DA61.png.pdf  cat output ./uid___A002_X99c183_X25b6.ms.split.DA42withAll.scan.baselines_phases.pdf                                                       
PDF left in ./uid___A002_X99c183_X25b6.ms.split.DA42withAll.scan.baselines_phases.pdf

-- ToddHunter - 2015-07-16
Topic revision: r3 - 2015-12-31, 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