casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
casa::Imager Class Reference

Class that contains functions needed for imager. More...

#include <Imager.h>

Inheritance diagram for casa::Imager:
casa::ImagerMultiMS

List of all members.

Public Member Functions

 Imager ()
 Default constructor.
 Imager (MeasurementSet &ms, Bool compress=False, Bool useModel=False)
 Imager (MeasurementSet &ms, Bool compress=False)
 Imager (const Imager &)
 Copy constructor and assignment operator.
Imageroperator= (const Imager &)
virtual ~Imager ()
 Destructor.
virtual Bool openSubTables ()
 open all the subtables as userNoReadLock
virtual Bool lock ()
 Lock the ms and its subtables.
virtual Bool unlock ()
 Unlock the ms and its subtables.
Bool selectDataChannel (Vector< Int > &spectralwindowids, String &dataMode, Vector< Int > &dataNchan, Vector< Int > &dataStart, Vector< Int > &dataStep, MRadialVelocity &mDataStart, MRadialVelocity &mDataStep)
 Utility function to do channel selection.
virtual Bool checkCoord (const CoordinateSystem &coordsys, const String &imageName)
 Utility function to check coordinate match with existing image.
virtual void setImageParam (Int &nx, Int &ny, Int &npol, Int &nchan)
virtual void makeVisSet (MeasurementSet &ms, Bool compress=False, Bool mosaicOrder=False)
 VisSet and resort.
virtual void writeHistory (LogIO &os)
 Just to create the SORTED_TABLE if one can virtual void makeVisSet(MeasurementSet& ms, Bool compress=False, Bool mosaicOrder=False);.
virtual void writeCommand (LogIO &os)
Bool makeEmptyImage (CoordinateSystem &imageCoord, String &name, Int fieldID=0)
 make an empty image
Bool makePBImage (ImageInterface< Float > &pbImage, Bool useSymmetricBeam=True)
 Functions to make Primary beams.
Bool makePBImage (const CoordinateSystem &imageCoord, const String &telescopeName, const String &diskPBName, Bool useSymmetricBeam=True, Double dishdiam=-1.0)
Bool makePBImage (const CoordinateSystem &imageCoord, const Table &vpTable, const String &diskPBName)
Bool makePBImage (const Table &vpTable, ImageInterface< Float > &pbImage)
Bool makePBImage (const CoordinateSystem &imageCoord, PBMath &pbMath, const String &diskPBName)
Bool makePBImage (PBMath &pbMath, ImageInterface< Float > &pbImage)
void setObsInfo (ObsInfo &obsinfo)
ObsInfolatestObsInfo ()
Bool open (MeasurementSet &thems, Bool compress=False, Bool useModel=False)
 Close the current ms, and replace it with the supplied ms.
Bool close ()
 Flush the ms to disk and detach from the ms file.
String name () const
 Return the name of the MeasurementSet.
virtual Bool setimage (const Int nx, const Int ny, const Quantity &cellx, const Quantity &celly, const String &stokes, Bool doShift, const MDirection &phaseCenter, const Quantity &shiftx, const Quantity &shifty, const String &mode, const Int nchan, const Int start, const Int step, const MRadialVelocity &mStart, const MRadialVelocity &mStep, const Vector< Int > &spectralwindowids, const Int fieldid, const Int facets, const Quantity &distance)
 The following setup methods define the state of the imager.
virtual Bool defineImage (const Int nx, const Int ny, const Quantity &cellx, const Quantity &celly, const String &stokes, const MDirection &phaseCenter, const Int fieldid, const String &mode, const Int nchan, const Int start, const Int step, const MFrequency &mFreqStart, const MRadialVelocity &mStart, const Quantity &qStep, const Vector< Int > &spectralwindowids, const Int facets=1, const Quantity &restFreq=Quantity(0,"Hz"), const MFrequency::Types &mFreqFrame=MFrequency::LSRK, const Quantity &distance=Quantity(0,"m"), const Bool trackSource=False, const MDirection &trackDir=MDirection(Quantity(0.0,"deg"), Quantity(90.0,"deg")))
virtual Bool setDataPerMS (const String &msname, const String &mode, const Vector< Int > &nchan, const Vector< Int > &start, const Vector< Int > &step, const Vector< Int > &spectralwindowids, const Vector< Int > &fieldid, const String &msSelect="", const String &timerng="", const String &fieldnames="", const Vector< Int > &antIndex=Vector< Int >(), const String &antnames="", const String &spwstring="", const String &uvdist="", const String &scan="", const String &obs="", const Bool useModelCol=False, const Bool readonly=False)
 Set the data selection parameters.
Bool setdata (const String &mode, const Vector< Int > &nchan, const Vector< Int > &start, const Vector< Int > &step, const MRadialVelocity &mStart, const MRadialVelocity &mStep, const Vector< Int > &spectralwindowids, const Vector< Int > &fieldid, const String &msSelect="", const String &timerng="", const String &fieldnames="", const Vector< Int > &antIndex=Vector< Int >(), const String &antnames="", const String &spwstring="", const String &uvdist="", const String &scan="", const String &obs="", const Bool usemodelCol=False, const Bool be_calm=false)
 Select some data.
Bool setoptions (const String &ftmachine, const Long cache, const Int tile, const String &gridfunction, const MPosition &mLocation, const Float padding, const Int wprojplanes=1, const String &epJTableName="", const Bool applyPointingOffsets=True, const Bool doPointingCorrection=True, const String &cfCacheDirName="", const Float &rotpastep=5.0, const Float &computepastep=360.0, const Float &pbLimit=5.0e-2, const String &freqinterpmethod="linear", const Int imageTileSizeInPix=0, const Bool singleprecisiononly=False, const Int numthreads=-1, const Bool psTermOn=True, const Bool aTermOn=True, const Bool mTermOn=False, const Bool wbAWP=False, const Bool conjBeams=True)
 Set the processing options.
Bool setsdoptions (const Float scale, const Float weight, const Int convsupport=-1, String pointingColToUse="DIRECTION", const Quantity truncate=Quantity(), const Quantity gwidth=Quantity(), const Quantity jwidth=Quantity())
 Set the single dish processing options.
Bool setvp (const Bool dovp, const Bool defaultVP, const String &vpTable, const Bool doSquint, const Quantity &parAngleInc, const Quantity &skyPosThreshold, String defaultTel="", const Bool verbose=true)
 Set the voltage pattern.
Bool setscales (const String &scaleMethod, const Int inscales, const Vector< Float > &userScaleSizes)
 Set the scales to be searched in Multi Scale clean.
Bool setSmallScaleBias (const Float inbias)
 set bias
Bool settaylorterms (const Int intaylor, const Double inreffreq)
 Set the number of taylor series terms in the expansion of the image as a function of frequency.
Bool advise (const Bool takeAdvice, const Float amplitudeloss, const Quantity &fieldOfView, Quantity &cell, Int &npixels, Int &facets, MDirection &phaseCenter)
 Advise on suitable values.
Bool summary ()
 Output a summary of the state of the object.
String state ()
 Return the state of the object as a string.
uInt count_visibilities (ROVisibilityIterator *rvi, const Bool unflagged_only, const Bool must_have_imwt)
 Return the # of visibilities accessible to *rvi, optionally excluding flagged ones (if unflagged_only is true) and/or ones without imaging weights (if must_have_imwt is true).
Bool imagecoordinates (CoordinateSystem &coordInfo, const Bool verbose=true)
 Return the image coordinates.
Bool imagecoordinates2 (CoordinateSystem &coordInfo, const Bool verbose=true)
 new version
IPosition imageshape () const
 Return the image shape.
Bool weight (const String &algorithm, const String &rmode, const Quantity &noise, const Double robust, const Quantity &fieldofview, const Int npixels, const Bool multiField=False)
 Weight the MeasurementSet For some time of weighting briggs/uniform ...one can do it on a per field basis to calculate weight density distribution.
