Changeset 934


Ignore:
Timestamp:
03/27/06 19:32:14 (18 years ago)
Author:
mar637
Message:

added _empty function

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r926 r934  
    7070  WeightType wtype = stringToWeight(weight);
    7171
    72   std::vector<CountedPtr<Scantable> >* in = const_cast<std::vector<CountedPtr<Scantable> >*>(&scantbls);
     72  std::vector<CountedPtr<Scantable> >* in =
     73    const_cast<std::vector<CountedPtr<Scantable> >*>(&scantbls);
    7374  std::vector<CountedPtr<Scantable> > inaligned;
    7475  if ( alignfreq ) {
     
    940941    ArrayColumn<Float> speccol(t, "SPECTRA");
    941942    Matrix<Float> pols = speccol.getColumn();
    942     Matrix<Float> out;
    943943    try {
    944944      stpol->setSpectra(pols);
    945945      (stpol->*fptr)(phase);
    946946      speccol.putColumn(stpol->getSpectra());
    947       delete stpol;stpol=0;
    948947    } catch (AipsError& e) {
    949948      delete stpol;stpol=0;
     
    952951    ++iter;
    953952  }
     953  delete stpol;stpol=0;
    954954  return out;
    955955}
     
    10161016  }
    10171017  MFrequency::Types system = in->frequencies().getFrame();
    1018   out->frequencies().setFrame(system);
     1018  out->frequencies().setFrame(system, true);
    10191019  // set up the iterator
    10201020  Block<String> cols(4);
     
    10511051      SpectralCoordinate sc2 = fa.alignedSpectralCoordinate(linear);
    10521052      sc2.setWorldAxisUnits(units);
    1053       out->frequencies().addEntry(sc2.referencePixel()[0],
    1054                                   sc2.referenceValue()[0],
    1055                                   sc2.increment()[0]);
     1053      uInt id = out->frequencies().addEntry(sc2.referencePixel()[0],
     1054                                            sc2.referenceValue()[0],
     1055                                            sc2.increment()[0]);
     1056      TableVector<uInt> tvec(ftab, "FREQ_ID");
     1057      tvec = id;
    10561058      // create the "global" abcissa for alignment with same FREQ_ID
    10571059      Vector<Double> abc(nchan);
  • trunk/src/Templates.cpp

    r896 r934  
    6262#include <tables/Tables/TVecScaCol.cc>
    6363#include <tables/Tables/TVecTemp.cc>
     64//#include <tables/Tables/TVecMath.h>
    6465
    6566template class ROTableVector<uInt>;
  • trunk/src/python_STSelector.cpp

    r902 r934  
    3838        .def("_settaql", &STSelector::setTaQL)
    3939        .def("_setorder", &STSelector::setSortOrder)
     40        .def("_empty", &STSelector::empty)
    4041      ;
    4142    };
Note: See TracChangeset for help on using the changeset viewer.