Changeset 227 for trunk/src/SDMath.h
- Timestamp:
- 01/19/05 19:31:46 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMath.h
r221 r227 37 37 #include <casa/Utilities/CountedPtr.h> 38 38 39 class casa::Table; 40 39 41 namespace asap { 40 42 … … 64 66 casa::CountedPtr<SDMemTable> average(const casa::Block<casa::CountedPtr<SDMemTable> >& in, 65 67 const casa::Vector<casa::Bool>& mask, 66 casa::Bool scanAverage, const std::string& weightStr);68 casa::Bool scanAverage, const casa::String& weightStr); 67 69 // casa::Bool alignVelocity); 68 70 … … 81 83 SDMemTable* convertFlux (const SDMemTable& in, casa::Float area, 82 84 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); 83 89 84 90 // Simple mathematical operations. what=0 (mul) or 1 (add) … … 104 110 const casa::Block<casa::CountedPtr<SDMemTable> >& in, 105 111 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; 107 113 108 114 // Function to fill Scan Container when averaging in time … … 113 119 casa::Int scanID, casa::Double timeStamp, 114 120 casa::Double interval, const casa::String& sourceName, 115 const casa::Vector<casa::uInt>& freqID) ;121 const casa::Vector<casa::uInt>& freqID) const; 116 122 117 123 // Put the data and mask into the SDContainer 118 124 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; 120 126 121 127 // Function to normalize data when averaging in time … … 124 130 const casa::Array<casa::Float>& sumSq, 125 131 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; 127 133 128 134 // Function to get the current cursor location 129 135 void getCursorLocation (casa::IPosition& start, casa::IPosition& end, 130 const SDMemTable& in) ;136 const SDMemTable& in) const; 131 137 132 138 // Convert weight string to enum value 133 139 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 135 149 }; 136 150
Note: See TracChangeset
for help on using the changeset viewer.