Bool filter (const String &type, const Quantity &bmaj, const Quantity &bmin, const Quantity &bpa)
 Filter the MeasurementSet.
Bool uvrange (const Double &uvmin, const Double &uvmax)
 Apply a uvrange.
Bool sensitivity (Quantity &pointsourcesens, Double &relativesens, Double &sumwt, Matrix< Int > &mssChanSel, Vector< Vector< Int > > &nData, Vector< Vector< Double > > &sumwtChan, Vector< Vector< Double > > &sumwtsqChan, Vector< Vector< Double > > &sumInverseVarianceChan)
 Sensitivity.
Bool makeimage (const String &type, const String &imageName, const String &complexImageName="", const Bool verbose=true)
 Make plain image + keep the complex image as well if complexImageName != "".
Bool boxmask (const String &mask, const Vector< Int > &blc, const Vector< Int > &trc, const Float value)
 Fill in a region of a mask.
Bool regionmask (const String &maskimage, Record *imageRegRec, Matrix< Quantity > &blctrcs, Matrix< Float > &circles, const Float &value=1.0)
 Make a region either from record or array of blc trc (Matrix(nboxes,4)) into a mask image value is the value of the mask pixels circular masks has form Matrix(ncircles,3) where the 3 values on a row are radius, x, y pixel values.
Bool clipimage (const String &image, const Quantity &threshold)
 Clip on Stokes I.
Bool restore (const Vector< String > &model, const String &complist, const Vector< String > &image, const Vector< String > &residual)
 Restore.
Bool updateresidual (const Vector< String > &model, const String &complist, const Vector< String > &image, const Vector< String > &residual)
 similar to restore except this is to be called if you fiddle with the model and complist outside of this object (say you clip stuff etc) ...keep the sm_p and se_p state but just calculate new residuals and restored images.
Bool setbeam (const ImageBeamSet &beam)
 Setbeam.
Bool residual (const Vector< String > &model, const String &complist, const Vector< String > &image)
 Residual.
Bool approximatepsf (const String &psf)
 Approximate PSF.
Bool smooth (const Vector< String > &model, const Vector< String > &image, Bool usefit, ImageBeamSet &mbeam, Bool normalizeVolume)
 Smooth.
Record clean (const String &algorithm, const Int niter, const Float gain, const Quantity &threshold, const Bool displayProgress, const Vector< String > &model, const Vector< Bool > &fixed, const String &complist, const Vector< String > &mask, const Vector< String > &restored, const Vector< String > &residual, const Vector< String > &psf=Vector< String >(0), const Bool firstrun=true)
 Clean algorithm.
Record iClean (const String &algorithm, const Int niter, const Double gain, const Quantity &threshold, const Bool displayprogress, const Vector< String > &model, const Vector< Bool > &keepfixed, const String &complist, const Vector< String > &mask, const Vector< String > &image, const Vector< String > &residual, const Vector< String > &psfnames, const Bool interactive, const Int npercycle, const String &masktemplate)
Bool mem (const String &algorithm, const Int niter, const Quantity &sigma, const Quantity &targetflux, const Bool constrainflux, const Bool displayProgress, const Vector< String > &model, const Vector< Bool > &fixed, const String &complist, const Vector< String > &prior, const Vector< String > &mask, const Vector< String > &restored, const Vector< String > &residual)
 MEM algorithm.
Bool pixon (const String &algorithm, const Quantity &sigma, const String &model)
 pixon algorithm
Bool nnls (const String &algorithm, const Int niter, const Float tolerance, const Vector< String > &model, const Vector< Bool > &fixed, const String &complist, const Vector< String > &fluxMask, const Vector< String > &dataMask, const Vector< String > &restored, const Vector< String > &residual)
 NNLS algorithm.
Bool setmfcontrol (const Float cyclefactor, const Float cyclespeedup, const Float cyclemaxpsffraction, const Int stoplargenegatives, const Int stoppointmode, const String &scaleType, const Float minPB, const Float constPB, const Vector< String > &fluxscale, const Bool flatnoise=True)
 Multi-field control parameters flat noise is the parameter that control the search of clean components in a flat noise image or an optimum beam^2 image.
Bool feather (const String &image, const String &highres, const String &lowres, const String &lowpsf, const Float dishDiam=-1.0, const Bool lowPassFilterSD=False)
 Feathering algorithm.
Bool pb (const String &inimage, const String &outimage, const String &incomps, const String &outcomps, const String &operation, const MDirection &pointngCenter, const Quantity &pa, const String &pborvp)
 Apply or correct for Primary Beam or Voltage Pattern.
Bool linearmosaic (const String &mosaic, const String &fluxscale, const String &sensitivity, const Vector< String > &images, const Vector< Int > &fieldids)
 Make a linear mosaic of several images.
Bool ft (const Vector< String > &model, const String &complist, Bool incremental=False)
 Fourier transform the model and componentlist.
Bool setjy (const Int fieldid, const Int spectralwindowid, const Vector< Double > &fluxDensity, const String &standard)
 Compute the model visibility using specified source flux densities.
Bool setjy (const Vector< Int > &fieldid, const Vector< Int > &spectralwindowid, const String &fieldnames, const String &spwstring, const Vector< Double > &fluxDensity, const String &standard)
Bool setjy (const Vector< Int > &fieldid, const Vector< Int > &spectralwindowid, const String &fieldnames, const String &spwstring, const String &model, const Vector< Double > &fluxDensity, const String &standard, const Bool chanDep=False, const Double spix=0.0, const MFrequency &reffreq=MFrequency(Quantity(1.0,"GHz"), MFrequency::LSRK), const String &timerange="", const String &scanstr="", const String &obsidstr="")
 Setjy with model image.
Bool make (const String &model)
 Make an empty image.
Bool makemodelfromsd (const String &sdImage, const String &modelimage, const String &lowPSF, String &maskImage)
 make a model from a SD image.
String make_comp (const String &objName, const String &standard, const MEpoch &mtime, const Vector< MFrequency > &freqv, const String &prefix)
 Write a component list to disk, starting with prefix, using a setjy standard, and return the name of the list.
Bool fitpsf (const String &psf, ImageBeamSet &mbeam)
 Fit the psf.
Bool correct (const Bool doparallactic, const Quantity &t)
 Correct the visibility data (OBSERVED->CORRECTED)
Bool plotuv (const Bool rotate)
 Plot the uv plane.
Bool plotvis (const String &type, const Int increment)
 Plot the visibilities.
Bool plotweights (const Bool gridded, const Int increment)
 Plot the weights.
Bool plotsummary ()
 Plot a summary.
Bool clipvis (const Quantity &threshold)
 Clip visibilities.
Bool valid () const
 Check if can proceed with this object.
Int interactivemask (const String &imagename, const String &maskname, Int &niter, Int &ncycles, String &threshold, const Bool forceReload=False)
 Interactive mask drawing forceReload..forces the viewer to dump previous image that is being displayed.
Bool copyMask (ImageInterface< Float > &out, const ImageInterface< Float > &in, String maskname="mask0", Bool setdefault=True)
 helper function to copy a mask from one image to another
Bool calcImFreqs (Vector< Double > &imfreqs, Vector< Double > &imfreqres, const MFrequency::Types &oldRefFrame, const MEpoch &obsEpoch, const MPosition &obsPosition, const Double &restFreq)
 spectral gridding calculation for output images (use SubMS::calcChanFreqs)
Bool adviseChanSelex (Double &freqStart, Double &freqEnd, const Double &freqStep, const MFrequency::Types &freqframe, Vector< Vector< Int > > &spw, Vector< Vector< Int > > &start, Vector< Vector< Int > > &nchan, const String &msname="", const Int fieldid=0, const Bool getFreqRange=False, const String spwselection="")
 Advise the chanselection needed for the frequency range or give the frequency range for a give spwselection if getFreqRange==True if the parameter msname is used then the MSs associated associated with this object (that have been either 'open'ed or 'selectvis'ed) are ignored In this mode it is a helper function to the general world ...no need to open or selectvis.
