Changeset 227 for trunk/src/SDMath.h


Ignore:
Timestamp:
01/19/05 19:31:46 (19 years ago)
Author:
kil064
Message:

add gain-elevation correction capability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMath.h

    r221 r227  
    3737#include <casa/Utilities/CountedPtr.h>
    3838
     39class casa::Table;
     40
    3941namespace asap {
    4042
     
    6466   casa::CountedPtr<SDMemTable>  average(const casa::Block<casa::CountedPtr<SDMemTable> >& in,
    6567                                         const casa::Vector<casa::Bool>& mask,
    66                                          casa::Bool scanAverage, const std::string& weightStr);
     68                                         casa::Bool scanAverage, const casa::String& weightStr);
    6769//                                         casa::Bool alignVelocity);
    6870
     
    8183   SDMemTable* convertFlux (const SDMemTable& in, casa::Float area,
    8284                            casa::Float eta, casa::Bool doAll);
     85
     86// Gain-elevation correction
     87   SDMemTable* gainElevation (const SDMemTable& in, const casa::String& fileName,
     88                              const casa::String& method, casa::Bool doAll);
    8389
    8490// Simple mathematical operations.  what=0 (mul) or 1 (add)
     
    104110                   const casa::Block<casa::CountedPtr<SDMemTable> >& in,
    105111                   casa::uInt iTab, casa::uInt iRow, casa::uInt axis, casa::uInt nAxesSub,
    106                    casa::Bool useMask, WeightType wtType);
     112                   casa::Bool useMask, WeightType wtType) const;
    107113
    108114// Function to fill Scan Container when averaging in time
     
    113119                casa::Int scanID, casa::Double timeStamp,
    114120                casa::Double interval, const casa::String& sourceName,
    115                 const casa::Vector<casa::uInt>& freqID);
     121                const casa::Vector<casa::uInt>& freqID) const;
    116122
    117123// Put the data and mask into the SDContainer
    118124   void putDataInSDC (SDContainer& sc, const casa::Array<casa::Float>& data,
    119                       const casa::Array<casa::Bool>& mask);
     125                      const casa::Array<casa::Bool>& mask) const;
    120126
    121127// Function to normalize data when averaging in time
     
    124130                  const casa::Array<casa::Float>& sumSq,
    125131                  const casa::Array<casa::Float>& nPts,
    126                   WeightType wtType, casa::Int axis, casa::Int nAxes);
     132                  WeightType wtType, casa::Int axis, casa::Int nAxes) const;
    127133
    128134// Function to get the current cursor location
    129135   void getCursorLocation (casa::IPosition& start, casa::IPosition& end,
    130                            const SDMemTable& in);
     136                           const SDMemTable& in) const;
    131137
    132138// Convert weight string to enum value
    133139
    134    void convertWeightString (WeightType& wt, const std::string& weightStr);
     140   void convertWeightString (WeightType& wt, const casa::String& weightStr) const;
     141
     142// Convert interpolation type string
     143   void convertInterpString(casa::Int& type, const casa::String& interp) const;
     144
     145// Read ascii file
     146
     147   casa::Table readAsciiFile (const casa::String& fileName) const;
     148                   
    135149};
    136150
Note: See TracChangeset for help on using the changeset viewer.