Ignore:
Timestamp:
02/16/05 12:26:36 (19 years ago)
Author:
mar637
Message:

Added SDFitTable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDContainer.cc

    r449 r453  
    225225
    226226
    227 Bool SDContainer::setFlags (const Matrix<uChar>& flags,
    228                             uInt whichBeam, uInt whichIF,
    229                             Bool hasXPol)
     227Bool SDContainer::setFlags(const Matrix<uChar>& flags,
     228                           uInt whichBeam, uInt whichIF,
     229                           Bool hasXPol)
    230230//
    231231// flags is [nChan,nPol]
     
    478478}
    479479
    480 void SDContainer::setSlice (IPosition& start, IPosition& end,
    481                             const IPosition& shpIn, const IPosition& shpOut,
    482                             uInt whichBeam, uInt whichIF, Bool tSys,
    483                             Bool xPol) const
     480Bool SDContainer::putFitMap(const Array<Int>& arr) {
     481  fitIDMap_.resize();
     482  fitIDMap_ = arr;
     483  return True;
     484}
     485
     486void SDContainer::setSlice(IPosition& start, IPosition& end,
     487                           const IPosition& shpIn, const IPosition& shpOut,
     488                           uInt whichBeam, uInt whichIF, Bool tSys,
     489                           Bool xPol) const
    484490//
    485491// tSYs
     
    502508  }
    503509//
    504   setSlice (start, end, shpOut, whichBeam, whichIF);
    505 }
    506 
    507 
    508 void SDContainer::setSlice (IPosition& start, IPosition& end, const IPosition& shape,
    509                             uInt whichBeam, uInt whichIF) const
     510  setSlice(start, end, shpOut, whichBeam, whichIF);
     511}
     512
     513
     514void SDContainer::setSlice(IPosition& start, IPosition& end,
     515                           const IPosition& shape,
     516                           uInt whichBeam, uInt whichIF) const
    510517{
    511518  AlwaysAssert(asap::nAxes==4,AipsError);
    512 //
     519  //
    513520  start.resize(asap::nAxes);
    514521  start = 0;
     
    575582}
    576583
     584// SDFitTable
     585
     586
     587const Vector<Double>& SDFitTable::getFitParameters(uInt whichRow) const
     588{
     589  if (whichRow <= n_)
     590    return fitParms_[whichRow];
     591}
     592
     593const Vector<Bool>& SDFitTable::getFitParameterMask(uInt whichRow) const
     594{
     595  if (whichRow <= n_)
     596    return parMask_[whichRow];
     597}
     598
     599const Vector<Int>& SDFitTable::getFitComponents(uInt whichRow) const
     600{
     601  if (whichRow <= n_)
     602    return fitComps_[whichRow];
     603}
     604
     605const Vector<String>& SDFitTable::getFitFunctions(uInt whichRow) const
     606{
     607  if (whichRow <= n_)
     608    return fitFuncs_[whichRow];
     609}
     610
     611void SDFitTable::putFitParameters(uInt whichRow, const Vector<Double>& arr)
     612{
     613  if (whichRow <= n_)
     614    fitParms_[whichRow] = arr;
     615}
     616
     617void SDFitTable::putFitParameterMask(uInt whichRow, const Vector<Bool>& arr)
     618{
     619  if (whichRow <= n_)
     620    parMask_[whichRow] = arr;
     621}
     622
     623void SDFitTable::putFitComponents(uInt whichRow, const Vector<Int>& arr)
     624{
     625  if (whichRow <= n_)
     626    fitComps_[whichRow] = arr;
     627}
     628void SDFitTable::putFitFunctions(uInt whichRow, const Vector<String>& arr)
     629{
     630  if (whichRow <= n_)
     631    fitFuncs_[whichRow] = arr;
     632}
    577633
    578634
    579635// SDDataDesc
    580636
    581 uInt SDDataDesc::addEntry (const String& source, uInt ID,
    582                            const MDirection& dir, uInt secID)
     637uInt SDDataDesc::addEntry(const String& source, uInt ID,
     638                          const MDirection& dir, uInt secID)
    583639{
    584640
     
    618674   }
    619675}
     676
Note: See TracChangeset for help on using the changeset viewer.