Changeset 455 for trunk/src/SDMemTable.h
- Timestamp:
- 02/16/05 12:29:26 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.h
r447 r455 36 36 #include <vector> 37 37 // AIPS++ 38 38 #include <casa/aips.h> 39 39 #include <casa/Arrays/MaskedArray.h> 40 40 #include <casa/BasicSL/String.h> … … 49 49 50 50 namespace asap { 51 51 52 52 class SDContainer; 53 53 class SDHeader; 54 54 class SDFrequencyTable; 55 55 class SDFitTable; 56 56 57 57 … … 95 95 virtual std::vector<bool> getMask(casa::Int whichRow=0) const; 96 96 97 98 97 // When we can handle input correlations being either circular or 99 // linear, we should probably have functions; getLinear, getCircular, getStokes 100 // since one can inter-convert between all three regardless of the input 101 // provided there are 4 polarizations. For now, we are assuming, if 102 // there are 4 polarizations, that we have linears. getSpectrum 103 // is then 'getLinear', getStokesSpectrum is 'getStokes' and getCircularSpectrum 104 // is 'getCircular' 105 106 107 // Get Stokes at cursor location. One of either I,Q,U,V or I,P,PA,V (doPol=True) 108 // If the latter, you can add a PA offset (degrees) 98 // linear, we should probably have functions; getLinear, 99 // getCircular, getStokes since one can inter-convert between all 100 // three regardless of the input provided there are 4 101 // polarizations. For now, we are assuming, if there are 4 102 // polarizations, that we have linears. getSpectrum is then 103 // 'getLinear', getStokesSpectrum is 'getStokes' and 104 // getCircularSpectrum is 'getCircular' 105 106 107 // Get Stokes at cursor location. One of either I,Q,U,V or I,P,PA,V 108 // (doPol=True) If the latter, you can add a PA offset (degrees) 109 109 virtual std::vector<float> getStokesSpectrum(casa::Int whichRow=0, 110 110 casa::Bool doPol=casa::False, … … 130 130 casa::MDirection getDirection(casa::Int whichRow=0, 131 131 casa::Bool refBeam=casa::False) const; 132 // 132 133 133 std::string getSourceName(casa::Int whichRow=0) const; 134 134 double getInterval(casa::Int whichRow=0) const; … … 137 137 virtual void setCoordInfo(std::vector<string> theinfo); 138 138 139 // Set RestFreqID. source="" and IF=-1 means select all140 virtual casa::Bool setRestFreqs 141 142 143 144 145 146 // List lines147 148 149 // Get/Set flux unit139 // Set RestFreqID. source="" and IF=-1 means select all 140 virtual casa::Bool setRestFreqs(const casa::Vector<casa::Double>& restFreqs, 141 const casa::String& unit, 142 const std::vector<std::string>& lines, 143 const casa::String& source, 144 casa::Int whichIF=-1); 145 146 // List lines 147 void spectralLines() const; 148 149 // Get/Set flux unit 150 150 std::string getFluxUnit() const; 151 151 void setFluxUnit (const std::string& unit); 152 153 // Set Instrument152 153 // Set Instrument 154 154 void setInstrument (const std::string& instrument); 155 155 … … 243 243 static Instrument convertInstrument(const casa::String& instrument, 244 244 casa::Bool throwIt); 245 245 246 bool putSDFitTable(const SDFitTable& sdft); 247 SDFitTable getSDFitTable() const; 248 249 void addFit(casa::uInt whichRow, 250 const casa::Vector<casa::Double>& p, 251 const casa::Vector<casa::Bool>& m, 252 const casa::Vector<casa::String>& f, 253 const casa::Vector<casa::Int>& c); 254 246 255 private: 247 256 // utility func for nice printout 248 257 casa::String formatSec(casa::Double x) const; 249 258 casa::String formatDirection(const casa::MDirection& md) const; 250 std::vector<float> getFloatSpectrum 259 std::vector<float> getFloatSpectrum(const casa::Array<casa::Float>& arr) const; 251 260 void setup(); 252 261 void attach(); … … 254 263 255 264 // Generate start and end for shape and current cursor selection 256 void setCursorSlice(casa::IPosition& start, casa::IPosition& end, const casa::IPosition& shape) const; 257 258 // Convert Vector to vector 259 std::vector<float> convertVector (const casa::Vector<casa::Float>& in) const; 260 265 void setCursorSlice(casa::IPosition& start, casa::IPosition& end, 266 const casa::IPosition& shape) const; 261 267 262 268 // the current cursor into the array … … 266 272 casa::Table table_; 267 273 268 // Cached Columns to avoid reconstructing them for each row get/put274 // Cached Columns to avoid reconstructing them for each row get/put 269 275 casa::ScalarColumn<casa::Double> timeCol_, integrCol_; 270 276 casa::ScalarColumn<casa::Float> azCol_, elCol_, paraCol_; … … 276 282 casa::ArrayColumn<casa::uInt> freqidCol_, restfreqidCol_; 277 283 casa::ArrayColumn<casa::String> histCol_; 284 casa::ArrayColumn<casa::Int> fitCol_; 278 285 casa::ROArrayColumn<casa::Float> stokesCol_; 279 286 };
Note: See TracChangeset
for help on using the changeset viewer.