casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
parallel.parallel_cont.imagecont Class Reference

List of all members.

Public Member Functions

def __init__
def setextraoptions
def setparamcont
def imagecontmultims
def getweightgrid
 uniform and brigg's weight combination functions
def setweightgrid
def getftweight
def imagecont
def imagecontbychan
 imname=imname+'_%02d'%(j)
def cleancont
def imagechan
def imagechan_selfselect
 need to clean up here the channel image...will do after testing phase
def imagechan_new
def cleanupcubeimages
def cleanupimages
def cleanupmodelimages
def cleanupresidualimages
def cleanuprestoredimages
def makecontimage
def makemtcontimage

Static Public Member Functions

def getallchanmodel
def getchanimage
def concatimages
def putchanimage
def putchanimage2
 ia.insert(infile=inim[k], locate=blc)
def makemask
def findchanselLSRK

Public Attributes

 im
 imperms
 dc
 ft
 origms
 either psf 0 or no channel selected
 wprojplanes
 facets
 pixels
 cell
 spw
 field
 phCen
 weight
 imageparamset
 make blanks
 weightnpix
 stokes
 numthreads
 imagetilevol
 visInMem
 painc
 pblimit
 dopbcorr
 cyclefactor
 novaliddata
 either psf 0 or no channel selected
 applyoffsets
 cfcache
 epjtablename
 gain
 uvtaper
 outertaper
 timerange
 uvrange
 baselines
 scan
 observation
 pbcorr
 minpb

Static Public Attributes

 robust
tuple majcycle
list bmin
string fluxscaleimage
string alg
 non simple ft machine...should use mf
tuple retval
tuple modshape
int endchan
list endchan
list blc
list trc
tuple sbim
tuple rg0

Detailed Description

Definition at line 8 of file parallel_cont.py.


Constructor & Destructor Documentation

