- Timestamp:
- 02/20/06 13:47:07 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STFrequencies.h
r830 r836 27 27 28 28 @author Malte Marquarding 29 @brief The frequency subtable of the Scantable 29 30 */ 30 31 class STFrequencies : public STSubTable { … … 43 44 casa::Double inc ); 44 45 46 /** 47 * Retrieve the frequency values for a specific id via references 48 * @param refpix the reference pixel 49 * @param refval the reference value 50 * @param inc the increment 51 * @param id the identifier 52 */ 45 53 void getEntry( casa::Double& refpix, casa::Double& refval, 46 54 casa::Double& inc, casa::uInt id ); 47 55 56 57 /** 58 * Retrieve the frequency values as a casa::SpectralCoordinate 59 * @param freqID 60 * @return casa::SpectralCoordinate 61 */ 48 62 casa::SpectralCoordinate getSpectralCoordinate( casa::uInt freqID ); 49 63 64 /** 65 * Return the unit of the frequency values 66 * @return casa::Unit 67 */ 50 68 const casa::Unit& getUnit() const; 69 /** 70 * Return the doppler type of the values 71 * @return casa::MDoppler 72 */ 51 73 casa::MDoppler getDoppler() const; 52 74 53 75 76 /** 77 * Return the frame type, e.g MFrequency::TOPO 78 * @return casa::MFrequency::Types 79 */ 54 80 casa::MFrequency::Types getFrame() const; 81 82 /** 83 * Return a string representation of the frame type, e.g TOPO 84 * @return 85 */ 55 86 std::string getFrameString() const; 87 88 /** 89 * set the frequency frame from a string value 90 * @param frame a string identifier 91 */ 56 92 void setFrame(const std::string& frame); 93 /** 94 * set the frequency frame from a casa::MFrequency::Types 95 * @param frame casa::MFrequency::Types 96 */ 57 97 void setFrame(casa::MFrequency::Types frame); 58 98 99 /** 100 * rescale the whole table by a given factor 101 * @param factor the factor to bin or resample by 102 * @param mode the rescaling mode 103 * @li "BIN" 104 * @li "RESAMPLE" 105 */ 59 106 void rescale(casa::Float factor, const std::string& mode); 60 107 108 /** 109 * get the reference frequency at a given channel for a specidif identifier 110 * @param id the identifier 111 * @param channel the channel number 112 * @return teh reference frequency 113 */ 61 114 float getRefFreq(casa::uInt id, casa::uInt channel); 62 115 116 117 /** 118 * Rteun this table or s specific row as a string representation 119 * @param id the identifier. If id<0 all rows are returned 120 * @return a string 121 */ 63 122 std::string print(int id=-1); 64 123 65 124 private: 125 126 /** 127 * setup the the column structure of the casa::table 128 */ 66 129 void setup(); 130 /** 131 * the actual binning of the SpectralCoordinate as called by rescale 132 * @param sc 133 * @param factor the bin factor 134 * @return casa::SpectralCoordinate 135 */ 67 136 casa::SpectralCoordinate binCsys(const casa::SpectralCoordinate& sc, casa::Int factor); 137 /** 138 * the actual resampling of the SpectralCoordinate as called by rescale 139 * @param sc 140 * @param width the resacle width. Can be decimal. 141 * @return 142 */ 68 143 casa::SpectralCoordinate resampleCsys(const casa::SpectralCoordinate& sc, casa::Float width); 69 144 70 145 static const casa::String name_; 71 //casa::Table table_;72 //casa::ScalarColumn<casa::uInt> freqidCol_;73 146 casa::ScalarColumn<casa::Double> refvalCol_, refpixCol_, incrCol_; 74 147 };
Note:
See TracChangeset
for help on using the changeset viewer.