throw( AipsError( "There is a coordinate system mismatch between existing images on disk and current parameters ("+itsParentCoordSys.errorMessage()+"). If you are attempting to restart a run, please change imagename and supply the old model or mask as inputs (via the startmodel or mask parameters) so that they can be regridded to the new coordinate system before continuing. " ) );
#include <casacore/casa/Exceptions/Error.h>
#include <casacore/casa/Arrays/Matrix.h>
#include <casacore/casa/Arrays/ArrayMath.h>
#include <casacore/casa/Arrays/ArrayLogical.h>
#include <casacore/casa/Logging.h>
#include <casacore/casa/Logging/LogIO.h>
#include <casacore/casa/Logging/LogMessage.h>
#include <casacore/casa/Logging/LogSink.h>
#include <casacore/casa/Logging/LogMessage.h>
#include <casacore/casa/OS/DirectoryIterator.h>
#include <casacore/casa/OS/File.h>
#include <casacore/casa/OS/Path.h>
#include <casacore/lattices/Lattices/LatticeLocker.h>
#include <casacore/casa/OS/HostInfo.h>
#include <components/ComponentModels/GaussianDeconvolver.h>
#include <casacore/images/Images/TempImage.h>
#include <casacore/images/Images/PagedImage.h>
#include <imageanalysis/ImageAnalysis/CasaImageBeamSet.h>
#include <casacore/lattices/LatticeMath/LatticeMathUtil.h>
#include <casacore/ms/MeasurementSets/MSHistoryHandler.h>
#include <casacore/ms/MeasurementSets/MeasurementSet.h>
#include <casacore/tables/Tables/TableUtil.h>
#include <synthesis/ImagerObjects/SIImageStore.h>
#include <synthesis/ImagerObjects/SDMaskHandler.h>
#include <synthesis/TransformMachines/StokesImageUtil.h>
#include <synthesis/TransformMachines2/Utils.h>
#include <synthesis/ImagerObjects/SynthesisUtilMethods.h>
#include <casacore/images/Images/ImageRegrid.h>
#include <imageanalysis/ImageAnalysis/ImageStatsCalculator.h>
#include "SIImageStore.h"
using namespace casacore;
void openImage(const String& imagenamefull,std::shared_ptr<ImageInterface<T> >& imPtr )
LogIO logIO ( LogOrigin("SynthesisImager","openImage(name)") );
if (Table::isReadable(imagenamefull))
imPtr.reset( new PagedImage<T>( imagenamefull ) );
logIO << "Error in reading image \"" << imagenamefull << "\"" << LogIO::EXCEPTION;