def parallel.parallel_cont.imagecont.__init__ (   self,
  ftmachine = 'ft',
  wprojplanes = 10,
  facets = 1,
  pixels = [3600,
  cell = ['3arcsec',
  arcsec,
  spw = '',
  field = '',
  phasecenter = '',
  weight = 'natural',
  robust = 0.0,
  stokes = 'I',
  npixels = 0,
  uvtaper = False,
  outertaper = [],
  timerange = '',
  uvrange = '',
  baselines = '',
  scan = '',
  observation = '',
  gain = 0.1,
  numthreads = -1,
  pbcorr = False,
  minpb = 0.2,
  cyclefactor = 1.5 
)

Definition at line 9 of file parallel_cont.py.

def parallel.parallel_cont.imagecont.imagecont (   self,
  msname = 'spw00_4chan351rowTile.ms',
  start = [0],
  numchan = [-1],
  spw = '',
  field = 0,
  freq = '1.20GHz',
  band = '200MHz',
  imname = 'newmodel',
  nterms = 1,
  scales = [0] 
)

Member Function Documentation

def parallel.parallel_cont.imagecont.cleancont (   self,
  niter = 100,
  alg = 'clark',
  thr = '0.0mJy',
  psf = 'newmodel.psf',
  dirty = 'newmodel.dirty',
  model = 'newmodel.model',
  mask = '',
  scales = [0] 
)

Definition at line 264 of file parallel_cont.py.

References parallel.parallel_cont.imagecont.gain.

def parallel.parallel_cont.imagecont.cleanupcubeimages (   self,
  readyputchan,
  doneputchan,
  imagename,
  nchanchunk,
  chanchunk 
)
This function will put the True values of readyputchan into the final cubes and set the doneputchan to True
Confused ..read the code 

Definition at line 451 of file parallel_cont.py.

References parallel.parallel_cont.imagecont.putchanimage(), and cleanhelper.cleanhelper.putchanimage().

def parallel.parallel_cont.imagecont.cleanupimages (   self,
  readyputchan,
  imagename,
  nchanchunk,
  chanchunk,
  removefile = True 
)
def parallel.parallel_cont.imagecont.cleanupmodelimages (   self,
  readyputchan,
  imagename,
  nchanchunk,
  chanchunk,
  removefile = True 
)
This function will put model images only 

Definition at line 468 of file parallel_cont.py.

References parallel.parallel_cont.imagecont.putchanimage(), and cleanhelper.cleanhelper.putchanimage().

Referenced by parallel.parallel_cont.imagecont.cleanupimages().

def parallel.parallel_cont.imagecont.cleanupresidualimages (   self,
  readyputchan,
  imagename,
  nchanchunk,
  chanchunk,
  removefile = True 
)
This function will put residual images only 

Definition at line 475 of file parallel_cont.py.

References parallel.parallel_cont.imagecont.putchanimage(), and cleanhelper.cleanhelper.putchanimage().

Referenced by parallel.parallel_cont.imagecont.cleanupimages().

def parallel.parallel_cont.imagecont.cleanuprestoredimages (   self,
  readyputchan,
  imagename,
  nchanchunk,
  chanchunk,
  removefile = True 
)
This function will put residual images only 

Definition at line 483 of file parallel_cont.py.

References parallel.parallel_cont.imagecont.putchanimage(), and cleanhelper.cleanhelper.putchanimage().

Referenced by parallel.parallel_cont.imagecont.cleanupimages().

def parallel.parallel_cont.imagecont.concatimages (   cubeimage,
  inim,
  csys = None,
  removeinfile = True 
) [static]

Definition at line 492 of file parallel_cont.py.

def parallel.parallel_cont.imagecont.findchanselLSRK (   msname = '',
  field = '*',
  spw = '*',
  numpartition = 1,
  beginfreq = 0.0,
  endfreq = 1e12,
  chanwidth = 0.0 
) [static]
def parallel.parallel_cont.imagecont.getallchanmodel (   inimage,
  chanchunk = 1 
) [static]

Definition at line 408 of file parallel_cont.py.

def parallel.parallel_cont.imagecont.getchanimage (   inimage,
  outimage,
  chan,
  nchan = 1 
) [static]
create a slice of channels image from cubeimage

Definition at line 429 of file parallel_cont.py.

Referenced by parallel.parallel_cont.imagecont.imagechan_new().

def parallel.parallel_cont.imagecont.getftweight (   self,
  msname = '',
  wgtimage = [''] 
)
def parallel.parallel_cont.imagecont.getweightgrid (   self,
  msname = '',
  wgttype = 'imaging' 
)

uniform and brigg's weight combination functions

Definition at line 110 of file parallel_cont.py.

References parallel.parallel_cont.imagecont.imperms, and parallel.parallel_cont.imagecont.novaliddata.

Referenced by parallel.parallel_cont.imagecont.getftweight().

def parallel.parallel_cont.imagecont.imagechan (   self,
  msname = 'spw00_4chan351rowTile.ms',
  start = 0,
  numchan = 1,
  spw = 0,
  field = 0,
  imroot = 'newmodel',
  imchan = 0,
  niter = 100,
  alg = 'clark',
  thr = '0.0mJy',
  mask = '',
  majcycle = 1,
  scales = [0],
  fstart = '1GHz',
  width = '10MHz',
  chanchunk = 1 
)
def parallel.parallel_cont.imagecont.imagechan_new (   self,
  msname = 'spw00_4chan351rowTile.ms',
  start = 0,
  numchan = 1,
  spw = 0,
  field = 0,
  cubeim = 'imagecube',
  imroot = 'newmodel',
  imchan = 0,
  chanchunk = 1,
  niter = 100,
  alg = 'clark',
  thr = '0.0mJy',
  mask = '',
  majcycle = 1,
  scales = [0] 
)
def parallel.parallel_cont.imagecont.imagechan_selfselect (   self,
  msname = 'spw00_4chan351rowTile.ms',
  spwids = [0],
  field = 0,
  imroot = 'newmodel',
  imchan = 0,
  niter = 100,
  alg = 'clark',
  thr = '0.0mJy',
  mask = '',
  majcycle = 1,
  scales = [0],
  chanchunk = 1,
  startchan = 0 
)
def parallel.parallel_cont.imagecont.imagecontbychan (   self,
  msname = 'spw00_4chan351rowTile.ms',
  start = [0],
  numchan = [1],
  spw = [0],
  field = 0,
  freq = '1.20GHz',
  band = '200MHz',
  imname = 'newmodel' 
)
def parallel.parallel_cont.imagecont.imagecontmultims (   self,
  msnames = [''],
  start = 0,
  numchan = 1,
  spw = 0,
  field = 0,
  freq = '1.20GHz',
  band = '200MHz',
  imname = 'newmodel' 
)
def parallel.parallel_cont.imagecont.makecontimage (   self,
  im,
  novaliddata,
  imname 
)
def parallel.parallel_cont.imagecont.makemask (   inmask = '',
  outmask = '',
  imchan = 0,
  chanchunk = 1,
  startchan = -1 
) [static]
def parallel.parallel_cont.imagecont.makemtcontimage (   self,
  im,
  imname,
  nterms,
  scales,
  reffreq 
)
def parallel.parallel_cont.imagecont.putchanimage (   cubimage,
  inim,
  chans,
  removeinfile = True 
) [static]
def parallel.parallel_cont.imagecont.putchanimage2 (   cubimage,
  inim,
  chans,
  notprocesschan,
  removeinfile = True 
) [static]

ia.insert(infile=inim[k], locate=blc)

put channels image back to a pre-exisiting cubeimage 

Definition at line 588 of file parallel_cont.py.

References taskinit.gentools(), and irc_cs_task_regression.max.

def parallel.parallel_cont.imagecont.setextraoptions (   self,
  im,
  cyclefactor = 1.5,
  fluxscaleimage = '',
  scaletype = 'SAULT' 
)
def parallel.parallel_cont.imagecont.setparamcont (   self,
  im,
  freq,
  band,
  singleprec = False 
)
def parallel.parallel_cont.imagecont.setweightgrid (   self,
  msname = '',
  weight = [],
  wgttype = 'imaging' 
)

Member Data Documentation

non simple ft machine...should use mf

Definition at line 357 of file parallel_cont.py.

Definition at line 442 of file parallel_cont.py.

Definition at line 345 of file parallel_cont.py.

Definition at line 36 of file parallel_cont.py.

Definition at line 12 of file parallel_cont.py.

Definition at line 439 of file parallel_cont.py.

Definition at line 441 of file parallel_cont.py.

Definition at line 40 of file parallel_cont.py.

Definition at line 352 of file parallel_cont.py.

Definition at line 298 of file parallel_cont.py.

Definition at line 50 of file parallel_cont.py.

Referenced by parallel.parallel_cont.imagecont.setextraoptions().

Definition at line 435 of file parallel_cont.py.

either psf 0 or no channel selected

Definition at line 14 of file parallel_cont.py.

Referenced by parallel.parallel_cont.imagecont.imagecont().

Definition at line 49 of file parallel_cont.py.

Referenced by parallel.parallel_cont.imagecont.setextraoptions().

Definition at line 361 of file parallel_cont.py.

Definition at line 571 of file parallel_cont.py.

Definition at line 444 of file parallel_cont.py.

Definition at line 443 of file parallel_cont.py.


The documentation for this class was generated from the following file: