Changeset 453 for trunk/src/SDContainer.cc
- Timestamp:
- 02/16/05 12:26:36 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDContainer.cc
r449 r453 225 225 226 226 227 Bool SDContainer::setFlags 228 229 227 Bool SDContainer::setFlags(const Matrix<uChar>& flags, 228 uInt whichBeam, uInt whichIF, 229 Bool hasXPol) 230 230 // 231 231 // flags is [nChan,nPol] … … 478 478 } 479 479 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 480 Bool SDContainer::putFitMap(const Array<Int>& arr) { 481 fitIDMap_.resize(); 482 fitIDMap_ = arr; 483 return True; 484 } 485 486 void SDContainer::setSlice(IPosition& start, IPosition& end, 487 const IPosition& shpIn, const IPosition& shpOut, 488 uInt whichBeam, uInt whichIF, Bool tSys, 489 Bool xPol) const 484 490 // 485 491 // tSYs … … 502 508 } 503 509 // 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 514 void SDContainer::setSlice(IPosition& start, IPosition& end, 515 const IPosition& shape, 516 uInt whichBeam, uInt whichIF) const 510 517 { 511 518 AlwaysAssert(asap::nAxes==4,AipsError); 512 //519 // 513 520 start.resize(asap::nAxes); 514 521 start = 0; … … 575 582 } 576 583 584 // SDFitTable 585 586 587 const Vector<Double>& SDFitTable::getFitParameters(uInt whichRow) const 588 { 589 if (whichRow <= n_) 590 return fitParms_[whichRow]; 591 } 592 593 const Vector<Bool>& SDFitTable::getFitParameterMask(uInt whichRow) const 594 { 595 if (whichRow <= n_) 596 return parMask_[whichRow]; 597 } 598 599 const Vector<Int>& SDFitTable::getFitComponents(uInt whichRow) const 600 { 601 if (whichRow <= n_) 602 return fitComps_[whichRow]; 603 } 604 605 const Vector<String>& SDFitTable::getFitFunctions(uInt whichRow) const 606 { 607 if (whichRow <= n_) 608 return fitFuncs_[whichRow]; 609 } 610 611 void SDFitTable::putFitParameters(uInt whichRow, const Vector<Double>& arr) 612 { 613 if (whichRow <= n_) 614 fitParms_[whichRow] = arr; 615 } 616 617 void SDFitTable::putFitParameterMask(uInt whichRow, const Vector<Bool>& arr) 618 { 619 if (whichRow <= n_) 620 parMask_[whichRow] = arr; 621 } 622 623 void SDFitTable::putFitComponents(uInt whichRow, const Vector<Int>& arr) 624 { 625 if (whichRow <= n_) 626 fitComps_[whichRow] = arr; 627 } 628 void SDFitTable::putFitFunctions(uInt whichRow, const Vector<String>& arr) 629 { 630 if (whichRow <= n_) 631 fitFuncs_[whichRow] = arr; 632 } 577 633 578 634 579 635 // SDDataDesc 580 636 581 uInt SDDataDesc::addEntry 582 637 uInt SDDataDesc::addEntry(const String& source, uInt ID, 638 const MDirection& dir, uInt secID) 583 639 { 584 640 … … 618 674 } 619 675 } 676
Note: See TracChangeset
for help on using the changeset viewer.