Ignore:
Timestamp:
03/17/06 17:00:16 (18 years ago)
Author:
mar637
Message:

change default polytype passed as argument to "", to then apply Scantable::poltype if empty.
added poltype to STHeader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r902 r905  
    298298  table_.rwKeywordSet().define("FluxUnit", sdh.fluxunit);
    299299  table_.rwKeywordSet().define("Epoch", sdh.epoch);
     300  table_.rwKeywordSet().define("POLTYPE", sdh.poltype);
    300301}
    301302
     
    319320  table_.keywordSet().get("FluxUnit", sdh.fluxunit);
    320321  table_.keywordSet().get("Epoch", sdh.epoch);
     322  table_.keywordSet().get("POLTYPE", sdh.poltype);
    321323  return sdh;
    322324}
     
    596598                                           const std::string& poltype ) const
    597599{
     600  String ptype = poltype;
     601  if (poltype == "" ) ptype = getPolType();
    598602  if ( whichrow  < 0 || whichrow >= nrow() )
    599603    throw(AipsError("Illegal row number."));
     
    602606  uInt requestedpol = polCol_(whichrow);
    603607  String basetype = getPolType();
    604   if ( String(poltype) == basetype) {
     608  if ( ptype == basetype ) {
    605609    specCol_.get(whichrow, arr);
    606610  } else {
     
    613617      focusTable_.getEntry(frot, fang, ftan, mfocusidCol_(row));
    614618      stpol->setPhaseCorrections(frot, fang, ftan);
    615       arr = stpol->getSpectrum(requestedpol, poltype);
     619      arr = stpol->getSpectrum(requestedpol, ptype);
    616620      delete stpol;
    617621    } catch (AipsError& e) {
Note: See TracChangeset for help on using the changeset viewer.