casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Functions
plotcomp Namespace Reference

Functions

def plotcomp
def mepoch_to_str

Function Documentation

def plotcomp.mepoch_to_str (   mepoch,
  showdate = True,
  showtime = True,
  showmjd = True 
)
Given an epoch as a measure, return it as a nicely formatted string.

Definition at line 252 of file plotcomp.py.

Referenced by plotcomp().

def plotcomp.plotcomp (   compdict,
  showplot = True,
  wantdict = False,
  symb = ',
  include0amp = False,
  include0bl = False,
  blunit = '',
  bl0flux = 0.0 
)
Given a dict including

{'clist': component list,
 'objname': objname,
 'epoch': epoch,
 'shape': component shape dict, including direction.
 'freqs (GHz)': pl.array of frequencies,
 'antennalist': An array configuration file as used by simdata,
 'savedfig': False or, if specified, the filename to save the plot to,
 'standard': setjy fluxstandard type},

and symb: One of matplotlib's codes for plot symbols: .:,o^v<>s+xDd234hH|_
      default: ',':  The smallest points I could find,

make a plot of visibility amplitude vs. baseline length for clist at epoch.

If antennalist is not found as is, it will look for antennalist in
os.getenv('CASAPATH').split(' ')[0] + '/data/alma/simmos/'.

showplot: Whether or not to show the plot on screen.

If wantdict is True, it returns a dictionary with the amplitudes and
baselines on success.  Otherwise, it returns True or False as its estimated
success value.

include0amp: Force the lower limit of the amplitude axis to 0.
include0bl: Force the lower limit of the baseline length axis to 0.
blunit: unit of the baseline length (='' used the unit in the data or klambda)
bl0flux: Zero baseline flux

Definition at line 10 of file plotcomp.py.

References mepoch_to_str(), taskinit.metool, taskinit.smtool, and taskinit.tbtool.