Commits
1199 1199 | // Destructor |
1200 1200 | SingleDishPositionSwitchCal::~SingleDishPositionSwitchCal() |
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 + | qry << "using style python" << eol; |
1209 1210 | qry << "with [" << eol |
1210 1211 | << "select" << eol |
1211 1212 | << " [select TELESCOPE_NAME from ::OBSERVATION][OBSERVATION_ID] as TELESCOPE_NAME," << eol; |
1212 1213 | // Purposively not using TAQL's default mscal UDF library alias for derivedmscal |
1213 1214 | // to workaround a bug in casacore UDFBase::createUDF |
1214 1215 | qry << " derivedmscal.spwcol('NUM_CHAN') as NUM_CHAN" << eol |
1215 1216 | << "from" << eol |
1216 1217 | << " $1" << eol |
1217 1218 | << "] as metadata" << eol |
1218 1219 | << "select * from $1 , metadata" << eol |