Bool getWeightGrid (Block< Matrix< Float > > &weightgrid, const String &type, const Vector< String > &weightImagenames=Vector< String >())
 These are utility functions when weights from different imager instances need to reconciled in parallel gridding by different instances of imagers for example.
Bool setWeightGrid (const Block< Matrix< Float > > &weightgrid, const String &type)
String dQuantitytoString (const Quantity &dq)

Static Public Member Functions

static Bool regionToImageMask (const String &maskimage, Record *imageRegRec, Matrix< Quantity > &blctrcs, Matrix< Float > &circles, const Float &value=1.0)
static Bool mask (const String &mask, const String &imageName, const Quantity &threshold)
 Make a mask image.
static Bool clone (const String &imageName, const String &newImageName)
 Clone an image.
static Bool expand_blank_sel (Vector< Int > &v, const uInt nelem)
 Supports the "[] or -1 => everything" convention using the rule: If v is empty or only has 1 element, and it is < 0, replace v with 0, 1, ..., nelem - 1.

Protected Member Functions

void defaults ()
 Set the defaults.
Bool detached () const
 check if it is dettahced from ms.
Bool createFTMachine ()
 Create the FTMachines when necessary or when the control parameters have changed.
void openSubTable (const Table &otherTable, Table &table, const TableLock &tableLock)
Bool removeTable (const String &tablename)
Bool updateSkyModel (const Vector< String > &model, const String complist)
Bool createSkyEquation (const String complist="")
Bool createSkyEquation (const Vector< String > &image, const Vector< Bool > &fixed, const String complist="")
Bool createSkyEquation (const Vector< String > &image, const String complist="")
Bool createSkyEquation (const Vector< String > &image, const Vector< Bool > &fixed, const Vector< String > &mask, const String complist="")
Bool createSkyEquation (const Vector< String > &image, const Vector< Bool > &fixed, const Vector< String > &mask, const Vector< String > &fluxMask, const String complist="")
ATermcreateTelescopeATerm (MeasurementSet &ms, const Bool &isATermOn=True)
void destroySkyEquation ()
Bool addResiduals (const Vector< String > &residual)
 add residual to the private vars or create residual images
Bool addResidualsToSkyEquation (const Vector< String > &residual)
 Add the residuals to the SkyEquation.
Bool addMasksToSkyEquation (const Vector< String > &mask, const Vector< Bool > &fixed=Vector< Bool >(0))
 Add or replace the masks.
Bool getRestFreq (Vector< Double > &restFreq, const Int &spw)
 Get the rest frequency ..returns 1 element in restfreq if user specified or try to get the info from the SOURCE table.
Bool restoreImages (const Vector< String > &restored, Bool modresiduals=True)
Bool writeFluxScales (const Vector< String > &fluxScaleNames)
 names of flux scale images
Unit sjy_setup_arrs (Vector< Vector< Flux< Double > > > &returnFluxes, Vector< Vector< Flux< Double > > > &returnFluxErrs, Vector< String > &tempCLs, Vector< Vector< MFrequency > > &mfreqs, const ROMSSpWindowColumns &spwcols, const uInt nspws, const Vector< Int > &selToRawSpwIds, const Bool chanDep)
 Helper functions to hide some setjy code.
Bool sjy_make_visibilities (TempImage< Float > *tmodimage, LogIO &os, const Int rawspwid, const Int fldid, const String &clname, const String &timerange="", const String &scanstr="", const String &obsidstr="", const Vector< Double > &freqofscale=Vector< Double >(0), const Vector< Double > &scale=Vector< Double >(0))
 Returns whether it might have made any visibilities.
Bool sjy_computeFlux (LogIO &os, FluxStandard &fluxStd, Vector< Vector< Flux< Double > > > &returnFluxes, Vector< Vector< Flux< Double > > > &returnFluxErrs, Vector< String > &tempCLs, Vector< Double > &fluxUsed, String &fluxScaleName, const Vector< Vector< MFrequency > > &mfreqs, const String &model, const String &fieldName, const ROMSColumns &msc, const Int fldid, const MDirection &fieldDir, const String &standard)
 Returns whether it found a source.
TempImage< Float > * sjy_prepImage (LogIO &os, FluxStandard &fluxStd, Vector< Double > &fluxUsed, Vector< Double > &freq, Vector< Double > &scale, const String &model, const ROMSSpWindowColumns &spwcols, const Int rawspwid, const Bool chanDep, const Vector< Vector< MFrequency > > &mfreqs, const uInt selspw, const String &fieldName, const MDirection &fieldDir, const Unit &freqUnit, const Vector< Double > &fluxdens, const Bool precompute, const Double spix, const MFrequency &reffreq)
 Returns NULL if no image is prepared.
Bool sjy_regridCubeChans (TempImage< Float > *tmodimage, PagedImage< Float > &modimage, Int freqAxis)
 Returns True or throws up.
Bool sjy_setRadiusLimit (TempImage< Float > *tmodimage, PagedImage< Float > &modimage, const String &model, DirectionCoordinate &dircsys)
 set a radius limit if the model image is one of the known source otherwise simply copy modimage to tmodimage
String imageName ()
Bool pbguts (ImageInterface< Float > &in, ImageInterface< Float > &out, const MDirection &, const Quantity &)
void printbeam (CleanImageSkyModel *sm_p, LogIO &os, const Bool firstrun=true)
 Helper func for printing clean's restoring beam to the logger.
String tangentPoint ()
 Helper func for createFTMachine().
Bool assertDefinedImageParameters () const
virtual void setWFCleanImageSkyModel ()
 Virtual methods to set the ImageSkyModel and SkyEquation.
virtual void setClarkCleanImageSkyModel ()
virtual void setSkyEquation ()
virtual void savePSF (const Vector< String > &psf)
String frmtTime (const Double time)
virtual void setMosaicFTMachine (Bool useDoublePrec=False)
 set the mosaic ft machine and right convolution function
String makeComponentList (const String &fieldName, const Int spwid, const Flux< Double > &fluxval, const ComponentShape &cmp, const ConstantSpectrum &cspectrum) const
 Makes a component list on disk containing cmp (with fluxval and cspectrum) named msname_p.fieldName.spw<spwid>.tempcl and returns the name.
Vector< IntdecideNPolPlanes (Bool checkwithMS)

Static Protected Member Functions

static Bool regionToMask (ImageInterface< Float > &maskImage, ImageRegion &imagreg, const Float &value=1.0)
 copy imageregion to pixels on image as value given

Protected Attributes

CountedPtr< MeasurementSetms_p
CountedPtr< MSHistoryHandlerhist_p
Table antab_p
Table datadesctab_p
Table feedtab_p
Table fieldtab_p
Table obstab_p
Table pointingtab_p
Table poltab_p
Table proctab_p
Table spwtab_p
Table statetab_p
Table dopplertab_p
Table flagcmdtab_p
Table freqoffsettab_p
Table historytab_p
Table sourcetab_p
Table syscaltab_p
Table weathertab_p
Int lockCounter_p
Int nx_p
Int ny_p
Int npol_p
Int nchan_p
ObsInfo latestObsInfo_p
Int imageTileVol_p
 What should be the tile volume on disk.
String msname_p
CountedPtr< MeasurementSetmssel_p
VisSetvs_p
ROVisibilityIteratorrvi_p
VisibilityIteratorwvi_p
FTMachineft_p
ComponentFTMachinecft_p
SkyEquationse_p
CleanImageSkyModelsm_p
VPSkyJonesvp_p
VPSkyJonesgvp_p
Bool setimaged_p
Bool nullSelect_p
Bool redoSkyModel_p
Float rotPAStep_p
 if setimage was changed hence redo the skyModel.
