casa
$Rev:20696$
|
#include <MsPlotConvert.h>
Public Member Functions | |
MSPlotConvertAveChanToFreq (MeasurementSet &inMS, Matrix< Double > &chanFreq, Bool onXAxis) | |
It would be ideal to calculate the chanFreq in the averager and pass the map to here. | |
~MSPlotConvertAveChanToFreq () | |
Double | Xconvert_col (Double x, Int IfLOG0(row), Int IfLOG0(tableId)) |
Conversion along the Xaxis. | |
Double | Yconvert_col (Double y, Int IfLOG0(row), Int IfLOG0(tableId)) |
Conversion along the Yaxis. | |
Private Attributes | |
MeasurementSet | itsMS |
not used. | |
Matrix< Double > | itsChanFreq |
itsChanFreq is of nAveChan x 2. | |
Bool | convertOnX |
Indicate if we are averaging on the X or Y axis. | |
SLog * | log |
Static Private Attributes | |
static const String | clname |
Definition at line 1715 of file MsPlotConvert.h.
casa::MSPlotConvertAveChanToFreq::MSPlotConvertAveChanToFreq | ( | MeasurementSet & | inMS, |
Matrix< Double > & | chanFreq, | ||
Bool | onXAxis | ||
) | [inline] |
It would be ideal to calculate the chanFreq in the averager and pass the map to here.
However, in the setupPlotxy, setConverFn is before setInputTable (because a conversion function change may require a reread of the ms), then we have to reset conversion function after averager
cout << "itsChanFreq=" << itsChanFreq << endl;
Definition at line 1724 of file MsPlotConvert.h.
References convertOnX, itsChanFreq, itsMS, log, and casa::SLog::slog().
casa::MSPlotConvertAveChanToFreq::~MSPlotConvertAveChanToFreq | ( | ) | [inline] |
String fnname = "~MSPlotConvertAveChanToFreq";
Definition at line 1738 of file MsPlotConvert.h.
Double casa::MSPlotConvertAveChanToFreq::Xconvert_col | ( | Double | x, |
Int | IfLOG0row, | ||
Int | IfLOG0tableId | ||
) | [inline] |
Conversion along the Xaxis.
Definition at line 1743 of file MsPlotConvert.h.
References clname, convertOnX, casa::SLog::FnPass(), itsChanFreq, log, casa::max(), casa::min(), casa::Matrix< T >::nrow(), String, and casa::vpf::toString().
Double casa::MSPlotConvertAveChanToFreq::Yconvert_col | ( | Double | y, |
Int | IfLOG0row, | ||
Int | IfLOG0tableId | ||
) | [inline] |
Conversion along the Yaxis.
Definition at line 1767 of file MsPlotConvert.h.
References clname, convertOnX, casa::SLog::FnPass(), itsChanFreq, log, casa::max(), casa::min(), casa::Matrix< T >::nrow(), String, and casa::vpf::toString().
const String casa::MSPlotConvertAveChanToFreq::clname [static, private] |
Definition at line 1806 of file MsPlotConvert.h.
Referenced by Xconvert_col(), and Yconvert_col().
Indicate if we are averaging on the X or Y axis.
Definition at line 1803 of file MsPlotConvert.h.
Referenced by MSPlotConvertAveChanToFreq(), Xconvert_col(), and Yconvert_col().
itsChanFreq is of nAveChan x 2.
The first column stores the averaged channel Id (hence is equal to the position index.) The second column store averaged frequencies corresponding to the averaged channel Id. The first column can be used to store the spwids in the future.
Definition at line 1800 of file MsPlotConvert.h.
Referenced by MSPlotConvertAveChanToFreq(), Xconvert_col(), and Yconvert_col().
not used.
the frequency calculation is done in the averager.
Definition at line 1788 of file MsPlotConvert.h.
Referenced by MSPlotConvertAveChanToFreq().
SLog* casa::MSPlotConvertAveChanToFreq::log [private] |
Definition at line 1805 of file MsPlotConvert.h.
Referenced by MSPlotConvertAveChanToFreq(), Xconvert_col(), and Yconvert_col().