Changeset 244
- Timestamp:
- 01/21/05 13:27:47 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMath.cc
r234 r244 422 422 } 423 423 424 // Compute quotient 425 426 MaskedArray<Float> tmp = (mOn-*pMOff); 427 Array<Float> out(tmp.getArray()); 428 out /= *pMOff; 429 out *= tSysOffArr; 430 431 // MaskedArray<Float> tmp2 = (tSysOnArr * mOn / *pMOff) - tSysOffArr; 432 433 434 // Fill container for this row 424 // Get container 435 425 436 426 SDContainer sc = on->getSDContainer(i); 437 // 438 putDataInSDC(sc, out, tmp.getMask()); 427 428 // Compute and put quotient into container 429 430 if (preserveContinuum) { 431 MaskedArray<Float> tmp = (tSysOffArr * mOn / *pMOff) - tSysOffArr; 432 putDataInSDC(sc, tmp.getArray(), tmp.getMask()); 433 } else { 434 MaskedArray<Float> tmp = (tSysOffArr * mOn / *pMOff) - tSysOnArr; 435 putDataInSDC(sc, tmp.getArray(), tmp.getMask()); 436 } 439 437 sc.putTsys(tSysOffArr); 440 438 sc.scanid = i; -
trunk/src/SDMathWrapper.cc
r235 r244 39 39 40 40 SDMemTableWrapper SDMathWrapper::quotient(const SDMemTableWrapper& on, 41 const SDMemTableWrapper& off) 41 const SDMemTableWrapper& off, 42 Bool preserveContinuum) 42 43 { 43 44 SDMath sdm; 44 return SDMemTableWrapper(sdm.quotient(on.getCP(), off.getCP() ));45 return SDMemTableWrapper(sdm.quotient(on.getCP(), off.getCP(), preserveContinuum)); 45 46 } 46 47 -
trunk/src/SDMathWrapper.h
r235 r244 45 45 // Quotient 46 46 SDMemTableWrapper quotient(const SDMemTableWrapper& on, 47 const SDMemTableWrapper& off); 47 const SDMemTableWrapper& off, 48 casa::Bool preserveContinuum); 48 49 49 50 // Simple binary operations
Note:
See TracChangeset
for help on using the changeset viewer.