[811] | 1 | //
|
---|
| 2 | // C++ Interface: STWeather
|
---|
| 3 | //
|
---|
| 4 | // Description:
|
---|
| 5 | //
|
---|
| 6 | //
|
---|
| 7 | // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2006
|
---|
| 8 | //
|
---|
| 9 | // Copyright: See COPYING file that comes with this distribution
|
---|
| 10 | //
|
---|
| 11 | //
|
---|
[843] | 12 | #ifndef ASAPSTWEATHER_H
|
---|
| 13 | #define ASAPSTWEATHER_H
|
---|
[811] | 14 |
|
---|
| 15 | #include <casa/aips.h>
|
---|
| 16 | #include <casa/BasicSL/String.h>
|
---|
| 17 | #include <tables/Tables/Table.h>
|
---|
| 18 | #include <tables/Tables/ScalarColumn.h>
|
---|
| 19 |
|
---|
| 20 | #include "STSubTable.h"
|
---|
| 21 |
|
---|
| 22 | namespace asap {
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | The Weather subtable of the Scantable
|
---|
| 26 |
|
---|
| 27 | @author Malte Marquarding
|
---|
| 28 | */
|
---|
| 29 | class STWeather : public STSubTable {
|
---|
| 30 | public:
|
---|
[849] | 31 | STWeather() {;}
|
---|
[3106] | 32 | explicit STWeather(casacore::Table tab);
|
---|
[1353] | 33 | explicit STWeather(const Scantable& parent);
|
---|
[811] | 34 |
|
---|
| 35 | virtual ~STWeather();
|
---|
| 36 |
|
---|
[849] | 37 | STWeather& operator=(const STWeather& other);
|
---|
| 38 |
|
---|
[3106] | 39 | casacore::uInt addEntry( casacore::Float temperature, casacore::Float pressure,
|
---|
| 40 | casacore::Float humidity,
|
---|
| 41 | casacore::Float windspeed, casacore::Float windaz);
|
---|
[811] | 42 |
|
---|
[3106] | 43 | void getEntry( casacore::Float& temperature, casacore::Float& pressure,
|
---|
| 44 | casacore::Float& humidity,
|
---|
| 45 | casacore::Float& windspeed, casacore::Float& windaz,
|
---|
| 46 | casacore::uInt id) const;
|
---|
[830] | 47 |
|
---|
[3106] | 48 | const casacore::String& name() const { return name_; }
|
---|
[856] | 49 |
|
---|
[811] | 50 | private:
|
---|
| 51 | void setup();
|
---|
[3106] | 52 | static const casacore::String name_;
|
---|
| 53 | //casacore::Table table_;
|
---|
| 54 | //casacore::ScalarColumn<casacore::uInt> freqidCol_;
|
---|
| 55 | casacore::ScalarColumn<casacore::Float> pressureCol_, temperatureCol_,
|
---|
[811] | 56 | humidityCol_,
|
---|
| 57 | windspeedCol_, windazCol_;
|
---|
| 58 | };
|
---|
| 59 |
|
---|
| 60 | }
|
---|
| 61 |
|
---|
| 62 | #endif
|
---|