Changeset 2818 for trunk/src/STMath.cpp


Ignore:
Timestamp:
07/02/13 10:38:18 (11 years ago)
Author:
Malte Marquarding
Message:

Issue #291: added scantable.set_sourcename to overwrite sourcename to allow freq_align to work. Exposed 'SOURCE' averaging to python api. Added some logging to freq_align refering to the sources it aligns to

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r2695 r2818  
    27812781  MVTime mvt(refEpoch.getValue());
    27822782  String epochout = mvt.string(MVTime::YMD) + String(" (") + refEpoch.getRefString() + String(")");
    2783   os << "Aligned at reference Epoch " << epochout
     2783  os << "Aligning at reference Epoch " << epochout
    27842784     << " in frame " << MFrequency::showType(system) << LogIO::POST;
    27852785  // set up the iterator
     
    27952795  while ( !iter.pastEnd() ) {
    27962796    Table t = iter.table();
     2797    ROScalarColumn<String> snCol(t, "SRCNAME");
     2798    os << "Aligning to position of source '" << snCol(0) << "'" << LogIO::POST;
    27972799    MDirection::ROScalarColumn dirCol(t, "DIRECTION");
    27982800    TableIterator fiter(t, "FREQ_ID");
    27992801    // determine nchan from the first row. This should work as
    2800     // we are iterating over BEAMNO and IFNO    // we should have constant direction
     2802    // we are iterating over BEAMNO and IFNO   
     2803    // we should have constant direction
    28012804
    28022805    ROArrayColumn<Float> sCol(t, "SPECTRA");
     
    28132816    ScalarColumn<uInt> freqidCol(ftab, "FREQ_ID");
    28142817    // get the SpectralCoordinate for the freqid, which we are iterating over
    2815     SpectralCoordinate sC = in->frequencies().getSpectralCoordinate(freqidCol(0));
     2818    SpectralCoordinate sC = \
     2819      in->frequencies().getSpectralCoordinate(freqidCol(0));
    28162820    FrequencyAligner<Float> fa( sC, nchan, refEpoch,
    28172821                                direction, refPos, system );
     
    28262830                                                sc2.increment()[0]);
    28272831    while ( !fiter.pastEnd() ) {
     2832     
    28282833      ftab = fiter.table();
    28292834      // spectral coordinate for the current FREQ_ID
Note: See TracChangeset for help on using the changeset viewer.