Float computePAStep_p
Float pbLimit_p
Int facets_p
Int wprojPlanes_p
Quantity mcellx_p
Quantity mcelly_p
String stokes_p
String dataMode_p
String imageMode_p
Vector< IntdataNchan_p
Int imageNchan_p
Vector< IntdataStart_p
Vector< IntdataStep_p
Int imageStart_p
Int imageStep_p
MRadialVelocity mDataStart_p
MRadialVelocity mImageStart_p
MRadialVelocity mDataStep_p
MRadialVelocity mImageStep_p
MFrequency mfImageStart_p
MFrequency mfImageStep_p
MFrequency::Types freqFrame_p
MDirection phaseCenter_p
Quantity restFreq_p
Quantity distance_p
Bool doShift_p
Quantity shiftx_p
Quantity shifty_p
String ftmachine_p
String gridfunction_p
Bool wfGridding_p
Long cache_p
Int tile_p
MPosition mLocation_p
Bool doVP_p
ImageBeamSet beam_p
Bool beamValid_p
Float padding_p
Float sdScale_p
Float sdWeight_p
Int sdConvSupport_p
Quantity qtruncate_p
Quantity qgwidth_p
Quantity qjwidth_p
Float cyclefactor_p
 special mf control parms, etc
Float cyclespeedup_p
Float cyclemaxpsffraction_p
Int stoplargenegatives_p
Int stoppointmode_p
Vector< Stringfluxscale_p
String scaleType_p
Float minPB_p
Float constPB_p
Vector< Intspectralwindowids_p
Int fieldid_p
Vector< Intdataspectralwindowids_p
Vector< Intdatadescids_p
Vector< Intdatafieldids_p
Cube< Intspwchansels_p
 TT.
Matrix< Doublefreqrange_p
Matrix< DoublemssFreqSel_p
Matrix< IntmssChanSel_p
Int numMS_p
String telescope_p
String vpTableStr_p
Quantity parAngleInc_p
 in the MS
Quantity skyPosThreshold_p
BeamSquint::SquintType squintType_p
Bool doDefaultVP_p
Bool doMultiFields_p
Bool multiFields_p
Bool doWideBand_p
String freqInterpMethod_p
Bool flatnoise_p
ComponentListcomponentList_p
String scaleMethod_p
Int nscales_p
Int ntaylor_p
Double reffreq_p
Bool useNewMTFT_p
Vector< FloatuserScaleSizes_p
Bool scaleInfoValid_p
Float smallScaleBias_p
Int nmodels_p
Block< CountedPtr< PagedImage
< Float > > > 
images_p
 Everything here must be a real class since we make, handle and destroy these.
Block< CountedPtr< PagedImage
< Float > > > 
masks_p
Block< CountedPtr< PagedImage
< Float > > > 
fluxMasks_p
Block< CountedPtr< PagedImage
< Float > > > 
residuals_p
Bool freqFrameValid_p
 Freq frame is good and valid conversions can be done (or not)
StokesImageUtil::PolRep polRep_p
 Preferred complex polarization representation.
Bool useModelCol_p
 Whether to use model column or use it in memory on the fly.
Bool singlePrec_p
 Force single precision always.
LogSink logSink_p
 sink used to store history mainly
EPJonesepJ
 Objects required for pointing correction (ftmachine=PBWProject)
String epJTableName_p
String cfCacheDirName_p
Bool doPointing
Bool doPBCorr
Bool psTermOn_p
Bool aTermOn_p
Bool mTermOn_p
Bool wbAWP_p
Bool conjBeams_p
Record interactiveState_p
 SimplePlotterPtr plotter_p;.
Bool doTrackSource_p
 Track moving source stuff.
MDirection trackDir_p
String pointingDirCol_p
VisImagingWeight imwgt_p
ViewerProxyviewer_p
 viewer connection
int clean_panel_p
int image_id_p
int mask_id_p
int prev_image_id_p
int prev_mask_id_p
Int numthreads_p
 numthreads

Detailed Description

Class that contains functions needed for imager.

Definition at line 76 of file Imager.h.


Constructor & Destructor Documentation

Default constructor.

casa::Imager::Imager ( MeasurementSet ms,
Bool  compress = False,
Bool  useModel = False 
)
casa::Imager::Imager ( MeasurementSet ms,
Bool  compress = False 
)

Copy constructor and assignment operator.

virtual casa::Imager::~Imager ( ) [virtual]

Destructor.


Member Function Documentation

Bool casa::Imager::addMasksToSkyEquation ( const Vector< String > &  mask,
const Vector< Bool > &  fixed = VectorBool >(0) 
) [protected]

Add or replace the masks.

Bool casa::Imager::addResiduals ( const Vector< String > &  residual) [protected]

add residual to the private vars or create residual images

Bool casa::Imager::addResidualsToSkyEquation ( const Vector< String > &  residual) [protected]

Add the residuals to the SkyEquation.

Bool casa::Imager::advise ( const Bool  takeAdvice,
const Float  amplitudeloss,
const Quantity fieldOfView,
Quantity cell,
Int npixels,
Int facets,
MDirection phaseCenter 
)

Advise on suitable values.

Bool casa::Imager::adviseChanSelex ( Double freqStart,
Double freqEnd,
const Double freqStep,
const MFrequency::Types freqframe,
Vector< Vector< Int > > &  spw,
Vector< Vector< Int > > &  start,
Vector< Vector< Int > > &  nchan,
const String msname = "",
const Int  fieldid = 0,
const Bool  getFreqRange = False,
const String  spwselection = "" 
)

Advise the chanselection needed for the frequency range or give the frequency range for a give spwselection if getFreqRange==True if the parameter msname is used then the MSs associated associated with this object (that have been either 'open'ed or 'selectvis'ed) are ignored In this mode it is a helper function to the general world ...no need to open or selectvis.

You need to specify the field_id for which this calculation is being done for in the helper mode. If you have already set MS's and selected data and msname="" then the calulation is done for the field(s) selected in selectvis. getFreqRange=True then the freqrange in the frame and spwselection you choose is returned in freqStart and freqEnd (in the case of msname="" then it is for the fields and spw you have chosen in selectvis).

Approximate PSF.

Bool casa::Imager::boxmask ( const String mask,
const Vector< Int > &  blc,
const Vector< Int > &  trc,
const Float  value 
)

Fill in a region of a mask.

Bool casa::Imager::calcImFreqs ( Vector< Double > &  imfreqs,
Vector< Double > &  imfreqres,
const MFrequency::Types oldRefFrame,
const MEpoch obsEpoch,
const MPosition obsPosition,
const Double restFreq 
)

spectral gridding calculation for output images (use SubMS::calcChanFreqs)

virtual Bool casa::Imager::checkCoord ( const CoordinateSystem coordsys,
const String imageName 
) [virtual]

Utility function to check coordinate match with existing image.

Record casa::Imager::clean ( const String algorithm,
const Int  niter,
const Float  gain,
const Quantity threshold,
const Bool  displayProgress,
const Vector< String > &  model,
const Vector< Bool > &  fixed,
const String complist,
const Vector< String > &  mask,
const Vector< String > &  restored,
const Vector< String > &  residual,
const Vector< String > &  psf = VectorString >(0),
const Bool  firstrun = true 
)

Clean algorithm.

Bool casa::Imager::clipimage ( const String image,
const Quantity threshold 
)

Clip on Stokes I.

Bool casa::Imager::clipvis ( const Quantity threshold)

Clip visibilities.

static Bool casa::Imager::clone ( const String imageName,
const String newImageName 
) [static]

Clone an image.

Flush the ms to disk and detach from the ms file.

All function calls after this will be a no-op.

Bool casa::Imager::copyMask ( ImageInterface< Float > &  out,
const ImageInterface< Float > &  in,
String  maskname = "mask0",
Bool  setdefault = True 
)

helper function to copy a mask from one image to another

Bool casa::Imager::correct ( const Bool  doparallactic,
const Quantity t 
)

