Source
1201
1201
{
1202
1202
debuglog << "SingleDishPositionSwitchCal::~SingleDishPositionSwitchCal()" << debugpost;
1203
1203
}
1204
1204
1205
1205
MeasurementSet SingleDishPositionSwitchCal::selectReferenceData(MeasurementSet const &user_selection)
1206
1206
{
1207
1207
std::ostringstream qry;
1208
1208
constexpr auto eol = '\n';
1209
1209
qry << "with [" << eol
1210
1210
<< "select" << eol
1211
-
<< " [select TELESCOPE_NAME from ::OBSERVATION][OBSERVATION_ID] as TELESCOPE_NAME," << eol
1212
-
<< " mscal.spwcol('NUM_CHAN') as NUM_CHAN" << eol
1211
+
<< " [select TELESCOPE_NAME from ::OBSERVATION][OBSERVATION_ID] as TELESCOPE_NAME," << eol;
1212
+
// Purposively not using TAQL's default mscal UDF library alias for derivedmscal
1213
+
// to workaround a bug in casacore UDFBase::createUDF
1214
+
qry << " derivedmscal.spwcol('NUM_CHAN') as NUM_CHAN" << eol
1213
1215
<< "from" << eol
1214
1216
<< " $1" << eol
1215
1217
<< "] as metadata" << eol
1216
1218
<< "select * from $1 , metadata" << eol
1217
1219
<< "where " << eol;
1218
1220
// Row contains single-dish auto-correlation data,
1219
1221
qry << " ( ANTENNA1 == ANTENNA2 ) and" << eol ;
1220
1222
qry << " ( FEED1 == FEED2 ) and" << eol ;
1221
1223
1222
1224
// has not been marked as invalid,