#include <msvis/MSVis/VisBuffer.h>
#include <casa/Logging/LogIO.h>
#include <ms/MeasurementSets/MSColumns.h>
#include <measures/Measures/MEpoch.h>
#include <measures/Measures/MeasTable.h>
#include <synthesis/TransformMachines/Utils.h>
#include <synthesis/TransformMachines/StokesImageUtil.h>
#include <casa/Utilities/Assert.h>
#include <casa/Arrays/Vector.h>
#include <casa/Arrays/ArrayMath.h>
#include <lattices/LEL/LatticeExpr.h>
#include <images/Images/PagedImage.h>
#include <images/Images/ImageRegrid.h>
#include <casa/Containers/Record.h>
#include <lattices/Lattices/LatticeIterator.h>
#include <lattices/Lattices/TiledLineStepper.h>
#include <lattices/Lattices/LatticeStepper.h>
#include <lattices/LatticeMath/LatticeFFT.h>
#include <casa/System/Aipsrc.h>
using namespace casacore;
void storeImg(String fileName,ImageInterface<Complex>& theImg, Bool writeReIm)
PagedImage<Complex> ctmp(theImg.shape(), theImg.coordinates(), fileName);
LatticeExpr<Complex> le(theImg);
ostringstream reName,imName;
reName << "re" << fileName;
imName << "im" << fileName;
PagedImage<Float> tmp(theImg.shape(), theImg.coordinates(), reName);
LatticeExpr<Float> le(abs(theImg));
PagedImage<Float> tmp(theImg.shape(), theImg.coordinates(), imName);
LatticeExpr<Float> le(arg(theImg));
void storeImg(String fileName,ImageInterface<Float>& theImg)
PagedImage<Float> tmp(theImg.shape(), theImg.coordinates(), fileName);
LatticeExpr<Float> le(theImg);
void storeArrayAsImage(String fileName, const CoordinateSystem& coord,
const Array<Complex>& theImg)
PagedImage<Complex> ctmp(theImg.shape(), coord, fileName);
void storeArrayAsImage(String fileName, const CoordinateSystem& coord,
const Array<DComplex>& theImg)