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

Functions

def setjy
def setjy_core
def better_glob
def lsmodims
def findCalModels
def nselrows

Function Documentation

def task_setjy.better_glob (   pats)
Unlike ls, glob.glob('pat1 pat2') does not return  
the union of matches to pat1 and pat2.  This does.

Definition at line 224 of file task_setjy.py.

Referenced by lsmodims().

def task_setjy.findCalModels (   target = 'CalModels',
  roots = ['.',
  casa,
  dirs,
  data,
  permexcludes = ['.svn',
  regression,
  ephemerides,
  geodetic,
  gui,
  exts = ['.ms',
  im,
  tab 
)
Returns a set of directories ending in target that are in the trees of roots.

Because casa['dirs']['data'] can contain a lot, and CASA tables are
directories, branches matching permexcludes or exts are excluded for speed.

Definition at line 256 of file task_setjy.py.

Referenced by lsmodims(), and setjy_core().

def task_setjy.lsmodims (   path,
  modpat = '*',
  header = 'Candidate modimages' 
)
Does an ls -d of files or directories in path matching modpat.

Header describes what is being listed.

Definition at line 236 of file task_setjy.py.

References better_glob(), and findCalModels().

Referenced by setjy_core().

def task_setjy.nselrows (   vis,
  field = '',
  spw = '',
  obs = '',
  timerange = '',
  scan = '' 
)

Definition at line 279 of file task_setjy.py.

References taskinit.mstool, and taskinit.tbtool.

Referenced by setjy_core().

def task_setjy.setjy (   vis = None,
  field = None,
  spw = None,
  selectdata = None,
  timerange = None,
  scan = None,
  observation = None,
  modimage = None,
  listmodels = None,
  scalebychan = None,
  fluxdensity = None,
  spix = None,
  reffreq = None,
  standard = None,
  useephemdir = None,
  usescratch = None 
)
Fills the model column for flux density calibrators.

Definition at line 13 of file task_setjy.py.

References taskinit.mstool, setjy_core(), and taskinit.tbtool.

def task_setjy.setjy_core (   vis = None,
  field = None,
  spw = None,
  selectdata = None,
  timerange = None,
  scan = None,
  observation = None,
  modimage = None,
  listmodels = None,
  scalebychan = None,
  fluxdensity = None,
  spix = None,
  reffreq = None,
  standard = None,
  useephemdir = None,
  usescratch = None 
)
Fills the model column for flux density calibrators.

Definition at line 73 of file task_setjy.py.

References findCalModels(), taskinit.imtool, lsmodims(), taskinit.mstool, nselrows(), and taskinit.write_history().

Referenced by setjy().