27 #ifndef SYNTHESIS_IMAGER_H
28 #define SYNTHESIS_IMAGER_H
71 class VisImagingWeight_p;
75 #if ! defined(WITHOUT_DBUS)
1049 #if ! defined(WITHOUT_DBUS)
casacore::Bool setmfcontrol(const casacore::Float cyclefactor, const casacore::Float cyclespeedup, const casacore::Float cyclemaxpsffraction, const casacore::Int stoplargenegatives, const casacore::Int stoppointmode, const casacore::String &scaleType, const casacore::Float minPB, const casacore::Float constPB, const casacore::Vector< casacore::String > &fluxscale, const casacore::Bool flatnoise=true)
Multi-field control parameters flat noise is the parameter that control the search of clean componen...
Imager & operator=(const Imager &)
A Vector of integers, for indexing into Array<T> objects.
casacore::Float constPB_p
casacore::Block< casacore::CountedPtr< casacore::PagedImage< casacore::Float > > > masks_p
A Measure: astronomical direction.
casacore::Bool makePBImage(casacore::ImageInterface< casacore::Float > &pbImage, casacore::Bool useSymmetricBeam=true)
Functions to make Primary beams.
casacore::MRadialVelocity mDataStart_p
casacore::Bool sjy_concatComponentLists(casacore::LogIO &os, const casacore::Vector< casacore::String > &tempCLs, const casacore::String &outTempCL)
Concatenate multiple CLs.
virtual casacore::Bool createFTMachine()
Create the FTMachines when necessary or when the control parameters have changed. ...
BeamSquint::SquintType squintType_p
A Measure: position on Earth.
casacore::String state()
Return the state of the object as a string.
casacore::String cfCacheDirName_p
casacore::String scaleMethod_p
casacore::Float computePAStep_p
casacore::Quantity qjwidth_p
casacore::Bool setimaged_p
static casacore::Bool copyMask(casacore::ImageInterface< casacore::Float > &out, const casacore::ImageInterface< casacore::Float > &in, casacore::String maskname="mask0", casacore::Bool setdefault=true)
helper function to copy a mask from one image to another
casacore::Table statetab_p
casacore::String name() const
Return the name of the MeasurementSet.
casacore::String ftmachine_p
virtual void setImageParam(casacore::Int &nx, casacore::Int &ny, casacore::Int &npol, casacore::Int &nchan)
static casacore::Bool regionToImageMask(const casacore::String &maskimage, casacore::Record *imageRegRec, casacore::Matrix< casacore::Quantity > &blctrcs, casacore::Matrix< casacore::Float > &circles, const casacore::Float &value=1.0)
casacore::Float cyclemaxpsffraction_p
casacore::Bool addResiduals(const casacore::Vector< casacore::String > &residual)
add residual to the private vars or create residual images
Object to hold type of imaging weight scheme to be used on the fly and to provide facilities to do th...
casacore::Bool addResidualsToSkyEquation(const casacore::Vector< casacore::String > &residual)
Add the residuals to the SkyEquation.
virtual casacore::Bool pointingSampling(const casacore::String &referenceFrame, const casacore::String &movingSource, const casacore::String &pointingColumn, const casacore::String &antenna, casacore::Quantum< casacore::Vector< casacore::Double >> &sampling, casacore::Quantity &positionAngle)
Caluculate sampling interval of Raster map.
casacore::Bool valid() const
Check if can proceed with this object.
ROVisibilityIterator * rvi_p
Main interface class to a read/write table.
casacore::ObsInfo latestObsInfo_p
casacore::Quantity parAngleInc_p
in the MS
virtual casacore::Bool setDataPerMS(const casacore::String &msname, const casacore::String &mode, const casacore::Vector< casacore::Int > &nchan, const casacore::Vector< casacore::Int > &start, const casacore::Vector< casacore::Int > &step, const casacore::Vector< casacore::Int > &spectralwindowids, const casacore::Vector< casacore::Int > &fieldid, const casacore::String &msSelect="", const casacore::String &timerng="", const casacore::String &fieldnames="", const casacore::Vector< casacore::Int > &antIndex=casacore::Vector< casacore::Int >(), const casacore::String &antnames="", const casacore::String &spwstring="", const casacore::String &uvdist="", const casacore::String &scan="", const casacore::String &intent="", const casacore::String &obs="", const casacore::Bool useModelCol=false, const casacore::Bool readonly=false)
Set the data selection parameters.
casacore::Table dopplertab_p
casacore::Bool setsdoptions(const casacore::Float scale, const casacore::Float weight, const casacore::Int convsupport=-1, casacore::String pointingColToUse="DIRECTION", const casacore::Quantity truncate=casacore::Quantity(), const casacore::Quantity gwidth=casacore::Quantity(), const casacore::Quantity jwidth=casacore::Quantity(), const casacore::Float minweight=0., const casacore::Bool clipminmax=false)
Set the single dish processing options.
casacore::Quantity mcelly_p
casacore::ObsInfo & latestObsInfo()
casacore::Quantity shiftx_p
casacore::Bool advise(const casacore::Bool takeAdvice, const casacore::Float amplitudeloss, const casacore::Quantity &fieldOfView, casacore::Quantity &cell, casacore::Int &npixels, casacore::Int &facets, casacore::MDirection &phaseCenter)
Advise on suitable values.
virtual casacore::Bool checkCoord(const casacore::CoordinateSystem &coordsys, const casacore::String &imageName)
Utility function to check coordinate match with existing image.
casacore::Bool setscales(const casacore::String &scaleMethod, const casacore::Int inscales, const casacore::Vector< casacore::Float > &userScaleSizes)
Set the scales to be searched in Multi Scale clean.
StokesImageUtil::PolRep polRep_p
Preferred complex polarization representation.
casacore::Bool sensitivity(casacore::Quantity &pointsourcesens, casacore::Double &relativesens, casacore::Double &sumwt, casacore::Double &effectiveBandwidth, casacore::Double &effectiveIntegration, casacore::Int &mBaselines, casacore::Matrix< casacore::Int > &mssChanSel, casacore::Vector< casacore::Vector< casacore::Int > > &nData, casacore::Vector< casacore::Vector< casacore::Double > > &sumwtChan, casacore::Vector< casacore::Vector< casacore::Double > > &sumwtsqChan, casacore::Vector< casacore::Vector< casacore::Double > > &sumInverseVarianceChan)
Sensitivity.
casacore::String msname_p
casacore::Bool sjy_regridCubeChans(casacore::TempImage< casacore::Float > *tmodimage, casacore::PagedImage< casacore::Float > &modimage, casacore::Int freqAxis)
Returns true or throws up.
virtual Type type()
Return the type enum.
casacore::MDirection trackDir_p
casacore::MPosition mLocation_p
casacore::Int stoppointmode_p
casacore::Bool approximatepsf(const casacore::String &psf)
Approximate PSF.
EPJones (pointing errors)
casacore::Bool doWideBand_p
casacore::String freqInterpMethod_p
casacore::Bool setWeightGrid(const casacore::Block< casacore::Matrix< casacore::Float > > &weightgrid, const casacore::String &type)
casacore::Bool fitpsf(const casacore::String &psf, casacore::ImageBeamSet &mbeam)
Fit the psf.
casacore::Bool make(const casacore::String &model)
Make an empty image.
casacore::Bool clipminmax_p
casacore::Float smallScaleBias_p
casacore::Table freqoffsettab_p
casacore::Bool avoidTempLatt_p
casacore::Bool uvrange(const casacore::Double &uvmin, const casacore::Double &uvmax)
Apply a uvrange.
casacore::MRadialVelocity mImageStart_p
Model the spectral variation with a constant.
casacore::Bool close()
Flush the ms to disk and detach from the ms file.
casacore::Int lockCounter_p
ABSTRACT TOOL CLASSES A PlotTool is a higher level event handler for a PlotCanvas The idea is to take common tasks which may require multiple events and put them in one place PlotTools also provide additional functionality in that they can be active and blocking non blocking The PlotCanvas will only send events to active and will not send events to later tools or event handlers if the latest tool was blocking In this way a single tool can be used to handle ALL user interaction via the GUI at one time
void defaults()
Set the defaults.
casacore::Bool plotvis(const casacore::String &type, const casacore::Int increment)
Plot the visibilities.
casacore::Bool selectDataChannel(casacore::Vector< casacore::Int > &spectralwindowids, casacore::String &dataMode, casacore::Vector< casacore::Int > &dataNchan, casacore::Vector< casacore::Int > &dataStart, casacore::Vector< casacore::Int > &dataStep, casacore::MRadialVelocity &mDataStart, casacore::MRadialVelocity &mDataStep)
Utility function to do channel selection.
Primary beam envelope class, derived from PBMathInterface.
casacore::Bool pb(const casacore::String &inimage, const casacore::String &outimage, const casacore::String &incomps, const casacore::String &outcomps, const casacore::String &operation, const casacore::MDirection &pointngCenter, const casacore::Quantity &pa, const casacore::String &pborvp)
Apply or correct for Primary Beam or Voltage Pattern.
casacore::Bool plotsummary()
Plot a summary.
SquintType
Allowed Squints: NONE = no squint: PB is centered on the pointing center RR = PB is shifted from poin...
casacore::Bool getRestFreq(casacore::Vector< casacore::Double > &restFreq, const casacore::Int &spw)
Get the rest frequency..returns 1 element in restfreq if user specified or try to get the info from t...
Imager()
Default constructor.
FluxStandard: Compute flux densities for standard reference sources.
virtual casacore::Bool setimage(const casacore::Int nx, const casacore::Int ny, const casacore::Quantity &cellx, const casacore::Quantity &celly, const casacore::String &stokes, casacore::Bool doShift, const casacore::MDirection &phaseCenter, const casacore::Quantity &shiftx, const casacore::Quantity &shifty, const casacore::String &mode, const casacore::Int nchan, const casacore::Int start, const casacore::Int step, const casacore::MRadialVelocity &mStart, const casacore::MRadialVelocity &mStep, const casacore::Vector< casacore::Int > &spectralwindowids, const casacore::Int fieldid, const casacore::Int facets, const casacore::Quantity &distance)
The following setup methods define the state of the imager.
void openSubTable(const casacore::Table &otherTable, casacore::Table &table, const casacore::TableLock &tableLock)
casacore::String frmtTime(const casacore::Double time)
casacore::Bool useNewMTFT_p
casacore::String gridfunction_p
casacore::Quantity qgwidth_p
ostream-like interface to creating log messages.
casacore::Bool setbeam(const casacore::ImageBeamSet &beam)
Setbeam.
A Measure: radial velocity.
casacore::Matrix< casacore::Double > mssFreqSel_p
casacore::Bool detached() const
check if it is dettahced from ms.
casacore::String imageMode_p
virtual void setWFCleanImageSkyModel()
Virtual methods to set the ImageSkyModel and SkyEquation.
virtual casacore::Bool lock()
Lock the ms and its subtables.
virtual casacore::Bool unlock()
Unlock the ms and its subtables.
CleanImageSkyModel * sm_p
casacore::Bool setoptions(const casacore::String &ftmachine, const casacore::Long cache, const casacore::Int tile, const casacore::String &gridfunction, const casacore::MPosition &mLocation, const casacore::Float padding, const casacore::Int wprojplanes=-1, const casacore::String &epJTableName="", const casacore::Bool applyPointingOffsets=true, const casacore::Bool doPointingCorrection=true, const casacore::String &cfCacheDirName="", const casacore::Float &rotpastep=5.0, const casacore::Float &computepastep=360.0, const casacore::Float &pbLimit=5.0e-2, const casacore::String &freqinterpmethod="linear", const casacore::Int imageTileSizeInPix=0, const casacore::Bool singleprecisiononly=false, const casacore::Int numthreads=-1, const casacore::Bool psTermOn=true, const casacore::Bool aTermOn=true, const casacore::Bool mTermOn=false, const casacore::Bool wbAWP=false, const casacore::Bool conjBeams=true)
Set the processing options.
casacore::Bool redoSkyModel_p
casacore::Bool nullSelect_p
casacore::Table flagcmdtab_p
virtual void writeCommand(casacore::LogIO &os)
casacore::Bool freqFrameValid_p
Freq frame is good and valid conversions can be done (or not)
A class to provide easy read-only access to MSASpectralWindow columns.
virtual casacore::Bool defineImage(const casacore::Int nx, const casacore::Int ny, const casacore::Quantity &cellx, const casacore::Quantity &celly, const casacore::String &stokes, const casacore::MDirection &phaseCenter, const casacore::Int fieldid, const casacore::String &mode, const casacore::Int nchan, const casacore::Int start, const casacore::Int step, const casacore::MFrequency &mFreqStart, const casacore::MRadialVelocity &mStart, const casacore::Quantity &qStep, const casacore::Vector< casacore::Int > &spectralwindowids, const casacore::Int facets=1, const casacore::Quantity &restFreq=casacore::Quantity(0,"Hz"), const casacore::MFrequency::Types &mFreqFrame=casacore::MFrequency::LSRK, const casacore::Quantity &distance=casacore::Quantity(0,"m"), const casacore::Bool trackSource=false, const casacore::MDirection &trackDir=casacore::MDirection(casacore::Quantity(0.0,"deg"), casacore::Quantity(90.0,"deg")), const casacore::String &projection=casacore::String("SIN"))
A Measure: instant in time.
casacore::String pointingDirCol_p
casacore::Table syscaltab_p
casacore::Vector< casacore::Int > datadescids_p
casacore::Bool imagecoordinates2(casacore::CoordinateSystem &coordInfo, const casacore::Bool verbose=true)
new version
casacore::Bool doMultiFields_p
casacore::Matrix< casacore::Int > mssChanSel_p
virtual void savePSF(const casacore::Vector< casacore::String > &psf)
casacore::ImageBeamSet beam_p
casacore::Bool updateresidual(const casacore::Vector< casacore::String > &model, const casacore::String &complist, const casacore::Vector< casacore::String > &image, const casacore::Vector< casacore::String > &residual)
similar to restore except this is to be called if you fiddle with the model and complist outside of t...
Store miscellaneous information related to an observation.
casacore::Bool removeTable(const casacore::String &tablename)
casacore::Bool makemodelfromsd(const casacore::String &sdImage, const casacore::String &modelimage, const casacore::String &lowPSF, casacore::String &maskImage)
make a model from a SD image.
EPJones * epJ
Objects required for pointing correction (ftmachine=PBWProject)
casacore::Vector< casacore::Int > dataStart_p
casacore::Bool sjy_setRadiusLimit(casacore::TempImage< casacore::Float > *tmodimage, casacore::PagedImage< casacore::Float > &modimage, const casacore::String &model, casacore::DirectionCoordinate &dircsys)
set a radius limit if the model image is one of the known source otherwise simply copy modimage to tm...
casacore::String telescope_p
casacore::Bool beamValid_p
void destroySkyEquation()
Model the diagonal elements of the Voltage Pattern Sky Jones Matrices.
A Measure: wave characteristics.
casacore::Bool flatnoise_p
casacore::String makeComponentList(const casacore::String &fieldName, const casacore::Int spwid, const Flux< casacore::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.
casacore::Vector< casacore::Int > dataNchan_p
casacore::Int imageStep_p
casacore::Int wprojPlanes_p
casacore::String dQuantitytoString(const casacore::Quantity &dq)
casacore::TempImage< casacore::Float > * sjy_prepImage(casacore::LogIO &os, FluxStandard &fluxStd, casacore::Vector< casacore::Double > &fluxUsed, casacore::Vector< casacore::Double > &freq, casacore::Vector< casacore::Double > &scale, const casacore::String &model, const casacore::ROMSSpWindowColumns &spwcols, const casacore::Vector< casacore::Int > rawspwids, const casacore::Bool chanDep, const casacore::Vector< casacore::Vector< casacore::MFrequency > > &mfreqs, const casacore::String &fieldName, const casacore::MDirection &fieldDir, const casacore::Unit &freqUnit, const casacore::Vector< casacore::Double > &fluxdens, const casacore::Bool precompute, const casacore::Vector< casacore::Double > &spix, const casacore::MFrequency &reffreq, const casacore::MEpoch &aveEpoch, const casacore::Int fieldId)
Returns NULL if no image is prepared.
virtual void setClarkCleanImageSkyModel()
casacore::String tangentPoint()
Helper func for createFTMachine().
casacore::Int interactivemask(const casacore::String &imagename, const casacore::String &maskname, casacore::Int &niter, casacore::Int &ncycles, casacore::String &threshold, const casacore::Bool forceReload=false)
Interactive mask drawing forceReload..forces the viewer to dump previous image that is being displaye...
casacore::Block< casacore::CountedPtr< casacore::PagedImage< casacore::Float > > > residuals_p
casacore::Int imageTileVol_p
What should be the tile volume on disk.
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
casacore::Table proctab_p
A base class for astronomical images.
Base class for component shapes.
casacore::Bool writeFluxScales(const casacore::Vector< casacore::String > &fluxScaleNames)
names of flux scale images
casacore::Bool restore(const casacore::Vector< casacore::String > &model, const casacore::String &complist, const casacore::Vector< casacore::String > &image, const casacore::Vector< casacore::String > &residual)
Restore.
casacore::String projection_p
Interconvert pixel positions and directions (e.g. RA/DEC).
casacore::MFrequency mfImageStart_p
casacore::Bool feather(const casacore::String &image, const casacore::String &highres, const casacore::String &lowres, const casacore::String &lowpsf, const casacore::Float dishDiam=-1.0, const casacore::Bool lowPassFilterSD=false)
Feathering algorithm.
casacore::Bool plotweights(const casacore::Bool gridded, const casacore::Int increment)
Plot the weights.
Represents a set of restoring beams associated with an image.
VisibilityIterator * wvi_p
casacore::Bool mem(const casacore::String &algorithm, const casacore::Int niter, const casacore::Quantity &sigma, const casacore::Quantity &targetflux, const casacore::Bool constrainflux, const casacore::Bool displayProgress, const casacore::Vector< casacore::String > &model, const casacore::Vector< casacore::Bool > &fixed, const casacore::String &complist, const casacore::Vector< casacore::String > &prior, const casacore::Vector< casacore::String > &mask, const casacore::Vector< casacore::String > &restored, const casacore::Vector< casacore::String > &residual)
MEM algorithm.
casacore::Bool setvp(const casacore::Bool dovp, const casacore::Bool defaultVP, const casacore::String &vpTable, const casacore::Bool doSquint, const casacore::Quantity &parAngleInc, const casacore::Quantity &skyPosThreshold, casacore::String defaultTel="", const casacore::Bool verbose=true)
Set the voltage pattern.
A class to provide easy read-only access to MeasurementSet columns.
A class to provide easy read-only access to MSHistory columns.
casacore::Bool restoreImages(const casacore::Vector< casacore::String > &restored, casacore::Bool modresiduals=true)
casacore::String stokes_p
casacore::MDirection phaseCenter_p
casacore::Quantity restFreq_p
casacore::Bool updateSkyModel(const casacore::Vector< casacore::String > &model, const casacore::String complist)
Class to get file information and a base for other file classes.
casacore::Bool wfGridding_p
casacore::Bool plotuv(const casacore::Bool rotate)
Plot the uv plane.
casacore::Float minWeight_p
virtual void setSkyEquation()
casacore::Float cyclefactor_p
special mf control parms, etc
casacore::Table weathertab_p
casacore::Table datadesctab_p
casacore::Float rotPAStep_p
if setimage was changed hence redo the skyModel.
casacore::Table sourcetab_p
casacore::Bool imagecoordinates(casacore::CoordinateSystem &coordInfo, const casacore::Bool verbose=true)
Return the image coordinates.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Quantity shifty_p
ComponentFTMachine * cft_p
casacore::String dataMode_p
casacore::CountedPtr< casacore::MeasurementSet > ms_p
casacore::MRadialVelocity mImageStep_p
casacore::String scaleType_p
void sjy_makeComponentList(casacore::LogIO &os, casacore::Vector< casacore::String > &tempCLs, casacore::Vector< casacore::Vector< Flux< casacore::Double > > > &returnFluxes, const casacore::Vector< casacore::Double > &fluxUsed, const casacore::Vector< casacore::Int > &selToRawSpwIds, const casacore::Vector< casacore::Vector< casacore::MFrequency > > &mfreqs, const casacore::String &fieldName, const casacore::MDirection &fieldDir, const casacore::Vector< casacore::Double > &spix, const casacore::Vector< casacore::Double > &pipars, const casacore::Vector< casacore::Double > &papars, const casacore::Double &rotMeas, const casacore::MFrequency &reffreq, const casacore::MEpoch &aveEpoch, const casacore::Int fldId)
casacore::Float sdWeight_p
casacore::Bool smooth(const casacore::Vector< casacore::String > &model, const casacore::Vector< casacore::String > &image, casacore::Bool usefit, casacore::ImageBeamSet &mbeam, casacore::Bool normalizeVolume)
Smooth.
casacore::Bool doTrackSource_p
Track moving source stuff.
casacore::Bool sjy_computeFlux(casacore::LogIO &os, FluxStandard &fluxStd, casacore::Vector< casacore::Vector< Flux< casacore::Double > > > &returnFluxes, casacore::Vector< casacore::Vector< Flux< casacore::Double > > > &returnFluxErrs, casacore::Vector< casacore::String > &tempCLs, casacore::Vector< casacore::Vector< casacore::Double > > &fluxUsed, casacore::String &fluxScaleName, casacore::MEpoch &aveEpoch, const casacore::Vector< casacore::Vector< casacore::MFrequency > > &mfreqs, const casacore::String &model, const casacore::String &fieldName, const casacore::ROMSColumns &msc, const casacore::Int fldid, const casacore::MDirection &fieldDir, const casacore::Vector< casacore::Int > &selToRawSpwIds, const casacore::String &standard)
Returns whether it found a source.
casacore::Bool conjBeams_p
casacore::Record iClean(const casacore::String &algorithm, const casacore::Int niter, const casacore::Double gain, const casacore::Quantity &threshold, const casacore::Bool displayprogress, const casacore::Vector< casacore::String > &model, const casacore::Vector< casacore::Bool > &keepfixed, const casacore::String &complist, const casacore::Vector< casacore::String > &mask, const casacore::Vector< casacore::String > &image, const casacore::Vector< casacore::String > &residual, const casacore::Vector< casacore::String > &psfnames, const casacore::Bool interactive, const casacore::Int npercycle, const casacore::String &masktemplate)
static casacore::Bool clone(const casacore::String &imageName, const casacore::String &newImageName)
Clone an image.
casacore::Table feedtab_p
casacore::Bool useModelCol_p
Whether to use model column or use it in memory on the fly.
Clark Image Sky Model: Image Sky Model implementing the Clark Clean algorithm.
casacore::Bool boxmask(const casacore::String &mask, const casacore::Vector< casacore::Int > &blc, const casacore::Vector< casacore::Int > &trc, const casacore::Float value)
Fill in a region of a mask.
casacore::Bool doDefaultVP_p
Class to hold table lock options.
casacore::Bool makeEmptyImage(casacore::CoordinateSystem &imageCoord, casacore::String &name, casacore::Int fieldID=0)
make an empty image
casacore::Bool setjy(const casacore::Int fieldid, const casacore::Int spectralwindowid, const casacore::Vector< casacore::Double > &fluxDensity, const casacore::String &standard)
Compute the model visibility using specified source flux densities.
casacore::Quantity skyPosThreshold_p
casacore::Bool nonDefaultLocation()
returns if mLocation_p is set (= non-default casacore::MPosition)
static casacore::Bool expand_blank_sel(casacore::Vector< casacore::Int > &v, const casacore::uInt nelem)
Supports the "[] or -1 => everything" convention using the rule: If v is empty or only has 1 element...
casacore::Record interactiveState_p
SimplePlotterPtr plotter_p;.
casacore::Bool psTermOn_p
casacore::Vector< casacore::Int > spectralwindowids_p
A Table intended to hold astronomical data (a set of Measurements).
casacore::Block< casacore::CountedPtr< casacore::PagedImage< casacore::Float > > > images_p
Everything here must be a real class since we make, handle and destroy these.
casacore::Quantity mcellx_p
Class that contains functions needed for imager.
casacore::Bool singlePrec_p
Force single precision always.
Class to hold a region of interest in an image.
virtual casacore::Bool mapExtent(const casacore::String &referenceFrame, const casacore::String &movingSource, const casacore::String &pointingColumn, casacore::Vector< casacore::Double > ¢er, casacore::Vector< casacore::Double > &blc, casacore::Vector< casacore::Double > &trc, casacore::Vector< casacore::Double > &extent)
Automatic evaluation of map extent for given visibility.
casacore::Bool filter(const casacore::String &type, const casacore::Quantity &bmaj, const casacore::Quantity &bmin, const casacore::Quantity &bpa)
Filter the MeasurementSet.
casacore::Quantity qtruncate_p
A class to provide a simple interface to history writing.
casacore::Vector< casacore::Float > userScaleSizes_p
casacore::Bool weight(const casacore::String &algorithm, const casacore::String &rmode, const casacore::Quantity &noise, const casacore::Double robust, const casacore::Quantity &fieldofview, const casacore::Int npixels, const casacore::Bool multiField=false)
Weight the MeasurementSet For some time of weighting briggs/uniform...one can do it on a per field b...
casacore::Bool getMapExtent(const casacore::MeasurementSet &ms, const casacore::String &referenceFrame, const casacore::String &movingSource, const casacore::String &pointingColumn, casacore::Vector< casacore::Double > ¢er, casacore::Vector< casacore::Double > &blc, casacore::Vector< casacore::Double > &trc, casacore::Vector< casacore::Double > &extent)
implementation of mapExtent
virtual void makeVisSet(casacore::MeasurementSet &ms, casacore::Bool compress=false, casacore::Bool mosaicOrder=false)
VisSet and resort.
casacore::Double reffreq_p
casacore::Bool residual(const casacore::Vector< casacore::String > &model, const casacore::String &complist, const casacore::Vector< casacore::String > &image)
Residual.
void printbeam(CleanImageSkyModel *sm_p, casacore::LogIO &os, const casacore::Bool firstrun=true)
Helper func for printing clean's restoring beam to the logger.
casacore::Table pointingtab_p
casacore::Matrix< casacore::Double > freqrange_p
virtual void setMosaicFTMachine(casacore::Bool useDoublePrec=false)
set the mosaic ft machine and right convolution function
casacore::Table historytab_p
casacore::Bool sjy_make_visibilities(casacore::TempImage< casacore::Float > *tmodimage, casacore::LogIO &os, const casacore::Int rawspwid, const casacore::Int fldid, const casacore::String &clname, const casacore::String &timerange="", const casacore::String &scanstr="", const casacore::String &obsidstr="", const casacore::String &intentstr="", const casacore::Vector< casacore::Double > &freqofscale=casacore::Vector< casacore::Double >(0), const casacore::Vector< casacore::Double > &scale=casacore::Vector< casacore::Double >(0))
Returns whether it might have made any visibilities.
casacore::Bool correct(const casacore::Bool doparallactic, const casacore::Quantity &t)
Correct the visibility data (OBSERVED->CORRECTED)
casacore::Float padding_p
casacore::Vector< casacore::String > fluxscale_p
casacore::Record clean(const casacore::String &algorithm, const casacore::Int niter, const casacore::Float gain, const casacore::Quantity &threshold, const casacore::Bool displayProgress, const casacore::Vector< casacore::String > &model, const casacore::Vector< casacore::Bool > &fixed, const casacore::String &complist, const casacore::Vector< casacore::String > &mask, const casacore::Vector< casacore::String > &restored, const casacore::Vector< casacore::String > &residual, const casacore::Vector< casacore::String > &psf=casacore::Vector< casacore::String >(0), const casacore::Bool firstrun=true)
Clean algorithm.
casacore::Vector< casacore::Int > dataspectralwindowids_p
casacore::Bool apparentSensitivity(casacore::Double &effSensitivity, casacore::Double &relToNat)
Apparent sensitivity calculator Accounts for gridding weights and assumes casacore::MS weights have c...
const Double e
e and functions thereof:
casacore::String imageName()
A class for manipulating groups of components.
Distribute LogMessages to their destination(s)
casacore::Int sdConvSupport_p
casacore::MFrequency::Types freqFrame_p
casacore::IPosition imageshape() const
Return the image shape.
casacore::Vector< casacore::Int > decideNPolPlanes(casacore::Bool checkwithMS)
casacore::Bool summary()
Output a summary of the state of the object.
ATerm * createTelescopeATerm(casacore::MeasurementSet &ms, const casacore::Bool &isATermOn=true)
casacore::Int imageNchan_p
casacore::MFrequency mfImageStep_p
casacore::Bool adviseChanSelex(casacore::Double &freqStart, casacore::Double &freqEnd, const casacore::Double &freqStep, const casacore::MFrequency::Types &freqframe, casacore::Vector< casacore::Vector< casacore::Int > > &spw, casacore::Vector< casacore::Vector< casacore::Int > > &start, casacore::Vector< casacore::Vector< casacore::Int > > &nchan, const casacore::String &msname="", const casacore::Int fieldid=0, const casacore::Bool getFreqRange=false, const casacore::String spwselection="")
Advise the chanselection needed for the frequency range or give the frequency range for a give spwsel...
casacore::Vector< casacore::Int > datafieldids_p
casacore::Bool regionmask(const casacore::String &maskimage, casacore::Record *imageRegRec, casacore::Matrix< casacore::Quantity > &blctrcs, casacore::Matrix< casacore::Float > &circles, const casacore::Float &value=1.0)
Make a region either from record or array of blc trc (casacore::Matrix(nboxes,4)) into a mask image v...
static void transferHistory(casacore::LoggerHolder &imageLog, casacore::ROMSHistoryColumns &msHis)
Helper function to transfer history table to a logger holder which can be stored in images...
casacore::Bool createSkyEquation(const casacore::String complist="")
The base class to represent the Aperture-Term of the Measurement Equation.
casacore::Bool makeimage(const casacore::String &type, const casacore::String &imageName, const casacore::String &complexImageName="", const casacore::Bool verbose=true)
Make plain image + keep the complex image as well if complexImageName != "".
casacore::Unit sjy_setup_arrs(casacore::Vector< casacore::Vector< Flux< casacore::Double > > > &returnFluxes, casacore::Vector< casacore::Vector< Flux< casacore::Double > > > &returnFluxErrs, casacore::Vector< casacore::Vector< casacore::Double > > &fluxUsed, casacore::Vector< casacore::String > &tempCLs, casacore::Vector< casacore::Vector< casacore::MFrequency > > &mfreqs, const casacore::ROMSSpWindowColumns &spwcols, const casacore::uInt nspws, const casacore::Vector< casacore::Int > &selToRawSpwIds, const casacore::Bool chanDep)
Helper functions to hide some setjy code.
casacore::Float sdScale_p
casacore::Bool linearmosaic(const casacore::String &mosaic, const casacore::String &fluxscale, const casacore::String &sensitivity, const casacore::Vector< casacore::String > &images, const casacore::Vector< casacore::Int > &fieldids)
Make a linear mosaic of several images.
casacore::Int imageStart_p
String: the storage and methods of handling collections of characters.
ViewerProxy * viewer_p
viewer connection
casacore::Bool clipvis(const casacore::Quantity &threshold)
Clip visibilities.
casacore::Bool nnls(const casacore::String &algorithm, const casacore::Int niter, const casacore::Float tolerance, const casacore::Vector< casacore::String > &model, const casacore::Vector< casacore::Bool > &fixed, const casacore::String &complist, const casacore::Vector< casacore::String > &fluxMask, const casacore::Vector< casacore::String > &dataMask, const casacore::Vector< casacore::String > &restored, const casacore::Vector< casacore::String > &residual)
NNLS algorithm.
virtual casacore::Bool openSubTables()
open all the subtables as userNoReadLock
VisibilityIterator iterates through one or more writable MeasurementSets.
casacore::Bool assertDefinedImageParameters() const
casacore::Bool ft(const casacore::Vector< casacore::String > &model, const casacore::String &complist, casacore::Bool incremental=false, const casacore::Double phasecenterTime=-1.0)
Fourier transform the model and componentlist.
casacore::Bool multiFields_p
casacore::Bool clipimage(const casacore::String &image, const casacore::Quantity &threshold)
Clip on casacore::Stokes I.
casacore::String vpTableStr_p
Image Sky Model: Image-based Model for the Sky Brightness.
casacore::Int stoplargenegatives_p
static casacore::Bool regionToMask(casacore::ImageInterface< casacore::Float > &maskImage, casacore::ImageRegion &imagreg, const casacore::Float &value=1.0)
copy imageregion to pixels on image as value given
casacore::Bool pixon(const casacore::String &algorithm, const casacore::Quantity &sigma, const casacore::String &model)
pixon algorithm
casacore::Bool settaylorterms(const casacore::Int intaylor, const casacore::Double inreffreq)
Set the number of taylor series terms in the expansion of the image as a function of frequency...
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
virtual void writeHistory(casacore::LogIO &os)
Just to create the SORTED_TABLE if one can virtual void makeVisSet(casacore::MeasurementSet& ms...
casacore::Vector< casacore::Int > dataStep_p
ROVisibilityIterator iterates through one or more readonly MeasurementSets.
casacore::Int numthreads_p
numthreads
Class holding a hierarchy of loggers.
casacore::Cube< casacore::Int > spwchansels_p
TT.
casacore::String epJTableName_p
casacore::CountedPtr< casacore::MSHistoryHandler > hist_p
casacore::Bool doPointing
casacore::Bool sjy_calciflux(const casacore::Vector< casacore::MFrequency > &freqs, const casacore::MFrequency &reffreq, const casacore::Double refflux, const casacore::Vector< casacore::Double > &vspix, casacore::Vector< casacore::Double > &iflux)
casacore::Bool addMasksToSkyEquation(const casacore::Vector< casacore::String > &mask, const casacore::Vector< casacore::Bool > &fixed=casacore::Vector< casacore::Bool >(0))
Add or replace the masks.
static casacore::Bool mask(const casacore::String &mask, const casacore::String &imageName, const casacore::Quantity &threshold)
Make a mask image.
casacore::Bool scaleInfoValid_p
casacore::Float cyclespeedup_p
casacore::LogSink logSink_p
sink used to store history mainly
virtual ~Imager()
Destructor.
casacore::Float pbLimit_p
casacore::Bool setdata(const casacore::String &mode, const casacore::Vector< casacore::Int > &nchan, const casacore::Vector< casacore::Int > &start, const casacore::Vector< casacore::Int > &step, const casacore::MRadialVelocity &mStart, const casacore::MRadialVelocity &mStep, const casacore::Vector< casacore::Int > &spectralwindowids, const casacore::Vector< casacore::Int > &fieldid, const casacore::String &msSelect="", const casacore::String &timerng="", const casacore::String &fieldnames="", const casacore::Vector< casacore::Int > &antIndex=casacore::Vector< casacore::Int >(), const casacore::String &antnames="", const casacore::String &spwstring="", const casacore::String &uvdist="", const casacore::String &scan="", const casacore::String &intent="", const casacore::String &obs="", const casacore::Bool usemodelCol=false, const casacore::Bool be_calm=false)
Select some data.
casacore::Bool calcImFreqs(casacore::Vector< casacore::Double > &imfreqs, casacore::Vector< casacore::Double > &imfreqres, const casacore::MFrequency::Types &oldRefFrame, const casacore::MEpoch &obsEpoch, const casacore::MPosition &obsPosition, const casacore::Double &restFreq)
spectral gridding calculation for output images (use SubMS::calcChanFreqs)
casacore::MRadialVelocity mDataStep_p
casacore::Bool getWeightGrid(casacore::Block< casacore::Matrix< casacore::Float > > &weightgrid, const casacore::String &type, const casacore::Vector< casacore::String > &weightImagenames=casacore::Vector< casacore::String >())
These are utility functions when weights from different imager instances need to reconciled in parall...
WF Image Sky Model: Image Sky Model implementing the WF Clean algorithm.
casacore::String make_comp(const casacore::String &objName, const casacore::String &standard, const casacore::MEpoch &mtime, const casacore::Vector< casacore::MFrequency > &freqv, const casacore::String &prefix)
Write a component list to disk, starting with prefix, using a setjy standard, and return the name of ...
casacore::Bool setSmallScaleBias(const casacore::Float inbias)
set bias
Interconvert pixel and world coordinates.
casacore::Block< casacore::CountedPtr< casacore::PagedImage< casacore::Float > > > fluxMasks_p
ComponentList * componentList_p
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
casacore::Table fieldtab_p
casacore::CountedPtr< casacore::MeasurementSet > mssel_p
casacore::Quantity distance_p
casacore::Bool sjy_calcquflux(const casacore::Vector< casacore::Double > &pipars, const casacore::Vector< casacore::Double > &papars, const casacore::Vector< casacore::Double > &iflux, const casacore::Double rotMeas, const casacore::Vector< casacore::MFrequency > &freqs, const casacore::MFrequency &reffreq, casacore::Vector< casacore::Double > &qflux, casacore::Vector< casacore::Double > &uflux)
void setObsInfo(casacore::ObsInfo &obsinfo)
defines interface for the Fourier Transform Machine
casacore::uInt count_visibilities(ROVisibilityIterator *rvi, const casacore::Bool unflagged_only, const casacore::Bool must_have_imwt)
Return the # of visibilities accessible to *rvi, optionally excluding flagged ones (if unflagged_only...
casacore::Bool pbguts(casacore::ImageInterface< casacore::Float > &in, casacore::ImageInterface< casacore::Float > &out, const casacore::MDirection &, const casacore::Quantity &)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
casacore::Bool open(casacore::MeasurementSet &thems, casacore::Bool compress=false, casacore::Bool useModel=false)
Close the current ms, and replace it with the supplied ms.