Correct the visibility data (OBSERVED->CORRECTED)

uInt casa::Imager::count_visibilities ( ROVisibilityIterator rvi,
const Bool  unflagged_only,
const Bool  must_have_imwt 
)

Return the # of visibilities accessible to *rvi, optionally excluding flagged ones (if unflagged_only is true) and/or ones without imaging weights (if must_have_imwt is true).

Create the FTMachines when necessary or when the control parameters have changed.

Bool casa::Imager::createSkyEquation ( const String  complist = "") [protected]
Bool casa::Imager::createSkyEquation ( const Vector< String > &  image,
const Vector< Bool > &  fixed,
const String  complist = "" 
) [protected]
Bool casa::Imager::createSkyEquation ( const Vector< String > &  image,
const String  complist = "" 
) [protected]
Bool casa::Imager::createSkyEquation ( const Vector< String > &  image,
const Vector< Bool > &  fixed,
const Vector< String > &  mask,
const String  complist = "" 
) [protected]
Bool casa::Imager::createSkyEquation ( const Vector< String > &  image,
const Vector< Bool > &  fixed,
const Vector< String > &  mask,
const Vector< String > &  fluxMask,
const String  complist = "" 
) [protected]
ATerm* casa::Imager::createTelescopeATerm ( MeasurementSet ms,
const Bool isATermOn = True 
) [protected]
Vector<Int> casa::Imager::decideNPolPlanes ( Bool  checkwithMS) [protected]
void casa::Imager::defaults ( ) [protected]

Set the defaults.

virtual Bool casa::Imager::defineImage ( const Int  nx,
const Int  ny,
const Quantity cellx,
const Quantity celly,
const String stokes,
const MDirection phaseCenter,
const Int  fieldid,
const String mode,
const Int  nchan,
const Int  start,
const Int  step,
const MFrequency mFreqStart,
const MRadialVelocity mStart,
const Quantity qStep,
const Vector< Int > &  spectralwindowids,
const Int  facets = 1,
const Quantity restFreq = Quantity(0,"Hz"),
const MFrequency::Types mFreqFrame = MFrequency::LSRK,
const Quantity distance = Quantity(0,"m"),
const Bool  trackSource = False,
const MDirection trackDir = MDirection(Quantity(0.0,"deg"), Quantity(90.0,"deg")) 
) [virtual]
void casa::Imager::destroySkyEquation ( ) [protected]
Bool casa::Imager::detached ( ) const [protected]

check if it is dettahced from ms.

static Bool casa::Imager::expand_blank_sel ( Vector< Int > &  v,
const uInt  nelem 
) [static]

Supports the "[] or -1 => everything" convention using the rule: If v is empty or only has 1 element, and it is < 0, replace v with 0, 1, ..., nelem - 1.

Returns whether or not it modified v. If so, v is modified in place.

Bool casa::Imager::feather ( const String image,
const String highres,
const String lowres,
const String lowpsf,
const Float  dishDiam = -1.0,
const Bool  lowPassFilterSD = False 
)

Feathering algorithm.

Bool casa::Imager::filter ( const String type,
const Quantity bmaj,
const Quantity bmin,
const Quantity bpa 
)

Filter the MeasurementSet.

Bool casa::Imager::fitpsf ( const String psf,
ImageBeamSet mbeam 
)

Fit the psf.

String casa::Imager::frmtTime ( const Double  time) [protected]
Bool casa::Imager::ft ( const Vector< String > &  model,
const String complist,
Bool  incremental = False 
)

Fourier transform the model and componentlist.

Returns its nominal success value.

Bool casa::Imager::getRestFreq ( Vector< Double > &  restFreq,
const Int spw 
) [protected]

Get the rest frequency ..returns 1 element in restfreq if user specified or try to get the info from the SOURCE table.

Bool casa::Imager::getWeightGrid ( Block< Matrix< Float > > &  weightgrid,
const String type,
const Vector< String > &  weightImagenames = VectorString >() 
)

These are utility functions when weights from different imager instances need to reconciled in parallel gridding by different instances of imagers for example.

when type is "imaging" getweightGrid will get the weight density for uniform style imaging weight the Block elements are for different fields if independent field weighting was done. when type is "ftweight"..then a Vector of string is expected in weightimage which is of the same length as the number of models put in clean etc

Record casa::Imager::iClean ( const String algorithm,
const Int  niter,
const Double  gain,
const Quantity threshold,
const Bool  displayprogress,
const Vector< String > &  model,
const Vector< Bool > &  keepfixed,
const String complist,
const Vector< String > &  mask,
const Vector< String > &  image,
const Vector< String > &  residual,
const Vector< String > &  psfnames,
const Bool  interactive,
const Int  npercycle,
const String masktemplate 
)
Parameters:
thresholdconst String& threshold,
Bool casa::Imager::imagecoordinates ( CoordinateSystem coordInfo,
const Bool  verbose = true 
)

Return the image coordinates.

Bool casa::Imager::imagecoordinates2 ( CoordinateSystem coordInfo,
const Bool  verbose = true 
)

new version

Return the image shape.

Int casa::Imager::interactivemask ( const String imagename,
const String maskname,
Int niter,
Int ncycles,
String threshold,
const Bool  forceReload = False 
)

Interactive mask drawing forceReload..forces the viewer to dump previous image that is being displayed.

Bool casa::Imager::linearmosaic ( const String mosaic,
const String fluxscale,
const String sensitivity,
const Vector< String > &  images,
const Vector< Int > &  fieldids 
)

Make a linear mosaic of several images.

virtual Bool casa::Imager::lock ( ) [virtual]

Lock the ms and its subtables.

Reimplemented in casa::ImagerMultiMS.

Bool casa::Imager::make ( const String model)

Make an empty image.

String casa::Imager::make_comp ( const String objName,
const String standard,
const MEpoch mtime,
const Vector< MFrequency > &  freqv,
const String prefix 
)

Write a component list to disk, starting with prefix, using a setjy standard, and return the name of the list.

String casa::Imager::makeComponentList ( const String fieldName,
const Int  spwid,
const Flux< Double > &  fluxval,
const ComponentShape cmp,
const ConstantSpectrum cspectrum 
) const [protected]

Makes a component list on disk containing cmp (with fluxval and cspectrum) named msname_p.fieldName.spw<spwid>.tempcl and returns the name.

Bool casa::Imager::makeEmptyImage ( CoordinateSystem imageCoord,
String name,
Int  fieldID = 0 
)

make an empty image

Bool casa::Imager::makeimage ( const String type,
const String imageName,
const String complexImageName = "",
const Bool  verbose = true 
)

Make plain image + keep the complex image as well if complexImageName != "".

Bool casa::Imager::makemodelfromsd ( const String sdImage,
const String modelimage,
const String lowPSF,
String maskImage 
)

make a model from a SD image.

This model then can be used as initial clean model to include the shorter spacing.

Bool casa::Imager::makePBImage ( ImageInterface< Float > &  pbImage,
Bool  useSymmetricBeam = True 
)

Functions to make Primary beams.

Bool casa::Imager::makePBImage ( const CoordinateSystem imageCoord,
const String telescopeName,
const String diskPBName,
Bool  useSymmetricBeam = True,
Double  dishdiam = -1.0 
)
Bool casa::Imager::makePBImage ( const CoordinateSystem imageCoord,
const Table vpTable,
const String diskPBName 
)
Bool casa::Imager::makePBImage ( const Table vpTable,
ImageInterface< Float > &  pbImage 
)
Bool casa::Imager::makePBImage ( const CoordinateSystem imageCoord,
PBMath pbMath,
const String diskPBName 
)
Bool casa::Imager::makePBImage ( PBMath pbMath,
ImageInterface< Float > &  pbImage 
)
virtual void casa::Imager::makeVisSet ( MeasurementSet ms,
Bool  compress = False,
Bool  mosaicOrder = False 
) [virtual]

VisSet and resort.

