spectraOverlay

Return to directory of Todd's tools

Reads an ASCII spectral profile file produced by the CASA viewer, and overlays the lines in different colors. See also ispecOverlay.

Usage:

tt.spectraOverlay(filename, plotfile=None, linewidth=1, histogram=True, colors=[], names=[], 
               fontsize=13, weight='bold', kelvinPerJy=None, right=0.9, markVelocity=None, 
               xlim=None, ylim=None)
Inputs:
  • filename: ASCII file
  • plotfile: name of file to produce
  • linewidth: passed to pl.plot
  • histogram: if True, draw flat-topped channel spectra
  • colors: a list of colors to use for the spectra (default: 'k','r','b','c')
  • names: a list of names for the legend
  • fontsize: for axis labels and tick marks
  • weight: for axis labels and tick marks
  • kelvinPerJy: if specified, then show the intensity as Kelvin Can be either a list of conversion factors, or a list of image names upon which tt.kelvinPerJansky shall be run.
  • right: passed to pl.subplots_adjust
  • markVelocity: draw a dotted line at the specified velocity
  • xlim: the x-axis limits (e.g. [x0,x1])
  • ylim: the y-axis limits (e.g. [y0,y1])

Example:

CASA <5>: tt.spectraOverlay('absorption.ascii.txt', names=['a','b','c','d'])
Plot left in file =  absorption.ascii.txt.png

absorption.ascii.txt.png

-- ToddHunter - 2015-01-26
Topic revision: r1 - 2015-01-26, 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