LCOV - code coverage report
Current view: top level - synthesis/TransformMachines2 - MosaicFTNew.h (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 4 0.0 %
Date: 2024-10-10 11:40:37 Functions: 0 2 0.0 %

          Line data    Source code
       1             : //# MosaicFTNew.h: Definition for MosaicFTNew
       2             : //# Copyright (C) 1996,1997,1998,1999,2000,2002
       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 adressed as follows:
      20             : //#        Internet email: casa-feedback@nrao.edu.
      21             : //#        Postal address: AIPS++ Project Office
      22             : //#                        National Radio Astronomy Observatory
      23             : //#                        520 Edgemont Road
      24             : //#                        Charlottesville, VA 22903-2475 USA
      25             : //#
      26             : //#
      27             : //# $Id$
      28             : 
      29             : #ifndef SYNTHESIS_TRANSFORM2_MOSAICFTNEW_H
      30             : #define SYNTHESIS_TRANSFORM2_MOSAICFTNEW_H
      31             : 
      32             : #include <synthesis/TransformMachines2/MosaicFT.h>
      33             : 
      34             : namespace casa { //# NAMESPACE CASA - BEGIN
      35             : 
      36             : namespace refim{
      37             : /*
      38             :   An copy MosaicFT except
      39             :   Looks like it is just to get  differentlently normalized images i.e (image*nx*ny)
      40             :   which implies somewhere  some code  is   just be using FFT in forward (the toFrequency direction) 
      41             :   when it should be the reverse (or vice-versa)
      42             : */
      43             : 
      44             : class MosaicFTNew : public MosaicFT {
      45             : public:
      46             : 
      47             :   // Constructor: cachesize is the size of the cache in words
      48             :   // (e.g. a few million is a good number), tilesize is the
      49             :   // size of the tile used in gridding (cannot be less than
      50             :   // 12, 16 works in most cases). 
      51             :   // <group>
      52           0 :   MosaicFTNew(SkyJones* sj, casacore::MPosition mloc, casacore::String stokes,
      53             :             casacore::Long cachesize, casacore::Int tilesize=16, 
      54           0 :               casacore::Bool usezero=true, casacore::Bool useDoublePrec=false, casacore::Bool useConjFreqBeam=false, casacore::Bool usePointing=false):
      55           0 :   MosaicFT(sj,mloc,stokes,cachesize,tilesize,usezero,useDoublePrec, useConjFreqBeam, usePointing){}
      56             :   MosaicFTNew& operator=(const MosaicFTNew& other);
      57             :     // Construct from a casacore::Record containing the MosaicFT state
      58             :     MosaicFTNew(const casacore::RecordInterface& stateRec);
      59             : 
      60             :     refim::FTMachine* cloneFTM();
      61             :     
      62             : 
      63             :   // </group>
      64             : 
      65             :   // Get the final image: do the Fourier transform and
      66             :   // grid-correct, then optionally normalize by the summed weights
      67             :   casacore::ImageInterface<casacore::Complex>& getImage(casacore::Matrix<casacore::Float>&, casacore::Bool normalize=true);
      68             :  
      69             :   // Get the final weights image
      70             :   void getWeightImage(casacore::ImageInterface<casacore::Float>&, casacore::Matrix<casacore::Float>&);
      71             :   
      72           0 :   virtual casacore::String name() const {return "MosaicFTNew";};
      73             :   
      74             : protected:        
      75             : 
      76             : };
      77             :   } //refim ends
      78             : } //# NAMESPACE CASA - END
      79             : 
      80             : #endif

Generated by: LCOV version 1.16