static Bool casa::Imager::mask ( const String mask,
const String imageName,
const Quantity threshold 
) [static]

Make a mask image.

Bool casa::Imager::mem ( const String algorithm,
const Int  niter,
const Quantity sigma,
const Quantity targetflux,
const Bool  constrainflux,
const Bool  displayProgress,
const Vector< String > &  model,
const Vector< Bool > &  fixed,
const String complist,
const Vector< String > &  prior,
const Vector< String > &  mask,
const Vector< String > &  restored,
const Vector< String > &  residual 
)

MEM algorithm.

Return the name of the MeasurementSet.

Bool casa::Imager::nnls ( const String algorithm,
const Int  niter,
const Float  tolerance,
const Vector< String > &  model,
const Vector< Bool > &  fixed,
const String complist,
const Vector< String > &  fluxMask,
const Vector< String > &  dataMask,
const Vector< String > &  restored,
const Vector< String > &  residual 
)

NNLS algorithm.

Bool casa::Imager::open ( MeasurementSet thems,
Bool  compress = False,
Bool  useModel = False 
)

Close the current ms, and replace it with the supplied ms.

Optionally compress the attached calibration data columns if they are created here.

void casa::Imager::openSubTable ( const Table otherTable,
Table table,
const TableLock tableLock 
) [protected]
virtual Bool casa::Imager::openSubTables ( ) [virtual]

open all the subtables as userNoReadLock

Reimplemented in casa::ImagerMultiMS.

Imager& casa::Imager::operator= ( const Imager )
Bool casa::Imager::pb ( const String inimage,
const String outimage,
const String incomps,
const String outcomps,
const String operation,
const MDirection pointngCenter,
const Quantity pa,
const String pborvp 
)

Apply or correct for Primary Beam or Voltage Pattern.

Bool casa::Imager::pbguts ( ImageInterface< Float > &  in,
ImageInterface< Float > &  out,
const MDirection ,
const Quantity  
) [protected]
Bool casa::Imager::pixon ( const String algorithm,
const Quantity sigma,
const String model 
)

pixon algorithm

Plot a summary.

Bool casa::Imager::plotuv ( const Bool  rotate)

Plot the uv plane.

Bool casa::Imager::plotvis ( const String type,
const Int  increment 
)

Plot the visibilities.

Bool casa::Imager::plotweights ( const Bool  gridded,
const Int  increment 
)

Plot the weights.

void casa::Imager::printbeam ( CleanImageSkyModel sm_p,
LogIO os,
const Bool  firstrun = true 
) [protected]

Helper func for printing clean's restoring beam to the logger.

May find the restoring beam as a side effect, so sm_p can't be const.

Bool casa::Imager::regionmask ( const String maskimage,
Record imageRegRec,
Matrix< Quantity > &  blctrcs,
Matrix< Float > &  circles,
const Float value = 1.0 
)

Make a region either from record or array of blc trc (Matrix(nboxes,4)) into a mask image value is the value of the mask pixels circular masks has form Matrix(ncircles,3) where the 3 values on a row are radius, x, y pixel values.

static Bool casa::Imager::regionToImageMask ( const String maskimage,
Record imageRegRec,
Matrix< Quantity > &  blctrcs,
Matrix< Float > &  circles,
const Float value = 1.0 
) [static]
static Bool casa::Imager::regionToMask ( ImageInterface< Float > &  maskImage,
ImageRegion imagreg,
const Float value = 1.0 
) [static, protected]

copy imageregion to pixels on image as value given

Bool casa::Imager::removeTable ( const String tablename) [protected]
Bool casa::Imager::residual ( const Vector< String > &  model,
const String complist,
const Vector< String > &  image 
)

Residual.

Bool casa::Imager::restore ( const Vector< String > &  model,
const String complist,
const Vector< String > &  image,
const Vector< String > &  residual 
)

Restore.

Bool casa::Imager::restoreImages ( const Vector< String > &  restored,
Bool  modresiduals = True 
) [protected]
virtual void casa::Imager::savePSF ( const Vector< String > &  psf) [protected, virtual]
Bool casa::Imager::selectDataChannel ( Vector< Int > &  spectralwindowids,
String dataMode,
Vector< Int > &  dataNchan,
Vector< Int > &  dataStart,
Vector< Int > &  dataStep,
MRadialVelocity mDataStart,
MRadialVelocity mDataStep 
)

Utility function to do channel selection.

Bool casa::Imager::sensitivity ( Quantity pointsourcesens,
Double relativesens,
Double sumwt,
Matrix< Int > &  mssChanSel,
Vector< Vector< Int > > &  nData,
Vector< Vector< Double > > &  sumwtChan,
Vector< Vector< Double > > &  sumwtsqChan,
Vector< Vector< Double > > &  sumInverseVarianceChan 
)

Sensitivity.

Setbeam.

virtual void casa::Imager::setClarkCleanImageSkyModel ( ) [inline, protected, virtual]

Definition at line 862 of file Imager.h.

References sm_p.

Bool casa::Imager::setdata ( const String mode,
const Vector< Int > &  nchan,
const Vector< Int > &  start,
const Vector< Int > &  step,
const MRadialVelocity mStart,
const MRadialVelocity mStep,
const Vector< Int > &  spectralwindowids,
const Vector< Int > &  fieldid,
const String msSelect = "",
const String timerng = "",
const String fieldnames = "",
const Vector< Int > &  antIndex = VectorInt >(),
const String antnames = "",
const String spwstring = "",
const String uvdist = "",
const String scan = "",
const String obs = "",
const Bool  usemodelCol = False,
const Bool  be_calm = false 
)

Select some data.

Sets nullSelect_p and returns !nullSelect_p. be_calm: lowers the logging level of some messages if True.

virtual Bool casa::Imager::setDataPerMS ( const String msname,
const String mode,
const Vector< Int > &  nchan,
const Vector< Int > &  start,
const Vector< Int > &  step,
const Vector< Int > &  spectralwindowids,
const Vector< Int > &  fieldid,
const String msSelect = "",
const String timerng = "",
const String fieldnames = "",
const Vector< Int > &  antIndex = VectorInt >(),
const String antnames = "",
const String spwstring = "",
const String uvdist = "",
const String scan = "",
const String obs = "",
const Bool  useModelCol = False,
const Bool  readonly = False 
) [virtual]

Set the data selection parameters.

The parameters useModelcol and readonly is dummy here as they are useful for the ImagerMultiMS version only

Reimplemented in casa::ImagerMultiMS.

virtual Bool casa::Imager::setimage ( const Int  nx,
const Int  ny,
const Quantity cellx,
const Quantity celly,
const String stokes,
Bool  doShift,
const MDirection phaseCenter,
const Quantity shiftx,
const Quantity shifty,
const String mode,
const Int  nchan,
const Int  start,
const Int  step,
const MRadialVelocity mStart,
const MRadialVelocity mStep,
const Vector< Int > &  spectralwindowids,
const Int  fieldid,
const Int  facets,
const Quantity distance 
) [virtual]

The following setup methods define the state of the imager.

Set image construction parameters

Reimplemented in casa::ImagerMultiMS.

virtual void casa::Imager::setImageParam ( Int nx,
Int ny,
Int npol,
Int nchan 
) [virtual]
Bool casa::Imager::setjy ( const Int  fieldid,
const Int  spectralwindowid,
const Vector< Double > &  fluxDensity,
const String standard 
)

Compute the model visibility using specified source flux densities.

Bool casa::Imager::setjy ( const Vector< Int > &  fieldid,
const Vector< Int > &  spectralwindowid,
const String fieldnames,
const String spwstring,
const Vector< Double > &  fluxDensity,
const String standard 
)
Bool casa::Imager::setjy ( const Vector< Int > &  fieldid,
const Vector< Int > &  spectralwindowid,
const String fieldnames,
const String spwstring,
const String model,
const Vector< Double > &  fluxDensity,
const String standard,
const Bool  chanDep = False,
const Double  spix = 0.0,
const MFrequency reffreq = MFrequency(Quantity(1.0,"GHz"), MFrequency::LSRK),
const String timerange = "",
const String scanstr = "",
const String obsidstr = "" 
)

