Source
xxxxxxxxxx
if((casacore::MDirection::getType(refType, movingSource)) && (refType > casacore::MDirection::N_Types && refType < casacore::MDirection:: N_Planets ))
/***
* Framework independent implementation file for imager...
*
* Implement the imager component here.
*
* // TODO: WRITE YOUR DESCRIPTION HERE!
***/
//#include <synthesis/ImagerObjects/TmpSwitch.h>
using namespace std;
using namespace casacore;
using namespace casa;
using namespace casacore;
namespace casac {
// Method used for creating the SynthesisImager object. By default,
// this will look at itsImager and decide if a new instance needs to
// be constructed. The second argument determines if
// SynthesisImager (vi2=false) or SynthesisImagerVi2 (vi2=true)
// should be constructed.
SynthesisImager* synthesisimager::makeSI(bool forceNew, //default value = false
bool oldvi // default value = false
)
{
Bool vi1_l=oldvi;
vi1_l = (getenv("VI1")!=NULL);
if ((!itsImager) || forceNew)
{
if (!vi1_l){
//cerr << "Doing vi2 " << endl;
itsImager = new SynthesisImagerVi2();
}
else itsImager = new SynthesisImager();
}
return itsImager;
}
synthesisimager::synthesisimager()
{
// itsImager = new SynthesisImagerVi2();
itsLog = new LogIO();
//itsImager = new SynthesisImager();
itsImager = makeSI(true);
}
synthesisimager::~synthesisimager()
{
done();
}
bool
synthesisimager::setdata(const std::string& msname,
const std::string& spw,
const std::string& freqbeg, // ? why here ? to limit selection with image definition
const std::string& freqend, // ? why here ? ditto
const std::string& freqframe, // ? why here ? ditto
const std::string& field,
const std::string& antenna,
const std::string& timestr,
const std::string& scan,
const std::string& obs,
const std::string& state,
const std::string& uvdist,
const std::string& taql,
const bool usescratch,