- Timestamp:
- 02/03/05 15:44:10 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMathWrapper.cc
r318 r355 202 202 203 203 204 void SDMathWrapper::convertFluxInSitu(SDMemTableWrapper& in, 205 float area, float eta, bool doAll)206 { 207 SDMemTable* pIn = in.getPtr(); 208 SDMath sdm; 209 SDMemTable* pOut = sdm.convertFlux (*pIn, Float( area), Float(eta), Bool(doAll));210 *pIn = *pOut; 211 delete pOut; 212 } 213 214 215 SDMemTableWrapper SDMathWrapper::convertFlux(const SDMemTableWrapper& in, 216 float area, float eta, bool doAll)217 { 218 const CountedPtr<SDMemTable>& pIn = in.getCP(); 219 SDMath sdm; 220 return CountedPtr<SDMemTable>(sdm.convertFlux(*pIn, Float( area), Float(eta), Bool(doAll)));204 void SDMathWrapper::convertFluxInSitu(SDMemTableWrapper& in, float D, 205 float eta, float JyPerK, bool doAll) 206 { 207 SDMemTable* pIn = in.getPtr(); 208 SDMath sdm; 209 SDMemTable* pOut = sdm.convertFlux (*pIn, Float(D), Float(eta), Float(JyPerK), Bool(doAll)); 210 *pIn = *pOut; 211 delete pOut; 212 } 213 214 215 SDMemTableWrapper SDMathWrapper::convertFlux(const SDMemTableWrapper& in, float D, float eta, 216 float JyPerK, bool doAll) 217 { 218 const CountedPtr<SDMemTable>& pIn = in.getCP(); 219 SDMath sdm; 220 return CountedPtr<SDMemTable>(sdm.convertFlux(*pIn, Float(D), Float(eta), Float(JyPerK), Bool(doAll))); 221 221 } 222 222 -
trunk/src/SDMathWrapper.h
r318 r355 77 77 78 78 // Convert brightness between Jy and K 79 void convertFluxInSitu(SDMemTableWrapper& in, float area, float eta, bool doAll);80 SDMemTableWrapper convertFlux(const SDMemTableWrapper& in, float area, float eta, bool doAll);79 void convertFluxInSitu(SDMemTableWrapper& in, float D, float eta, float JyPerK, bool doAll); 80 SDMemTableWrapper convertFlux(const SDMemTableWrapper& in, float D, float eta, float JyPerK, bool doAll); 81 81 82 82 // Apply gain elevation correction
Note:
See TracChangeset
for help on using the changeset viewer.