Setjy with model image.

If chanDep=True then the scaling is calculated on a per channel basis for the model image...otherwise the whole spw gets the same flux density.

Bool casa::Imager::setmfcontrol ( const Float  cyclefactor,
const Float  cyclespeedup,
const Float  cyclemaxpsffraction,
const Int  stoplargenegatives,
const Int  stoppointmode,
const String scaleType,
const Float  minPB,
const Float  constPB,
const Vector< String > &  fluxscale,
const Bool  flatnoise = True 
)

Multi-field control parameters flat noise is the parameter that control the search of clean components in a flat noise image or an optimum beam^2 image.

virtual void casa::Imager::setMosaicFTMachine ( Bool  useDoublePrec = False) [protected, virtual]

set the mosaic ft machine and right convolution function

void casa::Imager::setObsInfo ( ObsInfo obsinfo)
Bool casa::Imager::setoptions ( const String ftmachine,
const Long  cache,
const Int  tile,
const String gridfunction,
const MPosition mLocation,
const Float  padding,
const Int  wprojplanes = 1,
const String epJTableName = "",
const Bool  applyPointingOffsets = True,
const Bool  doPointingCorrection = True,
const String cfCacheDirName = "",
const Float rotpastep = 5.0,
const Float computepastep = 360.0,
const Float pbLimit = 5.0e-2,
const String freqinterpmethod = "linear",
const Int  imageTileSizeInPix = 0,
const Bool  singleprecisiononly = False,
const Int  numthreads = -1,
const Bool  psTermOn = True,
const Bool  aTermOn = True,
const Bool  mTermOn = False,
const Bool  wbAWP = False,
const Bool  conjBeams = True 
)

Set the processing options.

Bool casa::Imager::setscales ( const String scaleMethod,
const Int  inscales,
const Vector< Float > &  userScaleSizes 
)

Set the scales to be searched in Multi Scale clean.

Bool casa::Imager::setsdoptions ( const Float  scale,
const Float  weight,
const Int  convsupport = -1,
String  pointingColToUse = "DIRECTION",
const Quantity  truncate = Quantity(),
const Quantity  gwidth = Quantity(),
const Quantity  jwidth = Quantity() 
)

Set the single dish processing options.

virtual void casa::Imager::setSkyEquation ( ) [protected, virtual]

set bias

Bool casa::Imager::settaylorterms ( const Int  intaylor,
const Double  inreffreq 
)

Set the number of taylor series terms in the expansion of the image as a function of frequency.

Bool casa::Imager::setvp ( const Bool  dovp,
const Bool  defaultVP,
const String vpTable,
const Bool  doSquint,
const Quantity parAngleInc,
const Quantity skyPosThreshold,
String  defaultTel = "",
const Bool  verbose = true 
)

Set the voltage pattern.

Bool casa::Imager::setWeightGrid ( const Block< Matrix< Float > > &  weightgrid,
const String type 
)
virtual void casa::Imager::setWFCleanImageSkyModel ( ) [inline, protected, virtual]

Virtual methods to set the ImageSkyModel and SkyEquation.

This allows derived class pimager to set parallelized specializations.

Definition at line 859 of file Imager.h.

References facets_p, sm_p, and wfGridding_p.

Bool casa::Imager::sjy_computeFlux ( LogIO os,
FluxStandard fluxStd,
Vector< Vector< Flux< Double > > > &  returnFluxes,
Vector< Vector< Flux< Double > > > &  returnFluxErrs,
Vector< String > &  tempCLs,
Vector< Double > &  fluxUsed,
String fluxScaleName,
const Vector< Vector< MFrequency > > &  mfreqs,
const String model,
const String fieldName,
const ROMSColumns msc,
const Int  fldid,
const MDirection fieldDir,
const String standard 
) [protected]

Returns whether it found a source.

Bool casa::Imager::sjy_make_visibilities ( TempImage< Float > *  tmodimage,
LogIO os,
const Int  rawspwid,
const Int  fldid,
const String clname,
const String timerange = "",
const String scanstr = "",
const String obsidstr = "",
const Vector< Double > &  freqofscale = VectorDouble >(0),
const Vector< Double > &  scale = VectorDouble >(0) 
) [protected]

Returns whether it might have made any visibilities.

TempImage<Float>* casa::Imager::sjy_prepImage ( LogIO os,
FluxStandard fluxStd,
Vector< Double > &  fluxUsed,
Vector< Double > &  freq,
Vector< Double > &  scale,
const String model,
const ROMSSpWindowColumns spwcols,
const Int  rawspwid,
const Bool  chanDep,
const Vector< Vector< MFrequency > > &  mfreqs,
const uInt  selspw,
const String fieldName,
const MDirection fieldDir,
const Unit freqUnit,
const Vector< Double > &  fluxdens,
const Bool  precompute,
const Double  spix,
const MFrequency reffreq 
) [protected]

Returns NULL if no image is prepared.

Bool casa::Imager::sjy_regridCubeChans ( TempImage< Float > *  tmodimage,
PagedImage< Float > &  modimage,
Int  freqAxis 
) [protected]

Returns True or throws up.

Bool casa::Imager::sjy_setRadiusLimit ( TempImage< Float > *  tmodimage,
PagedImage< Float > &  modimage,
const String model,
DirectionCoordinate dircsys 
) [protected]

set a radius limit if the model image is one of the known source otherwise simply copy modimage to tmodimage

Unit casa::Imager::sjy_setup_arrs ( Vector< Vector< Flux< Double > > > &  returnFluxes,
Vector< Vector< Flux< Double > > > &  returnFluxErrs,
Vector< String > &  tempCLs,
Vector< Vector< MFrequency > > &  mfreqs,
const ROMSSpWindowColumns spwcols,
const uInt  nspws,
const Vector< Int > &  selToRawSpwIds,
const Bool  chanDep 
) [protected]

Helper functions to hide some setjy code.

Bool casa::Imager::smooth ( const Vector< String > &  model,
const Vector< String > &  image,
Bool  usefit,
ImageBeamSet mbeam,
Bool  normalizeVolume 
)

Return the state of the object as a string.

Output a summary of the state of the object.

Helper func for createFTMachine().

Returns phaseCenter_p as a String, assuming it is set. It does not check!

virtual Bool casa::Imager::unlock ( ) [virtual]

Unlock the ms and its subtables.

Reimplemented in casa::ImagerMultiMS.

Bool casa::Imager::updateresidual ( const Vector< String > &  model,
const String complist,
const Vector< String > &  image,
const Vector< String > &  residual 
)

similar to restore except this is to be called if you fiddle with the model and complist outside of this object (say you clip stuff etc) ...keep the sm_p and se_p state but just calculate new residuals and restored images.

Will throw an exception is se_p or sm_p is not valid (i.e you should have used clean, mem etc before hand).

Bool casa::Imager::updateSkyModel ( const Vector< String > &  model,
const String  complist 
) [protected]
Bool casa::Imager::uvrange ( const Double uvmin,
const Double uvmax 
)

Apply a uvrange.

Check if can proceed with this object.

Bool casa::Imager::weight ( const String algorithm,
const String rmode,
const Quantity noise,
const Double  robust,
const Quantity fieldofview,
const Int  npixels,
const Bool  multiField = False 
)

Weight the MeasurementSet For some time of weighting briggs/uniform ...one can do it on a per field basis to calculate weight density distribution.

If that is what is wanted multiField should be set to True multifield is inoperative for natural, radial weighting

virtual void casa::Imager::writeCommand ( LogIO os) [virtual]
Bool casa::Imager::writeFluxScales ( const Vector< String > &  fluxScaleNames) [protected]

