Changeset 34 for trunk/src/SDContainer.h
- Timestamp:
- 07/07/04 18:37:16 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDContainer.h
r27 r34 66 66 public: 67 67 68 SDFrequencyTable() {;} 68 SDFrequencyTable() : nFreq_(0) {;} 69 virtual ~SDFrequencyTable() {;} 70 71 Int length() const { return nFreq_;};// # of stored Frequencies 72 73 Double referencePixel(uInt which) const { return refPix_[which];} 74 Double referenceValue(uInt which) const { return refVal_[which];} 75 Double increment(uInt which) const { return increment_[which];} 76 Float equinox() const { return equinox_; } 77 String refFrame() const { return refFrame_; } 78 69 79 // returns the index into the table 70 80 // this creates a new one or returns an existing one 71 Int addFrequency(Double refPix, Double refVal, Double inc) {;} 72 73 Int length() const { return nFreq_;};// # of stored Frequencies 74 // returns a Table with nRows == nFreq, and three cols 81 Int addFrequency(Int refPix, Double refVal, Double inc); 82 void setEquinox(Float eq) { equinox_ = eq; } 83 void setRefFrame(const String& reff) { refFrame_ = reff; } 75 84 76 85 private: 77 86 Int nFreq_; 78 std::vector<double> refPix_; 79 std::vector<double> revVal_; 80 std::vector<double> increment_; 87 Vector<Double> refPix_; 88 Vector<Double> refVal_; 89 Vector<Double> increment_; 90 Float equinox_; 91 String refFrame_; 81 92 }; 82 93 … … 104 115 Bool setPointing(const Vector<Double>& point, uInt whichBeam) {;} 105 116 106 Bool setFrequencyMap(uInt freqslot, uInt whichIF) {;} 117 Bool setFrequencyMap(uInt freqslot, uInt whichIF); 118 Bool putFreqMap(const Vector<uInt>& freqs); 107 119 120 const Array<Float>& getSpectrum(uInt whichBeam, uInt whichIF) const; 121 const Array<uChar>& getFlags(uInt whichBeam, uInt whichIF) const; 122 const Array<Float>& getTsys(uInt whichBeam, uInt whichIF) const; 123 108 124 const Array<Float>& getSpectrum() const { return spectrum_; } 109 125 const Array<uChar>& getFlags() const { return flags_; } 110 126 const Array<Float>& getTsys() const { return tsys_; } 111 112 Array<Float> getSpectrum(uInt whichBeam, uInt whichIF) const; 113 Array<uChar> getFlags(uInt whichBeam, uInt whichIF) const; 114 Array<Float> getTsys(uInt whichBeam, uInt whichIF) const; 127 128 const Vector<uInt>& getFreqMap() const { return freqidx_; } 115 129 116 130 Double timestamp;
Note: See TracChangeset
for help on using the changeset viewer.