Source
//# tFringeJones_GT.cc: Tests the FringeJones
//# Copyright (C) 1995,1999,2000,2001
//# 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.,
//# 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//# $Id$
//#include <casa/aips.h>
//#include <casa/Exceptions/Error.h>
// <summary>
// Test program for FringeJones
// </summary>
using namespace std;
using namespace casa;
using namespace casacore;
using namespace casa::vi;
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
class DelayRateFFTTest : public ::testing::Test {
public:
virtual Array<Complex> appdel(Int nchan, Int nt, Float f0, Float df, Float dt, Float delay, Float fringerate) {
// f0 is unused
Matrix<Complex> cph(IPosition(2, nt, nchan));
for (Int i=0; i!=nt; i++) {
for (Int j=0; j!=nchan; j++) {