names of flux scale images

virtual void casa::Imager::writeHistory ( LogIO os) [virtual]

Just to create the SORTED_TABLE if one can virtual void makeVisSet(MeasurementSet& ms, Bool compress=False, Bool mosaicOrder=False);.


Member Data Documentation

Definition at line 620 of file Imager.h.

Definition at line 923 of file Imager.h.

Definition at line 687 of file Imager.h.

Definition at line 688 of file Imager.h.

Definition at line 683 of file Imager.h.

Definition at line 922 of file Imager.h.

Definition at line 651 of file Imager.h.

int casa::Imager::clean_panel_p [protected]

Definition at line 935 of file Imager.h.

Definition at line 885 of file Imager.h.

Definition at line 660 of file Imager.h.

Definition at line 923 of file Imager.h.

Definition at line 707 of file Imager.h.

special mf control parms, etc

Definition at line 699 of file Imager.h.

Definition at line 701 of file Imager.h.

Definition at line 700 of file Imager.h.

Definition at line 713 of file Imager.h.

Definition at line 621 of file Imager.h.

Definition at line 714 of file Imager.h.

Definition at line 665 of file Imager.h.

Definition at line 667 of file Imager.h.

Definition at line 712 of file Imager.h.

Definition at line 669 of file Imager.h.

Definition at line 669 of file Imager.h.

Definition at line 677 of file Imager.h.

Definition at line 729 of file Imager.h.

Definition at line 732 of file Imager.h.

Definition at line 923 of file Imager.h.

Definition at line 923 of file Imager.h.

Definition at line 630 of file Imager.h.

Definition at line 678 of file Imager.h.

Track moving source stuff.

Definition at line 928 of file Imager.h.

Definition at line 686 of file Imager.h.

Definition at line 735 of file Imager.h.

EPJones* casa::Imager::epJ [protected]

Objects required for pointing correction (ftmachine=PBWProject)

Definition at line 921 of file Imager.h.

Definition at line 922 of file Imager.h.

Definition at line 661 of file Imager.h.

Referenced by setWFCleanImageSkyModel().

Definition at line 622 of file Imager.h.

Definition at line 710 of file Imager.h.

Definition at line 623 of file Imager.h.

Definition at line 631 of file Imager.h.

Definition at line 738 of file Imager.h.

Definition at line 900 of file Imager.h.

Definition at line 704 of file Imager.h.

Definition at line 674 of file Imager.h.

Freq frame is good and valid conversions can be done (or not)

Definition at line 904 of file Imager.h.

Definition at line 736 of file Imager.h.

Definition at line 632 of file Imager.h.

Definition at line 717 of file Imager.h.

Definition at line 650 of file Imager.h.

Definition at line 681 of file Imager.h.

Definition at line 681 of file Imager.h.

Definition at line 655 of file Imager.h.

Definition at line 619 of file Imager.h.

Definition at line 633 of file Imager.h.

int casa::Imager::image_id_p [protected]

Definition at line 936 of file Imager.h.

Definition at line 666 of file Imager.h.

Definition at line 668 of file Imager.h.

Everything here must be a real class since we make, handle and destroy these.

Definition at line 898 of file Imager.h.

Definition at line 670 of file Imager.h.

Definition at line 670 of file Imager.h.

What should be the tile volume on disk.

Definition at line 641 of file Imager.h.

Definition at line 931 of file Imager.h.

SimplePlotterPtr plotter_p;.

Definition at line 925 of file Imager.h.

Definition at line 639 of file Imager.h.

Definition at line 637 of file Imager.h.

sink used to store history mainly

Definition at line 915 of file Imager.h.

int casa::Imager::mask_id_p [protected]

Definition at line 937 of file Imager.h.

Definition at line 899 of file Imager.h.

Definition at line 663 of file Imager.h.

Definition at line 663 of file Imager.h.

Definition at line 671 of file Imager.h.

Definition at line 672 of file Imager.h.

Definition at line 673 of file Imager.h.

Definition at line 673 of file Imager.h.

Definition at line 671 of file Imager.h.

Definition at line 672 of file Imager.h.

Definition at line 706 of file Imager.h.

Definition at line 685 of file Imager.h.

Definition at line 618 of file Imager.h.

Definition at line 645 of file Imager.h.

Definition at line 719 of file Imager.h.

Definition at line 646 of file Imager.h.

Definition at line 718 of file Imager.h.

Definition at line 923 of file Imager.h.

Definition at line 733 of file Imager.h.

Definition at line 638 of file Imager.h.

Definition at line 895 of file Imager.h.

Definition at line 638 of file Imager.h.

Definition at line 888 of file Imager.h.

Definition at line 889 of file Imager.h.

Definition at line 657 of file Imager.h.

Definition at line 721 of file Imager.h.

numthreads

Definition at line 941 of file Imager.h.

Int casa::Imager::nx_p [protected]

Definition at line 638 of file Imager.h.

Int casa::Imager::ny_p [protected]

Definition at line 638 of file Imager.h.

Definition at line 624 of file Imager.h.

Definition at line 689 of file Imager.h.

in the MS

Definition at line 726 of file Imager.h.

Definition at line 660 of file Imager.h.

Definition at line 675 of file Imager.h.

Definition at line 930 of file Imager.h.

Definition at line 625 of file Imager.h.

Preferred complex polarization representation.

Definition at line 907 of file Imager.h.

Definition at line 626 of file Imager.h.

Definition at line 938 of file Imager.h.

Definition at line 939 of file Imager.h.

Definition at line 627 of file Imager.h.

Definition at line 923 of file Imager.h.

Definition at line 695 of file Imager.h.

Definition at line 696 of file Imager.h.

Definition at line 694 of file Imager.h.

Definition at line 658 of file Imager.h.

Definition at line 890 of file Imager.h.

Definition at line 901 of file Imager.h.

Definition at line 676 of file Imager.h.

if setimage was changed hence redo the skyModel.

Definition at line 660 of file Imager.h.

Definition at line 648 of file Imager.h.

Definition at line 893 of file Imager.h.

Definition at line 887 of file Imager.h.

Definition at line 705 of file Imager.h.

Definition at line 692 of file Imager.h.

Definition at line 690 of file Imager.h.

Definition at line 691 of file Imager.h.

Definition at line 652 of file Imager.h.

Definition at line 657 of file Imager.h.

Definition at line 679 of file Imager.h.

Definition at line 680 of file Imager.h.

Force single precision always.

Definition at line 913 of file Imager.h.

Definition at line 727 of file Imager.h.

Definition at line 653 of file Imager.h.

Referenced by setClarkCleanImageSkyModel(), and setWFCleanImageSkyModel().

Definition at line 894 of file Imager.h.

Definition at line 634 of file Imager.h.

Definition at line 709 of file Imager.h.

TT.

Definition at line 716 of file Imager.h.

Definition at line 628 of file Imager.h.

Definition at line 728 of file Imager.h.

Definition at line 629 of file Imager.h.

Definition at line 664 of file Imager.h.

Definition at line 702 of file Imager.h.

Definition at line 703 of file Imager.h.

Definition at line 635 of file Imager.h.

Definition at line 723 of file Imager.h.

Definition at line 684 of file Imager.h.

Definition at line 929 of file Imager.h.

Whether to use model column or use it in memory on the fly.

Definition at line 910 of file Imager.h.

Definition at line 891 of file Imager.h.

Definition at line 892 of file Imager.h.

viewer connection

Definition at line 934 of file Imager.h.

Definition at line 654 of file Imager.h.

Definition at line 724 of file Imager.h.

VisSet* casa::Imager::vs_p [protected]

Definition at line 647 of file Imager.h.

Definition at line 923 of file Imager.h.

Definition at line 636 of file Imager.h.

Definition at line 682 of file Imager.h.

Referenced by setWFCleanImageSkyModel().

Definition at line 662 of file Imager.h.

Definition at line 649 of file Imager.h.


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