casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Imager.h
Go to the documentation of this file.
1 //# Imager.h: Imager functionality sits here;
2 //# Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //#
25 //# $Id$
26 
27 #ifndef SYNTHESIS_IMAGER_H
28 #define SYNTHESIS_IMAGER_H
29 
30 #include <casa/aips.h>
31 #include <casa/OS/Timer.h>
32 #include <casa/Containers/Record.h>
34 #include <casa/Arrays/IPosition.h>
35 #include <casa/Quanta/Quantum.h>
37 
40 //#include <measures/Measures/MDirection.h
43 
46 
55 
56 
57 namespace casacore{
58 
59 class MSHistoryHandler;
60 class MeasurementSet;
61 class MDirection;
62 class MFrequency;
63 class File;
64 template<class T> class ImageInterface;
65 }
66 
67 namespace casa { //# NAMESPACE CASA - BEGIN
68 
69 // Forward declarations
70 class VisSet;
71 class VisImagingWeight_p;
72 class PBMath;
73 class VPSkyJones;
74 class EPJones;
75 #if ! defined(WITHOUT_DBUS)
76 class ViewerProxy;
77 #endif
78 // <summary> Class that contains functions needed for imager </summary>
79 
80 
81 class Imager
82 {
83  public:
84  // Default constructor
85 
86  Imager();
87 
88  Imager(casacore::MeasurementSet& ms, casacore::Bool compress=false, casacore::Bool useModel=false);
89  Imager(casacore::MeasurementSet& ms, casacore::Bool compress=false);
90 
91  // Copy constructor and assignment operator
92  Imager(const Imager&);
93  Imager& operator=(const Imager&);
94 
95  // Destructor
96  virtual ~Imager();
97 
98  // open all the subtables as userNoReadLock
99  virtual casacore::Bool openSubTables();
100 
101 
102  // Lock the ms and its subtables
103  virtual casacore::Bool lock();
104 
105  // Unlock the ms and its subtables
106  virtual casacore::Bool unlock();
107 
108 
109  // Utility function to do channel selection
110 
112  casacore::String& dataMode,
115  casacore::MRadialVelocity& mDataStart,
116  casacore::MRadialVelocity& mDataStep);
117  //Utility function to check coordinate match with existing image
118 
119  virtual casacore::Bool checkCoord(const casacore::CoordinateSystem& coordsys,
120  const casacore::String& imageName);
121 
122  virtual void setImageParam(casacore::Int& nx, casacore::Int& ny, casacore::Int& npol, casacore::Int& nchan);
123 
124  //VisSet and resort
125  virtual void makeVisSet(casacore::MeasurementSet& ms,
126  casacore::Bool compress=false, casacore::Bool mosaicOrder=false);
127  //Just to create the SORTED_TABLE if one can
128  //virtual void makeVisSet(casacore::MeasurementSet& ms,
129  // casacore::Bool compress=false, casacore::Bool mosaicOrder=false);
130 
131  virtual void writeHistory(casacore::LogIO& os);
132 
133  virtual void writeCommand(casacore::LogIO& os);
134 
135  //make an empty image
137 
138  //Functions to make Primary beams
140  casacore::Bool useSymmetricBeam=true);
142  const casacore::String& telescopeName, const casacore::String& diskPBName,
143  casacore::Bool useSymmetricBeam=true, casacore::Double dishdiam=-1.0);
144 
146  const casacore::Table& vpTable, const casacore::String& diskPBName);
147 
149 
150  casacore::Bool makePBImage(const casacore::CoordinateSystem& imageCoord, PBMath& pbMath, const casacore::String& diskPBName);
151 
153 
154  void setObsInfo(casacore::ObsInfo& obsinfo);
156 // Close the current ms, and replace it with the supplied ms.
157  // Optionally compress the attached calibration data
158  // columns if they are created here.
159  casacore::Bool open(casacore::MeasurementSet &thems, casacore::Bool compress=false, casacore::Bool useModel=false);
160 
161  // Flush the ms to disk and detach from the ms file. All function
162  // calls after this will be a no-op.
164 
165  // Return the name of the MeasurementSet
166  casacore::String name() const;
167 
168  // The following setup methods define the state of the imager.
169  // <group>
170  // Set image construction parameters
171  virtual casacore::Bool setimage(const casacore::Int nx, const casacore::Int ny,
172  const casacore::Quantity& cellx, const casacore::Quantity& celly,
173  const casacore::String& stokes,
174  casacore::Bool doShift,
175  const casacore::MDirection& phaseCenter,
176  const casacore::Quantity& shiftx, const casacore::Quantity& shifty,
177  const casacore::String& mode, const casacore::Int nchan,
178  const casacore::Int start, const casacore::Int step,
179  const casacore::MRadialVelocity& mStart, const casacore::MRadialVelocity& mStep,
180  const casacore::Vector<casacore::Int>& spectralwindowids, const casacore::Int fieldid,
181  const casacore::Int facets, const casacore::Quantity& distance);
182 
183  virtual casacore::Bool defineImage(const casacore::Int nx, const casacore::Int ny,
184  const casacore::Quantity& cellx, const casacore::Quantity& celly,
185  const casacore::String& stokes,
186  const casacore::MDirection& phaseCenter,
187  const casacore::Int fieldid,
188  const casacore::String& mode, const casacore::Int nchan,
189  const casacore::Int start, const casacore::Int step,
190  const casacore::MFrequency& mFreqStart,
191  const casacore::MRadialVelocity& mStart,
192  const casacore::Quantity& qStep,
193  const casacore::Vector<casacore::Int>& spectralwindowids,
194  const casacore::Int facets=1,
195  const casacore::Quantity& restFreq=casacore::Quantity(0,"Hz"),
197  const casacore::Quantity& distance=casacore::Quantity(0,"m"),
198  const casacore::Bool trackSource=false, const casacore::MDirection&
199  trackDir=casacore::MDirection(casacore::Quantity(0.0, "deg"),
200  casacore::Quantity(90.0, "deg")),
201  const casacore::String& projection=casacore::String("SIN"));
202  // Set the data selection parameters
203 
204  // The parameters useModelcol and readonly is dummy here
205  //as they are useful for the ImagerMultiMS version only
206  virtual casacore::Bool setDataPerMS(const casacore::String& msname, const casacore::String& mode,
207  const casacore::Vector<casacore::Int>& nchan,
208  const casacore::Vector<casacore::Int>& start,
210  const casacore::Vector<casacore::Int>& spectralwindowids,
211  const casacore::Vector<casacore::Int>& fieldid,
212  const casacore::String& msSelect="",
213  const casacore::String& timerng="",
214  const casacore::String& fieldnames="",
216  const casacore::String& antnames="",
217  const casacore::String& spwstring="",
218  const casacore::String& uvdist="",
219  const casacore::String& scan="",
220  const casacore::String& intent="",
221  const casacore::String& obs="",
222  const casacore::Bool useModelCol=false,
223  const casacore::Bool readonly=false);
224 
225  // Select some data.
226  // Sets nullSelect_p and returns !nullSelect_p.
227  // be_calm: lowers the logging level of some messages if true.
229  const casacore::Vector<casacore::Int>& start,
231  const casacore::MRadialVelocity& mStep,
232  const casacore::Vector<casacore::Int>& spectralwindowids,
233  const casacore::Vector<casacore::Int>& fieldid,
234  const casacore::String& msSelect="",
235  const casacore::String& timerng="",
236  const casacore::String& fieldnames="",
238  const casacore::String& antnames="",
239  const casacore::String& spwstring="",
240  const casacore::String& uvdist="",
241  const casacore::String& scan="",
242  const casacore::String& intent="",
243  const casacore::String& obs="",
244  const casacore::Bool usemodelCol=false,
245  const casacore::Bool be_calm=false);
246 
247  // Set the processing options
248  casacore::Bool setoptions(const casacore::String& ftmachine, const casacore::Long cache, const casacore::Int tile,
249  const casacore::String& gridfunction, const casacore::MPosition& mLocation,
250  const casacore::Float padding,
251  const casacore::Int wprojplanes=-1,
252  const casacore::String& epJTableName="",
253  const casacore::Bool applyPointingOffsets=true,
254  const casacore::Bool doPointingCorrection=true,
255  const casacore::String& cfCacheDirName="",
256  const casacore::Float& rotpastep=5.0,
257  const casacore::Float& computepastep=360.0,
258  const casacore::Float& pbLimit=5.0e-2,
259  const casacore::String& freqinterpmethod="linear",
260  const casacore::Int imageTileSizeInPix=0,
261  const casacore::Bool singleprecisiononly=false,
262  const casacore::Int numthreads=-1,
263  const casacore::Bool psTermOn=true,
264  const casacore::Bool aTermOn=true,
265  const casacore::Bool mTermOn=false,
266  const casacore::Bool wbAWP=false,
267  const casacore::Bool conjBeams=true);
268 
269  // Set the single dish processing options
271  const casacore::Int convsupport=-1, casacore::String pointingColToUse="DIRECTION",
272  const casacore::Quantity truncate=casacore::Quantity(),
273  const casacore::Quantity gwidth=casacore::Quantity(),
274  const casacore::Quantity jwidth=casacore::Quantity(),
275  const casacore::Float minweight=0.,
276  const casacore::Bool clipminmax=false);
277 
278  // Set the voltage pattern
280  const casacore::Bool defaultVP,
281  const casacore::String& vpTable,
282  const casacore::Bool doSquint,
283  const casacore::Quantity &parAngleInc,
284  const casacore::Quantity &skyPosThreshold,
285  casacore::String defaultTel="",
286  const casacore::Bool verbose=true);
287 
288  // Set the scales to be searched in Multi Scale clean
289  casacore::Bool setscales(const casacore::String& scaleMethod, // "nscales" or "uservector"
290  const casacore::Int inscales,
291  const casacore::Vector<casacore::Float>& userScaleSizes);
292  // set bias
294 
295  // Set the number of taylor series terms in the expansion of the
296  // image as a function of frequency.
298  const casacore::Double inreffreq);
299 
300  // </group>
301 
302  // Advise on suitable values
303  casacore::Bool advise(const casacore::Bool takeAdvice, const casacore::Float amplitudeloss,
304  const casacore::Quantity& fieldOfView,
305  casacore::Quantity& cell, casacore::Int& npixels, casacore::Int& facets,
306  casacore::MDirection& phaseCenter);
307 
308  // Output a summary of the state of the object
310 
311  // Return the state of the object as a string
313 
314  // Return the # of visibilities accessible to *rvi, optionally excluding
315  // flagged ones (if unflagged_only is true) and/or ones without imaging
316  // weights (if must_have_imwt is true).
318  const casacore::Bool unflagged_only, const casacore::Bool must_have_imwt);
319 
320  // Return the image coordinates
322  // new version
324 
325  // Return the image shape
327 
328  // Weight the MeasurementSet
329  //For some time of weighting briggs/uniform ...one can do it on a per field basis to calculate
330  //weight density distribution. If that is what is wanted multiField should be set to true
331  //multifield is inoperative for natural, radial weighting
332  casacore::Bool weight(const casacore::String& algorithm, const casacore::String& rmode,
333  const casacore::Quantity& noise, const casacore::Double robust,
334  const casacore::Quantity& fieldofview, const casacore::Int npixels, const casacore::Bool multiField=false);
335 
336  // Filter the MeasurementSet
338  const casacore::Quantity& bpa);
339 
340  // Apply a uvrange
341  casacore::Bool uvrange(const casacore::Double& uvmin, const casacore::Double& uvmax);
342 
343  // Sensitivity
344  casacore::Bool sensitivity(casacore::Quantity& pointsourcesens, casacore::Double& relativesens, casacore::Double& sumwt,
345  casacore::Double& effectiveBandwidth, casacore::Double& effectiveIntegration, casacore::Int& mBaselines,
350  casacore::Vector<casacore::Vector<casacore::Double> >& sumInverseVarianceChan);
351 
352  // Apparent sensitivity calculator
353  // Accounts for gridding weights and assumes casacore::MS weights have correct units
355  casacore::Double& relToNat);
356 
357  // Make plain image + keep the complex image as well if complexImageName != "".
358  casacore::Bool makeimage(const casacore::String& type, const casacore::String& imageName,
359  const casacore::String& complexImageName="", const casacore::Bool verbose=true);
360 
361  // Fill in a region of a mask
364 
365  //Make a region either from record or array of blc trc
366  //(casacore::Matrix(nboxes,4)) into a mask image
367  //value is the value of the mask pixels
368  //circular masks has form casacore::Matrix(ncircles,3)
369  //where the 3 values on a row are radius, x, y pixel values
370  casacore::Bool regionmask(const casacore::String& maskimage, casacore::Record* imageRegRec,
372  const casacore::Float& value=1.0);
373 
374  static casacore::Bool regionToImageMask(const casacore::String& maskimage, casacore::Record* imageRegRec,
377  const casacore::Float& value=1.0);
378  // Clip on casacore::Stokes I
379  casacore::Bool clipimage(const casacore::String& image, const casacore::Quantity& threshold);
380 
381  // Make a mask image
382  static casacore::Bool mask(const casacore::String& mask, const casacore::String& imageName,
383  const casacore::Quantity& threshold);
384 
385  // Restore
388 
389  // similar to restore except this is to be called if you fiddle with the model and complist
390  // outside of this object (say you clip stuff etc) ...keep the sm_p and se_p state but just calculate new residuals and
391  // 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).
394 
395  // Setbeam
397 
398  // Residual
401 
402  // Approximate PSF
404 
405  // Smooth
408  casacore::ImageBeamSet& mbeam,
409  casacore::Bool normalizeVolume);
410 
411  // Clean algorithm
412  casacore::Record clean(const casacore::String& algorithm,
413  const casacore::Int niter,
414  const casacore::Float gain,
415  const casacore::Quantity& threshold,
416  const casacore::Bool displayProgress,
418  const casacore::String& complist,
420  const casacore::Vector<casacore::String>& restored,
421  const casacore::Vector<casacore::String>& residual,
423  const casacore::Bool firstrun=true);
424 
425  casacore::Record iClean(const casacore::String& algorithm,
426  const casacore::Int niter,
427  const casacore::Double gain,
428  //const casacore::String& threshold,
429  const casacore::Quantity& threshold,
430  const casacore::Bool displayprogress,
432  const casacore::Vector<casacore::Bool>& keepfixed, const casacore::String& complist,
435  const casacore::Vector<casacore::String>& residual,
436  const casacore::Vector<casacore::String>& psfnames,
437  const casacore::Bool interactive, const casacore::Int npercycle,
438  const casacore::String& masktemplate);
439 
440  // MEM algorithm
441  casacore::Bool mem(const casacore::String& algorithm,
442  const casacore::Int niter, const casacore::Quantity& sigma,
443  const casacore::Quantity& targetflux,
444  const casacore::Bool constrainflux,
445  const casacore::Bool displayProgress,
447  const casacore::String& complist,
450  const casacore::Vector<casacore::String>& restored,
451  const casacore::Vector<casacore::String>& residual);
452 
453  // pixon algorithm
454  casacore::Bool pixon(const casacore::String& algorithm,
455  const casacore::Quantity& sigma,
456  const casacore::String& model);
457 
458  // NNLS algorithm
459  casacore::Bool nnls(const casacore::String& algorithm, const casacore::Int niter, const casacore::Float tolerance,
461  const casacore::String& complist,
463  const casacore::Vector<casacore::String>& restored,
464  const casacore::Vector<casacore::String>& residual);
465 
466  // Multi-field control parameters
467  //flat noise is the parameter that control the search of clean components
468  //in a flat noise image or an optimum beam^2 image
469  casacore::Bool setmfcontrol(const casacore::Float cyclefactor,
470  const casacore::Float cyclespeedup,
471  const casacore::Float cyclemaxpsffraction,
472  const casacore::Int stoplargenegatives,
473  const casacore::Int stoppointmode,
474  const casacore::String& scaleType,
475  const casacore::Float minPB,
476  const casacore::Float constPB,
477  const casacore::Vector<casacore::String>& fluxscale,
478  const casacore::Bool flatnoise=true);
479 
480  // Feathering algorithm
482  const casacore::String& highres,
483  const casacore::String& lowres,
484  const casacore::String& lowpsf, const casacore::Float dishDiam=-1.0, const casacore::Bool lowPassFilterSD=false);
485 
486  // Apply or correct for Primary Beam or Voltage Pattern
487  casacore::Bool pb(const casacore::String& inimage,
488  const casacore::String& outimage,
489  const casacore::String& incomps,
490  const casacore::String& outcomps,
491  const casacore::String& operation,
492  const casacore::MDirection& pointngCenter,
493  const casacore::Quantity& pa,
494  const casacore::String& pborvp);
495 
496  // Make a linear mosaic of several images
498  const casacore::String& fluxscale,
499  const casacore::String& sensitivity,
501  const casacore::Vector<casacore::Int>& fieldids);
502 
503  // Fourier transform the model and componentlist.
504  // Returns its nominal success value.
506  //phasecentertime is usually the time in the data unless
507  //you want to use a specific time which you can set here
509  casacore::Bool incremental=false, const casacore::Double phasecenterTime=-1.0);
510 
511  // Compute the model visibility using specified source flux densities
512  casacore::Bool setjy(const casacore::Int fieldid, const casacore::Int spectralwindowid,
513  const casacore::Vector<casacore::Double>& fluxDensity, const casacore::String& standard);
515  const casacore::String& fieldnames, const casacore::String& spwstring,
516  const casacore::Vector<casacore::Double>& fluxDensity, const casacore::String& standard);
517 
518  //Setjy with model image. If chanDep=true then the scaling is calculated on a
519  //per channel basis for the model image...otherwise the whole spw gets the
520  //same flux density.
521  //casacore::Bool setjy(const casacore::Vector<casacore::Int>& fieldid,
523  const casacore::Vector<casacore::Int>& spectralwindowid,
524  const casacore::String& fieldnames, const casacore::String& spwstring,
525  const casacore::String& model,
526  const casacore::Vector<casacore::Double>& fluxDensity, const casacore::String& standard,
527  const casacore::Bool chanDep=false, //const casacore::Double spix=0.0,
533  const casacore::Double& rotMeas=0.0,
534  const casacore::String& timerange="", const casacore::String& scanstr="",
535  const casacore::String& intentstr="", const casacore::String& obsidstr="",
536  const casacore::String& interpolation="nearest");
537 
538  // Make an empty image
539  casacore::Bool make(const casacore::String& model);
540 
541  // make a model from a SD image.
542  // This model then can be used as initial clean model to include the
543  // shorter spacing.
544  casacore::Bool makemodelfromsd(const casacore::String& sdImage, const casacore::String& modelimage,
545  const casacore::String& lowPSF,
546  casacore::String& maskImage);
547 
548  // Write a component list to disk, starting with prefix, using a setjy
549  // standard, and return the name of the list.
550  casacore::String make_comp(const casacore::String& objName, const casacore::String& standard,
551  const casacore::MEpoch& mtime, const casacore::Vector<casacore::MFrequency>& freqv,
552  const casacore::String& prefix);
553 
554  // Clone an image
555  static casacore::Bool clone(const casacore::String& imageName, const casacore::String& newImageName);
556 
557  // Fit the psf
559 
560  // Correct the visibility data (OBSERVED->CORRECTED)
561  casacore::Bool correct(const casacore::Bool doparallactic, const casacore::Quantity& t);
562 
563  // Plot the uv plane
564  casacore::Bool plotuv(const casacore::Bool rotate);
565 
566  // Plot the visibilities
567  casacore::Bool plotvis(const casacore::String& type, const casacore::Int increment);
568 
569  // Plot the weights
570  casacore::Bool plotweights(const casacore::Bool gridded, const casacore::Int increment);
571 
572  // Plot a summary
574 
575  // Clip visibilities
576  casacore::Bool clipvis(const casacore::Quantity& threshold);
577 
578 
579  //Check if can proceed with this object
580  casacore::Bool valid() const;
581 
582 
583  //Interactive mask drawing
584  //forceReload..forces the viewer to dump previous image that is being displayed
585  casacore::Int interactivemask(const casacore::String& imagename, const casacore::String& maskname,
586  casacore::Int& niter, casacore::Int& ncycles, casacore::String& threshold, const casacore::Bool forceReload=false);
587 
588 
589  //helper function to copy a mask from one image to another
590 
592 
593 
594  // Supports the "[] or -1 => everything" convention using the rule:
595  // If v is empty or only has 1 element, and it is < 0,
596  // replace v with 0, 1, ..., nelem - 1.
597  // Returns whether or not it modified v.
598  // If so, v is modified in place.
600 
601  //spectral gridding calculation for output images (use SubMS::calcChanFreqs)
603  const casacore::MFrequency::Types& oldRefFrame,
604  const casacore::MEpoch& obsEpoch, const casacore::MPosition& obsPosition,
605  const casacore::Double& restFreq);
606 
607  // Advise the chanselection needed for the frequency range or
608  // give the frequency range for a give spwselection if getFreqRange==true
609  // if the parameter msname is used then the MSs associated associated with
610  // this object (that have been either 'open'ed or 'selectvis'ed) are ignored
611  // In this mode it is a helper function to the general world ...no need to
612  // open or selectvis. You need to specify the field_id for which this calculation is
613  // being done for in the helper mode.
614  // If you have already set casacore::MS's and selected data and msname="" then
615  // the calulation is done for the field(s) selected in selectvis.
616  // getFreqRange=true then the freqrange in the frame and spwselection you choose is
617  // returned in freqStart and freqEnd (in the case of msname="" then it is for the fields
618  //and spw you have chosen in selectvis).
620  const casacore::Double& freqStep, const casacore::MFrequency::Types& freqframe,
623  const casacore::Int fieldid=0, const casacore::Bool getFreqRange=false,
624  const casacore::String spwselection="");
625 
626 
627  //These are utility functions when weights from different imager instances
628  //need to reconciled in parallel gridding by different instances of imagers
629  //for example.
630  // when type is "imaging"
631  // getweightGrid will get the weight density for uniform style imaging weight
632  // the casacore::Block elements are for different fields if independent field weighting
633  // was done.
634  // when type is "ftweight"..then a casacore::Vector of string is expected in weightimage
635  // which is of the same length as the number of models put in clean etc
636 
640 
641  // Automatic evaluation of map extent for given visibility.
642  //
643  //
644  // @param[in] referenceFrame reference direction frame
645  // @param[in] movingSource name of moving source
646  // @param[in] pointingColumn pointing column to use
647  // @param[out] center center of the map
648  // @param[out] blc bottom left corner of the map
649  // @param[out] trc top right corner of the map
650  // @param[out] extent map extent
651  //
652  // @return
653  virtual casacore::Bool mapExtent(const casacore::String &referenceFrame, const casacore::String &movingSource,
656 
657  // Caluculate sampling interval of Raster map
658  //
659  //
660  // @param[in] referenceFrame reference direction frame
661  // @param[in] movingSource name of moving source
662  // @param[in] pointingColumn pointing column to use
663  // @param[in] antenna antenna selection string, e.g., '0&&&'
664  // @param[out] sampling the sampling interval in scan direction and orthogonal direction
665  // @param[out] positionAngle position angle of scan
666  //
667  // @return
668  virtual casacore::Bool pointingSampling(const casacore::String &referenceFrame, const casacore::String &movingSource,
669  const casacore::String &pointingColumn, const casacore::String &antenna,
671 
672  //Helper function to transfer history table to a logger holder
673  //which can be stored in images
675 
676 protected:
677 
700  //What should be the tile volume on disk
702 
703 
704 
716 
718  casacore::Bool redoSkyModel_p; // if clean is run multiply ..use this to check
719  // if setimage was changed hence redo the skyModel.
726  casacore::String imageMode_p; // channel, (optical)velocity, mfs, or frequency
753 
757 
759 
761 
762  // special mf control parms, etc
769  casacore::String scaleType_p; // type of image-plane scaling: NONE, SAULT
770  casacore::Float minPB_p; // minimum value of generalized-PB pattern
771  casacore::Float constPB_p; // above this level, constant flux-scale
772 
775 
779  //TT
784 
786 
788  casacore::String vpTableStr_p; // description of voltage patterns for various telescopes
789  // in the MS
793  casacore::Bool doDefaultVP_p; // make default VPs, rather than reading in a vpTable
794 
795 
796  casacore::Bool doMultiFields_p; // Do multiple fields?
797  casacore::Bool multiFields_p; // multiple fields have been specified in setdata
798 
799  casacore::Bool doWideBand_p; // Do Multi Frequency Synthesis Imaging
800  casacore::String freqInterpMethod_p; //frequency interpolation mode
801 
803 
804  // Set the defaults
805  void defaults();
806 
807  // check if it is dettahced from ms.
808  casacore::Bool detached() const;
809 
810  // Create the FTMachines when necessary or when the control parameters
811  // have changed.
813 
814  void openSubTable (const casacore::Table & otherTable, casacore::Table & table, const casacore::TableLock & tableLock);
815 
816  casacore::Bool removeTable(const casacore::String& tablename);
818  const casacore::String complist);
822  const casacore::String complist="");
824  const casacore::String complist="");
828  const casacore::String complist="");
832  const casacore::Vector<casacore::String>& fluxMask,
833  const casacore::String complist="");
835  void destroySkyEquation();
836 
837  //add residual to the private vars or create residual images
839  // Add the residuals to the SkyEquation
841 
842  // Add or replace the masks
844 
845  // Get the rest frequency ..returns 1 element in restfreq
846  // if user specified or try to get the info from the SOURCE table
848 
850 
851  // names of flux scale images
853 
854  // Helper functions to hide some setjy code.
857  casacore::Vector<casacore::Vector<casacore::Double> >& fluxUsed, // mainly for logging purpose
860  const casacore::ROMSSpWindowColumns& spwcols, const casacore::uInt nspws,
861  const casacore::Vector<casacore::Int>& selToRawSpwIds, const casacore::Bool chanDep);
862  // Returns whether it might have made any visibilities.
864  //casacore::Bool sjy_make_visibilities(casacore::Block<casacore::CountedPtr<casacore::TempImage<casacore::Float> > >& tmodimages, casacore::LogIO& os,
865  //const casacore::Int rawspwid, const casacore::Int fldid,
866  // for new one
867  // const casacore::Vector<casacore::Int>& rawspwids, const casacore::Int fldid,
868  const casacore::Int rawspwid, const casacore::Int fldid,
869  const casacore::String& clname, const casacore::String& timerange="",
870  const casacore::String& scanstr="",
871  const casacore::String& obsidstr="",
872  const casacore::String& intentstr="",
875  // Concatenate multiple CLs
877  // Returns whether it found a source.
882  //casacore::Vector<casacore::Double>& fluxUsed,
884  casacore::String& fluxScaleName, casacore::MEpoch& aveEpoch,
886  const casacore::String& model, const casacore::String& fieldName,
887  const casacore::ROMSColumns& msc, const casacore::Int fldid,
888  const casacore::MDirection& fieldDir, const casacore::Vector<casacore::Int>& selToRawSpwIds,
889  const casacore::String& standard);
890 
893  const casacore::Vector<casacore::Double>& fluxUsed,
894  const casacore::Vector<casacore::Int>& selToRawSpwIds,
896  const casacore::String& fieldName,
897  const casacore::MDirection& fieldDir,
901  const casacore::Double& rotMeas,
902  //const casacore::Vector<casacore::Double>& cppars,
903  const casacore::MFrequency& reffreq,
904  const casacore::MEpoch& aveEpoch,
905  const casacore::Int fldId);
906  //
907  // Returns NULL if no image is prepared.
912  const casacore::ROMSSpWindowColumns& spwcols,
913  //const casacore::Int rawspwid, const casacore::Bool chanDep,
914  const casacore::Vector<casacore::Int> rawspwids, const casacore::Bool chanDep,
916  //const casacore::uInt selspw, const casacore::String& fieldName,
917  const casacore::String& fieldName,
918  const casacore::MDirection& fieldDir, const casacore::Unit& freqUnit,
919  const casacore::Vector<casacore::Double>& fluxdens,
920  const casacore::Bool precompute,
921  //const casacore::Double spix,
923  const casacore::MFrequency& reffreq,
924  const casacore::MEpoch& aveEpoch, const casacore::Int fieldId);
925  // Returns true or throws up.
928 
929  // set a radius limit if the model image is one of the known source
930  // otherwise simply copy modimage to tmodimage
934 
937 
939  const casacore::Vector<casacore::Double>& iflux, const casacore::Double rotMeas,
943 
945 
948  const casacore::MDirection&,
949  const casacore::Quantity&);
950 
951  // Helper func for printing clean's restoring beam to the logger. May find
952  // the restoring beam as a side effect, so sm_p can't be const.
953  void printbeam(CleanImageSkyModel *sm_p, casacore::LogIO &os, const casacore::Bool firstrun=true);
954 
955  // Helper func for createFTMachine(). Returns phaseCenter_p as a casacore::String,
956  // *assuming* it is set. It does not check!
958 
959 
961  // Virtual methods to set the ImageSkyModel and SkyEquation.
962  // This allows derived class pimager to set parallelized
963  // specializations.
964  //
965  virtual void setWFCleanImageSkyModel()
966  {sm_p = new WFCleanImageSkyModel(facets_p, wfGridding_p); return;};
967 
969  {sm_p = new ClarkCleanImageSkyModel(); return;};
970  virtual void setSkyEquation();
971 
972  virtual void savePSF(const casacore::Vector<casacore::String>& psf);
973 
975 
976  //copy imageregion to pixels on image as value given
978 
979  //set the mosaic ft machine and right convolution function
980  virtual void setMosaicFTMachine(casacore::Bool useDoublePrec=false);
981 
982  // Makes a component list on disk containing cmp (with fluxval and cspectrum)
983  // named msname_p.fieldName.spw<spwid>.tempcl and returns the name.
985  const Flux<casacore::Double>& fluxval,
986  const ComponentShape& cmp,
987  const ConstantSpectrum& cspectrum) const;
988 
990 
991  //returns if mLocation_p is set (= non-default casacore::MPosition)
993 
994  // implementation of mapExtent
996  const casacore::String &referenceFrame, const casacore::String &movingSource,
999 
1001 
1002  casacore::String scaleMethod_p; // "nscales" or "uservector"
1008  casacore::Bool scaleInfoValid_p; // This means that we have set the information, not the scale beams
1011  // Everything here must be a real class since we make, handle and
1012  // destroy these.
1017 
1018  // Freq frame is good and valid conversions can be done (or not)
1020 
1021  // Preferred complex polarization representation
1023 
1024  //Whether to use model column or use it in memory on the fly
1026 
1027  //Force single precision always
1029  //sink used to store history mainly
1031 
1032 
1033  //
1034  // Objects required for pointing correction (ftmachine=PBWProject)
1035  //
1039  //SimplePlotterPtr plotter_p;
1041 
1042  //Track moving source stuff
1047 
1048  // viewer connection
1049 #if ! defined(WITHOUT_DBUS)
1051 #endif
1057  //numthreads
1061 };
1062 
1063 
1064 } //# NAMESPACE CASA - END
1065 
1066 #endif
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&lt;T&gt; objects.
Definition: IPosition.h:119
casacore::Float constPB_p
Definition: Imager.h:771
casacore::Block< casacore::CountedPtr< casacore::PagedImage< casacore::Float > > > masks_p
Definition: Imager.h:1014
A Measure: astronomical direction.
Definition: MDirection.h:174
casacore::Bool makePBImage(casacore::ImageInterface< casacore::Float > &pbImage, casacore::Bool useSymmetricBeam=true)
Functions to make Primary beams.
casacore::MRadialVelocity mDataStart_p
Definition: Imager.h:731
int prev_mask_id_p
Definition: Imager.h:1056
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
Definition: Imager.h:792
A Measure: position on Earth.
Definition: MPosition.h:79
casacore::String state()
Return the state of the object as a string.
int Int
Definition: aipstype.h:50
casacore::String cfCacheDirName_p
Definition: Imager.h:1037
casacore::String scaleMethod_p
Definition: Imager.h:1002
casacore::Float computePAStep_p
Definition: Imager.h:720
casacore::Quantity qjwidth_p
Definition: Imager.h:756
casacore::Bool setimaged_p
Definition: Imager.h:717
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
Definition: Imager.h:689
casacore::String name() const
Return the name of the MeasurementSet.
casacore::Bool doVP_p
Definition: Imager.h:746
casacore::String ftmachine_p
Definition: Imager.h:741
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
Definition: Imager.h:765
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
Definition: Imager.h:708
Main interface class to a read/write table.
Definition: Table.h:153
casacore::ObsInfo latestObsInfo_p
Definition: Imager.h:699
casacore::Quantity parAngleInc_p
in the MS
Definition: Imager.h:790
casacore::Bool doShift_p
Definition: Imager.h:738
int prev_image_id_p
Definition: Imager.h:1055
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
Definition: Imager.h:690
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
Definition: Imager.h:723
casacore::ObsInfo & latestObsInfo()
casacore::Quantity shiftx_p
Definition: Imager.h:739
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.
Definition: Imager.h:1022
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
Definition: Imager.h:705
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
Definition: Imager.h:1044
casacore::MPosition mLocation_p
Definition: Imager.h:745
casacore::Int stoppointmode_p
Definition: Imager.h:767
casacore::Bool approximatepsf(const casacore::String &psf)
Approximate PSF.
EPJones (pointing errors)
Definition: EPJones.h:56
casacore::Bool doWideBand_p
Definition: Imager.h:799
casacore::Bool doPBCorr
Definition: Imager.h:1038
casacore::String freqInterpMethod_p
Definition: Imager.h:800
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
Definition: Imager.h:760
casacore::Float smallScaleBias_p
Definition: Imager.h:1009
casacore::Table freqoffsettab_p
Definition: Imager.h:692
casacore::Bool avoidTempLatt_p
Definition: Imager.h:1059
casacore::Bool uvrange(const casacore::Double &uvmin, const casacore::Double &uvmax)
Apply a uvrange.
casacore::MRadialVelocity mImageStart_p
Definition: Imager.h:731
casacore::Table spwtab_p
Definition: Imager.h:688
Model the spectral variation with a constant.
FTMachine * ft_p
Definition: Imager.h:710
casacore::Int fieldid_p
Definition: Imager.h:774
casacore::Bool close()
Flush the ms to disk and detach from the ms file.
casacore::Int lockCounter_p
Definition: Imager.h:697
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
Definition: PlotTool.h:43
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.
Definition: PBMath.h:126
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...
Definition: BeamSquint.h:109
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.
Definition: FluxStandard.h:84
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)
int image_id_p
Definition: Imager.h:1053
casacore::String frmtTime(const casacore::Double time)
casacore::Bool useNewMTFT_p
Definition: Imager.h:1006
casacore::String gridfunction_p
Definition: Imager.h:741
casacore::Quantity qgwidth_p
Definition: Imager.h:755
ostream-like interface to creating log messages.
Definition: LogIO.h:167
casacore::Bool setbeam(const casacore::ImageBeamSet &beam)
Setbeam.
A Measure: radial velocity.
casacore::Matrix< casacore::Double > mssFreqSel_p
Definition: Imager.h:782
casacore::Bool detached() const
check if it is dettahced from ms.
casacore::String imageMode_p
Definition: Imager.h:726
virtual void setWFCleanImageSkyModel()
Virtual methods to set the ImageSkyModel and SkyEquation.
Definition: Imager.h:965
virtual casacore::Bool lock()
Lock the ms and its subtables.
virtual casacore::Bool unlock()
Unlock the ms and its subtables.
CleanImageSkyModel * sm_p
Definition: Imager.h:713
casacore::Bool mTermOn_p
Definition: Imager.h:1038
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
Definition: Imager.h:718
casacore::Bool nullSelect_p
Definition: Imager.h:717
casacore::Table flagcmdtab_p
Definition: Imager.h:691
virtual void writeCommand(casacore::LogIO &os)
casacore::Bool freqFrameValid_p
Freq frame is good and valid conversions can be done (or not)
Definition: Imager.h:1019
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.
Definition: MEpoch.h:104
casacore::String pointingDirCol_p
Definition: Imager.h:1045
casacore::Table syscaltab_p
Definition: Imager.h:695
casacore::Vector< casacore::Int > datadescids_p
Definition: Imager.h:777
casacore::Bool imagecoordinates2(casacore::CoordinateSystem &coordInfo, const casacore::Bool verbose=true)
new version
casacore::Bool doMultiFields_p
Definition: Imager.h:796
casacore::Matrix< casacore::Int > mssChanSel_p
Definition: Imager.h:783
virtual void savePSF(const casacore::Vector< casacore::String > &psf)
casacore::ImageBeamSet beam_p
Definition: Imager.h:747
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.
Definition: ObsInfo.h:97
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)
Definition: Imager.h:1036
casacore::Vector< casacore::Int > dataStart_p
Definition: Imager.h:729
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
Definition: Imager.h:787
casacore::Bool beamValid_p
Definition: Imager.h:748
void destroySkyEquation()
Model the diagonal elements of the Voltage Pattern Sky Jones Matrices.
Definition: VPSkyJones.h:91
int clean_panel_p
Definition: Imager.h:1052
defines physical units
Definition: Unit.h:189
A Measure: wave characteristics.
Definition: MFrequency.h:161
casacore::Bool flatnoise_p
Definition: Imager.h:802
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&lt;spwid&gt;.tempcl and returns the name.
casacore::Vector< casacore::Int > dataNchan_p
Definition: Imager.h:727
casacore::Int imageStep_p
Definition: Imager.h:730
long Long
Definition: aipstype.h:52
casacore::Int wprojPlanes_p
Definition: Imager.h:722
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()
Definition: Imager.h:968
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::Int ntaylor_p
Definition: Imager.h:1004
casacore::Block< casacore::CountedPtr< casacore::PagedImage< casacore::Float > > > residuals_p
Definition: Imager.h:1016
casacore::Int imageTileVol_p
What should be the tile volume on disk.
Definition: Imager.h:701
casacore::Bool wbAWP_p
Definition: Imager.h:1038
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
casacore::Table proctab_p
Definition: Imager.h:687
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
VPSkyJones * gvp_p
Definition: Imager.h:715
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
Definition: Imager.h:1060
Interconvert pixel positions and directions (e.g. RA/DEC).
casacore::MFrequency mfImageStart_p
Definition: Imager.h:733
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.
Definition: ImageBeamSet.h:88
VisibilityIterator * wvi_p
Definition: Imager.h:709
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.
double Double
Definition: aipstype.h:55
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.
Definition: MSColumns.h:111
A class to provide easy read-only access to MSHistory columns.
VPSkyJones * vp_p
Definition: Imager.h:714
casacore::Bool restoreImages(const casacore::Vector< casacore::String > &restored, casacore::Bool modresiduals=true)
casacore::String stokes_p
Definition: Imager.h:724
casacore::MDirection phaseCenter_p
Definition: Imager.h:735
casacore::Quantity restFreq_p
Definition: Imager.h:736
casacore::Bool updateSkyModel(const casacore::Vector< casacore::String > &model, const casacore::String complist)
casacore::Int npol_p
Definition: Imager.h:698
Class to get file information and a base for other file classes.
Definition: File.h:101
casacore::Bool wfGridding_p
Definition: Imager.h:742
casacore::Bool plotuv(const casacore::Bool rotate)
Plot the uv plane.
casacore::Float minWeight_p
Definition: Imager.h:758
virtual void setSkyEquation()
casacore::Float cyclefactor_p
special mf control parms, etc
Definition: Imager.h:763
casacore::Table weathertab_p
Definition: Imager.h:696
casacore::Table datadesctab_p
Definition: Imager.h:681
casacore::Float rotPAStep_p
if setimage was changed hence redo the skyModel.
Definition: Imager.h:720
casacore::Table sourcetab_p
Definition: Imager.h:694
casacore::Bool imagecoordinates(casacore::CoordinateSystem &coordInfo, const casacore::Bool verbose=true)
Return the image coordinates.
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Quantity shifty_p
Definition: Imager.h:740
ComponentFTMachine * cft_p
Definition: Imager.h:711
casacore::Int nmodels_p
Definition: Imager.h:1010
casacore::String dataMode_p
Definition: Imager.h:725
casacore::CountedPtr< casacore::MeasurementSet > ms_p
Definition: Imager.h:678
casacore::MRadialVelocity mImageStep_p
Definition: Imager.h:732
VisImagingWeight imwgt_p
Definition: Imager.h:1046
casacore::String scaleType_p
Definition: Imager.h:769
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
Definition: Imager.h:751
casacore::Table obstab_p
Definition: Imager.h:684
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.
Definition: Imager.h:1043
float Float
Definition: aipstype.h:54
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
Definition: Imager.h:1038
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::Int numMS_p
Definition: Imager.h:785
casacore::Int tile_p
Definition: Imager.h:744
casacore::Table feedtab_p
Definition: Imager.h:682
casacore::Bool useModelCol_p
Whether to use model column or use it in memory on the fly.
Definition: Imager.h:1025
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
Definition: Imager.h:793
casacore::Float minPB_p
Definition: Imager.h:770
Class to hold table lock options.
Definition: TableLock.h:65
casacore::Int nx_p
Definition: Imager.h:698
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
Definition: Imager.h:791
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 &quot;[] or -1 =&gt; everything&quot; convention using the rule: If v is empty or only has 1 element...
casacore::Record interactiveState_p
SimplePlotterPtr plotter_p;.
Definition: Imager.h:1040
casacore::Bool psTermOn_p
Definition: Imager.h:1038
casacore::Vector< casacore::Int > spectralwindowids_p
Definition: Imager.h:773
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.
Definition: Imager.h:1013
casacore::Quantity mcellx_p
Definition: Imager.h:723
Class that contains functions needed for imager.
Definition: Imager.h:81
simple 1-D array
casacore::Long cache_p
Definition: Imager.h:743
casacore::Bool singlePrec_p
Force single precision always.
Definition: Imager.h:1028
Class to hold a region of interest in an image.
Definition: ImageRegion.h:86
virtual casacore::Bool mapExtent(const casacore::String &referenceFrame, const casacore::String &movingSource, const casacore::String &pointingColumn, casacore::Vector< casacore::Double > &center, casacore::Vector< casacore::Double > &blc, casacore::Vector< casacore::Double > &trc, casacore::Vector< casacore::Double > &extent)
Automatic evaluation of map extent for given visibility.
VisSet * vs_p
Definition: Imager.h:707
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
Definition: Imager.h:754
A class to provide a simple interface to history writing.
casacore::Vector< casacore::Float > userScaleSizes_p
Definition: Imager.h:1007
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 > &center, casacore::Vector< casacore::Double > &blc, casacore::Vector< casacore::Double > &trc, casacore::Vector< casacore::Double > &extent)
implementation of mapExtent
casacore::Int nscales_p
Definition: Imager.h:1003
virtual void makeVisSet(casacore::MeasurementSet &ms, casacore::Bool compress=false, casacore::Bool mosaicOrder=false)
VisSet and resort.
casacore::Double reffreq_p
Definition: Imager.h:1005
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&#39;s restoring beam to the logger.
casacore::Table pointingtab_p
Definition: Imager.h:685
casacore::Matrix< casacore::Double > freqrange_p
Definition: Imager.h:781
virtual void setMosaicFTMachine(casacore::Bool useDoublePrec=false)
set the mosaic ft machine and right convolution function
casacore::Table historytab_p
Definition: Imager.h:693
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-&gt;CORRECTED)
casacore::Float padding_p
Definition: Imager.h:749
casacore::Vector< casacore::String > fluxscale_p
Definition: Imager.h:768
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::Int ny_p
Definition: Imager.h:698
casacore::Vector< casacore::Int > dataspectralwindowids_p
Definition: Imager.h:776
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)
Definition: LogSink.h:141
casacore::Int sdConvSupport_p
Definition: Imager.h:752
casacore::MFrequency::Types freqFrame_p
Definition: Imager.h:734
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
Definition: Imager.h:728
casacore::MFrequency mfImageStep_p
Definition: Imager.h:733
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
Definition: Imager.h:778
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.
Definition: ATerm.h:63
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 != &quot;&quot;.
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
Definition: Imager.h:750
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
Definition: Imager.h:730
String: the storage and methods of handling collections of characters.
Definition: String.h:223
ViewerProxy * viewer_p
viewer connection
Definition: Imager.h:1050
casacore::Bool clipvis(const casacore::Quantity &threshold)
Clip visibilities.
casacore::Int nchan_p
Definition: Imager.h:698
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
casacore::Int facets_p
Definition: Imager.h:721
VisibilityIterator iterates through one or more writable MeasurementSets.
casacore::Bool aTermOn_p
Definition: Imager.h:1038
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
Definition: Imager.h:797
casacore::Bool clipimage(const casacore::String &image, const casacore::Quantity &threshold)
Clip on casacore::Stokes I.
casacore::String vpTableStr_p
Definition: Imager.h:788
Image Sky Model: Image-based Model for the Sky Brightness.
casacore::Int stoplargenegatives_p
Definition: Imager.h:766
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...
Definition: MFrequency.h:176
virtual void writeHistory(casacore::LogIO &os)
Just to create the SORTED_TABLE if one can virtual void makeVisSet(casacore::MeasurementSet&amp; ms...
casacore::Vector< casacore::Int > dataStep_p
Definition: Imager.h:729
ROVisibilityIterator iterates through one or more readonly MeasurementSets.
SkyEquation * se_p
Definition: Imager.h:712
casacore::Int numthreads_p
numthreads
Definition: Imager.h:1058
int mask_id_p
Definition: Imager.h:1054
Class holding a hierarchy of loggers.
Definition: LoggerHolder.h:120
casacore::Cube< casacore::Int > spwchansels_p
TT.
Definition: Imager.h:780
casacore::String epJTableName_p
Definition: Imager.h:1037
casacore::CountedPtr< casacore::MSHistoryHandler > hist_p
Definition: Imager.h:679
casacore::Bool doPointing
Definition: Imager.h:1038
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
Definition: Imager.h:1008
casacore::Float cyclespeedup_p
Definition: Imager.h:764
casacore::LogSink logSink_p
sink used to store history mainly
Definition: Imager.h:1030
virtual ~Imager()
Destructor.
casacore::Float pbLimit_p
Definition: Imager.h:720
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
Definition: Imager.h:732
casacore::Table antab_p
Definition: Imager.h:680
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
Definition: Imager.h:1015
ComponentList * componentList_p
Definition: Imager.h:1000
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
casacore::Table fieldtab_p
Definition: Imager.h:683
unsigned int uInt
Definition: aipstype.h:51
casacore::CountedPtr< casacore::MeasurementSet > mssel_p
Definition: Imager.h:706
casacore::Quantity distance_p
Definition: Imager.h:737
casacore::Table poltab_p
Definition: Imager.h:686
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
Definition: FTMachine.h:120
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
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42
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.