Source
211
211
212
212
// Apply refant (implemented in SVJ)
213
213
virtual void reReference() {}
214
214
215
215
// Accumulate another VisCal onto this one
216
216
virtual void accumulate(SolvableVisCal* incr,
217
217
const casacore::Vector<casacore::Int>& fields);
218
218
219
219
// Determine and apply flux density scaling
220
220
virtual void fluxscale(const casacore::String& outfile,
221
-
const casacore::Vector<casacore::Int>& refFieldIn,
222
-
const casacore::Vector<casacore::Int>& tranFieldIn,
223
-
const casacore::Vector<casacore::Int>& inRefSpwMap,
224
-
const casacore::Vector<casacore::String>& fldNames,
225
-
const casacore::Float& inGainThres,
226
-
const casacore::String& antSel,
227
-
const casacore::String& timerangeSel,
228
-
const casacore::String& scanSel,
229
-
fluxScaleStruct& oFluxScaleStruct,
230
-
const casacore::String& oListFile,
231
-
const casacore::Bool& incremental,
232
-
const casacore::Int& fitorder,
233
-
const casacore::Bool& display);
221
+
const casacore::Vector<casacore::Int>& refFieldIn,
222
+
const casacore::Vector<casacore::Int>& tranFieldIn,
223
+
const casacore::Vector<casacore::Int>& inRefSpwMap,
224
+
const casacore::Vector<casacore::String>& fldNames,
225
+
const casacore::Float& inGainThres,
226
+
const casacore::String& antSel,
227
+
const casacore::String& timerangeSel,
228
+
const casacore::String& scanSel,
229
+
fluxScaleStruct& oFluxScaleStruct,
230
+
const casacore::String& oListFile,
231
+
const casacore::Bool& incremental,
232
+
const casacore::Int& fitorder,
233
+
const casacore::Bool& display);
234
234
235
235
// Use generic data gathering mechanism for solve
236
236
virtual casacore::Bool useGenericGatherForSolve() { return false; }
237
237
238
238
// Report state:
239
239
virtual void listCal(const casacore::Vector<casacore::Int> ufldids, const casacore::Vector<casacore::Int> uantids,
240
240
const casacore::Matrix<casacore::Int> uchanids, //const casacore::Int& spw, const casacore::Int& chan,
241
241
const casacore::String& listfile="",const casacore::Int& pagerows=50);
242
242
243
243
373
373
// Reference positions are assumed to be free of spectral-line emission
374
374
virtual casacore::MeasurementSet selectReferenceData(casacore::MeasurementSet const &user_selection);
375
375
376
376
// Implement fillCalibrationTable for SingleDishPositionSwitchCal
377
377
virtual void fillCalibrationTable(casacore::MeasurementSet const &reference_data);
378
378
private:
379
379
template<class DataRealComponentAccessor>
380
380
void fillCalibrationTable(casacore::MeasurementSet const &reference_data);
381
381
382
382
};
383
-
383
+
384
384
class SingleDishRasterCal : public SingleDishSkyCal
385
385
{
386
386
public:
387
387
388
-
// Constructor
389
-
SingleDishRasterCal(VisSet& vs);
390
-
SingleDishRasterCal(const MSMetaInfoForCal& msmc); // preferred ctor
391
-
SingleDishRasterCal(const casacore::Int& nAnt);
388
+
// Constructor
389
+
SingleDishRasterCal(VisSet& vs);
390
+
SingleDishRasterCal(const MSMetaInfoForCal& msmc); // preferred ctor
391
+
SingleDishRasterCal(const casacore::Int& nAnt);
392
392
393
-
// Destructor
394
-
virtual ~SingleDishRasterCal();
393
+
// Destructor
394
+
virtual ~SingleDishRasterCal();
395
+
396
+
// Return type name as string (ditto)
397
+
virtual casacore::String typeName() { return "SDSKY_RASTER"; }
398
+
virtual casacore::String longTypeName() { return "SDSKY_RASTER (position switch sky subtraction specific to OTF raster observation)"; }
395
399
396
-
// Return type name as string (ditto)
397
-
virtual casacore::String typeName() { return "SDSKY_RASTER"; }
398
-
virtual casacore::String longTypeName() { return "SDSKY_RASTER (position switch sky subtraction specific to OTF raster observation)"; }
400
+
// local setSolve
401
+
virtual void setSolve(const casacore::Record& solve);
399
402
400
-
// local setSolve
401
-
virtual void setSolve(const casacore::Record& solve);
402
-
403
-
// Reference data selection, specific to the otf raster observing mode
404
-
virtual casacore::MeasurementSet selectReferenceData(casacore::MeasurementSet const &ms);
403
+
// Reference data selection, specific to the otf raster observing mode
404
+
virtual casacore::MeasurementSet selectReferenceData(casacore::MeasurementSet const &ms);
405
405
406
406
private:
407
-
// edge detection parameter for otfraster mode
408
-
casacore::Float fraction_;
409
-
casacore::Int numEdge_;
407
+
// edge detection parameter for otfraster mode
408
+
casacore::Float fraction_;
409
+
casacore::Int numEdge_;
410
410
};
411
411
412
412
class SingleDishOtfCal : public SingleDishSkyCal
413
413
{
414
414
public:
415
415
416
-
// Constructor
417
-
SingleDishOtfCal(VisSet& vs);
418
-
// SingleDishOtfCal(const MSMetaInfoForCal& msmc); // preferred ctor ****ctor needs an MS!
419
-
// Renaud: disabledSingleDishOtfCal(const casacore::Int& nAnt);
416
+
// Constructor
417
+
SingleDishOtfCal(VisSet& vs);
418
+
// SingleDishOtfCal(const MSMetaInfoForCal& msmc); // preferred ctor ****ctor needs an MS!
419
+
// Renaud: disabledSingleDishOtfCal(const casacore::Int& nAnt);
420
420
421
-
// Destructor
422
-
virtual ~SingleDishOtfCal();
421
+
// Destructor
422
+
virtual ~SingleDishOtfCal();
423
423
424
-
// Return type name as string (ditto)
425
-
virtual casacore::String typeName() { return "SDSKY_OTF"; }
426
-
virtual casacore::String longTypeName() { return "SDSKY_OTF (position switch sky subtraction specific to OTF fast scan)"; }
424
+
// Return type name as string (ditto)
425
+
virtual casacore::String typeName() { return "SDSKY_OTF"; }
426
+
virtual casacore::String longTypeName() { return "SDSKY_OTF (position switch sky subtraction specific to OTF fast scan)"; }
427
427
428
-
// Reference data selection, specific to the on-the-fly fast scan observing mode
429
-
virtual casacore::MeasurementSet selectReferenceData(casacore::MeasurementSet const &user_selection);
430
-
virtual void setSolve(const casacore::Record& solve);
428
+
// Reference data selection, specific to the on-the-fly fast scan observing mode
429
+
virtual casacore::MeasurementSet selectReferenceData(casacore::MeasurementSet const &user_selection);
430
+
virtual void setSolve(const casacore::Record& solve);
431
431
432
432
private:
433
-
// Edge detection parameters for otf mode
434
-
casacore::Float fraction_;
435
-
casacore::Float pixel_scale_;
433
+
// Edge detection parameters for otf mode
434
+
casacore::Float fraction_;
435
+
casacore::Float pixel_scale_;
436
436
437
-
// casacore::MeasurementSet filtered with user-specified selection
438
-
const casacore::MeasurementSet & msSel_ ;
437
+
// casacore::MeasurementSet filtered with user-specified selection
438
+
const casacore::MeasurementSet & msSel_ ;
439
439
440
440
};
441
441
442
442
} //# NAMESPACE CASA - END
443
443
444
444
#endif /* _SYNTHESIS_SINGLEDISH_SKY_CAL_H_ */
445
445
446
446