[807] | 1 | //
|
---|
| 2 | // C++ Interface: STFocus
|
---|
| 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 | //
|
---|
| 12 | #ifndef ASAPSTFOCUS_H
|
---|
| 13 | #define ASAPSTFOCUS_H
|
---|
| 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 Focus subtable of the Scantable
|
---|
| 26 |
|
---|
| 27 | @author Malte Marquarding
|
---|
| 28 | */
|
---|
| 29 | class STFocus : public STSubTable {
|
---|
| 30 | public:
|
---|
[849] | 31 | STFocus() {;}
|
---|
[3106] | 32 | explicit STFocus(casacore::Table tab);
|
---|
[1353] | 33 | explicit STFocus( const Scantable& parent );
|
---|
[807] | 34 |
|
---|
| 35 | virtual ~STFocus();
|
---|
| 36 |
|
---|
[849] | 37 | STFocus& operator=(const STFocus& other);
|
---|
| 38 |
|
---|
[3106] | 39 | casacore::uInt addEntry( casacore::Float pa, casacore::Float faxis, casacore::Float ftan,
|
---|
| 40 | casacore::Float frot, casacore::Float hand=1.0f,
|
---|
| 41 | casacore::Float mount=0.0f, casacore::Float user=0.0f,
|
---|
| 42 | casacore::Float xyphase=0.0f,
|
---|
| 43 | casacore::Float xyphaseoffset=0.0f);
|
---|
[807] | 44 |
|
---|
[3106] | 45 | void getEntry( casacore::Float& pa, casacore::Float& fax, casacore::Float& ftan,
|
---|
| 46 | casacore::Float& frot, casacore::Float& hand,
|
---|
| 47 | casacore::Float& mount, casacore::Float& user,
|
---|
| 48 | casacore::Float& xyphase, casacore::Float& xyphaseoffset,
|
---|
| 49 | casacore::uInt id) const;
|
---|
[839] | 50 |
|
---|
[3106] | 51 | casacore::Float getTotalAngle(casacore::uInt id) const;
|
---|
[1586] | 52 |
|
---|
[3106] | 53 | casacore::Float getParAngle(casacore::uInt id) const {
|
---|
[1586] | 54 | return parangleCol_(id);
|
---|
| 55 | }
|
---|
[3106] | 56 | casacore::Float getFeedHand(casacore::uInt id) const;
|
---|
[957] | 57 |
|
---|
[1586] | 58 | void setParallactify(bool istrue=false);
|
---|
| 59 |
|
---|
[3106] | 60 | const casacore::String& name() const { return name_; }
|
---|
[856] | 61 |
|
---|
[807] | 62 | private:
|
---|
| 63 | void setup();
|
---|
[3106] | 64 | static const casacore::String name_;
|
---|
| 65 | casacore::ScalarColumn<casacore::Float> rotationCol_, axisCol_,
|
---|
[1586] | 66 | tanCol_,handCol_, parangleCol_,
|
---|
[2289] | 67 | mountCol_,userCol_, xyphCol_,xyphoffCol_;
|
---|
[807] | 68 | };
|
---|
| 69 |
|
---|
| 70 | }
|
---|
| 71 |
|
---|
| 72 | #endif
|
---|