- Timestamp:
- 08/02/06 14:58:50 (18 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Logger.h
r1102 r1104 33 33 /** 34 34 * push another message into the logger 35 * @param[in] the message36 * @param[in] whether to add a newline character at the end35 * @param[in] s the message 36 * @param[in] newline whether to add a newline character at the end 37 37 */ 38 38 void pushLog(const std::string& s, bool newline=true) const; 39 39 /** 40 40 * pop the message form the logger 41 * @return sthe log message string41 * @return the log message string 42 42 */ 43 43 std::string popLog() const; -
trunk/src/RowAccumulator.h
r831 r1104 17 17 18 18 namespace asap { 19 19 /** 20 * This class accumulates spectra and weights and returns the averaged data 21 * @brief Class for averaging of spectra 22 * @author Malte Marquarding 23 * @date $Date:$ 24 * @version 25 */ 20 26 class RowAccumulator { 21 22 27 23 28 public: 24 29 30 /** 31 * Constructor taking a weight type as defined in @ref STDefs 32 */ 25 33 RowAccumulator(WeightType wt = asap::NONE); 26 34 27 35 ~RowAccumulator(); 28 36 37 /** 38 * add a new "row" to the accumulator 39 * @param v the spectrum 40 * @param m the mask for the spectrum 41 * @param tsys the Tsys corresponing to the spectrum 42 * @param interval the intergration time 43 * @param the time of the observation 44 */ 29 45 void add(const casa::Vector<casa::Float>& v, 30 46 const casa::Vector<casa::Bool>& m, … … 32 48 casa::Double interval, 33 49 casa::Double time); 34 50 /** 51 * Also set a user mask which get combined with the individual masks 52 * from the spectra 53 * @param m a boolean mask of teh same length as the spectrum 54 */ 35 55 void setUserMask(const casa::Vector<casa::Bool>& m); 36 56 /** 57 * Get the spectrum. Applies the normalisation (averaging) 58 * @return the spectrum vector 59 */ 37 60 casa::Vector<casa::Float> getSpectrum() const; 61 /** 62 * Get the Tsys. Applies the normalisation (averaging) 63 * @return the Tsys vector 64 */ 38 65 casa::Vector<casa::Float> getTsys() const; 66 /** 67 * Get the spectrum's mask. Applies the normalisation (averaging) 68 * @return the mask vector 69 */ 39 70 casa::Vector<casa::Bool> getMask() const; 40 71 /** 72 * Get the total interval. 73 * @return the integration time 74 */ 41 75 casa::Double getInterval() const; 76 /** 77 * Get the time of the observation. Retrieves the "mean" time. 78 * @return the integration time 79 */ 42 80 casa::Double getTime() const; 43 81 /** 82 * Reset the acummulator to the state at construction. 83 */ 44 84 void reset(); 45 85 … … 55 95 WeightType weightType_; 56 96 casa::Bool initialized_; 57 //these are a Vector97 //these are Vectors 58 98 casa::MaskedArray<casa::Float> spectrum_; 59 99 casa::MaskedArray<casa::Float> n_, weightSum_; -
trunk/src/Scantable.h
r1068 r1104 90 90 /** 91 91 * get a const reference to the underlying casa::Table 92 * @return cons antcasa::Table reference92 * @return const \ref casa::Table reference 93 93 */ 94 94 const casa::Table& table() const; … … 146 146 147 147 /** 148 * return the number of scans in the table148 * The number of scans in the table 149 149 * @return number of scans in the table 150 150 */ … … 159 159 casa::MPosition getAntennaPosition() const; 160 160 161 /** 162 * the @ref casa::MDirection for a specific row 163 * @param[in] whichrow the row number 164 * return casa::MDirection 165 */ 161 166 casa::MDirection getDirection( int whichrow ) const; 162 167 168 /** 169 * get the direction type as a string, e.g. "J2000" 170 * @param[in] whichrow the row number 171 * return the direction string 172 */ 163 173 std::string getDirectionString( int whichrow ) const; 164 174 175 /** 176 * set the direction type as a string, e.g. "J2000" 177 * @param[in] the direction type 178 */ 165 179 void setDirectionRefString(const std::string& refstr=""); 166 167 std::string getDirectionRefString() const; 180 /** 181 * get the direction reference string 182 * @return a string describing the direction reference 183 */ 184 std::string getDirectionRefString() const; /** 185 * get the direction type as a string, e.g. "J2000" 186 * param[in] whichrow the row number 187 * return the direction string 188 */ 189 168 190 169 191 /** … … 192 214 /** 193 215 * "hard" flag the data, this flags everything selected in setSelection() 216 * param[in] msk a boolean mask of length nchan describing the points to 217 * to be flagged 194 218 */ 195 219 void flag( const std::vector<bool>& msk = std::vector<bool>()); … … 239 263 * @param scanno the scan number to get the number of rows for. 240 264 * If scanno<0 the number is retrieved from the header. 241 * @return 265 * @return the number of rows (for the specified scanno) 242 266 */ 243 267 int nrow(int scanno=-1) const;
Note:
See TracChangeset
for help on using the changeset viewer.