Changeset 355 for trunk/src


Ignore:
Timestamp:
02/03/05 15:44:10 (20 years ago)
Author:
kil064
Message:

track change in SDMath::convertFLux interface

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMathWrapper.cc

    r318 r355  
    202202
    203203
    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)));
     204void 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
     215SDMemTableWrapper 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)));
    221221}
    222222
  • trunk/src/SDMathWrapper.h

    r318 r355  
    7777
    7878// 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);
    8181
    8282// Apply gain elevation correction
Note: See TracChangeset for help on using the changeset viewer.