Source
//cerr<<setprecision(dbl::max_digits10)<<flxStdName<<" fluxUsed[0]="<<fluxUsed[0]<<" for srcName="<<srcName<<" freq="<<freq<<endl;
//# FluxStandard2_GTest.cc: implementation of FluxStandard2 google test
//#
//# Copyright (C) 2015
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This program is free software; you can redistribute it and/or modify it
//# under the terms of the GNU General Public License as published by the Free
//# Software Foundation; either version 2 of the License, or (at your option)
//# any later version.
//#
//# This program is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
//# more details.
//#
//# You should have received a copy of the GNU General Public License along
//# with this program; if not, write to the Free Software Foundation, Inc.,
//# 51 Franklin Street, Fifth FloorBoston, MA 02110-1335, USA
//#
//
typedef std::numeric_limits< double > dbl;
using namespace casacore;
using namespace casa;
using namespace casacore;
using namespace casacore;
using namespace std;
namespace test {
NewFluxStandardTest::NewFluxStandardTest()
: fluxUsed(4), foundStd(false)
{
};
NewFluxStandardTest::~NewFluxStandardTest() {};
void NewFluxStandardTest::SetUp()
{
mtime = MEpoch(Quantity(56293.0,"d")); //2013-01-01
//mtime = MEpoch(Quantity(54832.0,"d")); //2009-01-01
srcDir = MDirection(MVDirection(Quantity(0.0,"rad"),Quantity(0.0,"rad")), MDirection::J2000);
};
Bool NewFluxStandardTest::modelExists(String tablename) {
const string stdPath = "nrao/VLA/standards/"+tablename;
string resolvepath = casatools::get_state( ).resolve(stdPath);
if ( resolvepath != stdPath ) {
foundModelPath = resolvepath;
return true;
}
Bool dataExists = Aipsrc::findDir(foundModelPath, "data/"+stdPath);
return dataExists;
};
void NewFluxStandardTest::TearDown() {};
//