Array<Float> ampRatio = fArray(parSlice1, Slice(), Slice()) / fArray(parSlice2, Slice(), Slice());
#include <plotms/Data/CalCache.h>
#include <plotms/Data/PlotMSIndexer.h>
#include <plotms/Data/PlotMSAtm.h>
#include <plotms/PlotMS/PlotMS.h>
#include <plotms/Threads/ThreadCommunication.h>
#include <casa/OS/Timer.h>
#include <casa/OS/HostInfo.h>
#include <casa/OS/Memory.h>
#include <casa/Quanta/MVTime.h>
#include <casa/System/Aipsrc.h>
#include <casa/Utilities/Sort.h>
#include <casa/Arrays/ArrayMath.h>
#include <tables/Tables/Table.h>
#include <lattices/Lattices/ArrayLattice.h>
#include <synthesis/CalTables/CTColumns.h>
#include <synthesis/MeasurementComponents/VisCalGlobals.h>
#include <synthesis/MeasurementComponents/BPoly.h>
#include <synthesis/MeasurementComponents/GSpline.h>
using namespace casacore;
CalCache::CalCache(PlotMSApp* parent):
String CalCache::polname(Int ipol) {
if (polnRatio_) return "/";
return ( (ipol%2==0) ? String("X") : String("Y") );
else if (basis_=="Circular")
return ( (ipol%2==0) ? String("R") : String("L") );
if (calType_=="KAntPos Jones") {
default: return (String::toString(ipol));
return ( String::toString(ipol) );
void CalCache::setFilename(String filename) {
calType_= tab.tableInfo().subType();
if ((calType_=="T Jones") && (tab.keywordSet().isDefined("CAL_DESC")))
throw AipsError(calType_ + " tables in the old cal table format are unsupported in plotms.");