|
Last change
on this file since 3137 was 3106, checked in by Takeshi Nakazato, 9 years ago |
|
New Development: No
JIRA Issue: No
Ready for Test: Yes/No
Interface Changes: Yes/No
What Interface Changed: Please list interface changes
Test Programs: List test programs
Put in Release Notes: Yes/No
Module(s): Module Names change impacts.
Description: Describe your changes here...
Check-in asap modifications from Jim regarding casacore namespace conversion.
|
|
File size:
1.3 KB
|
| Rev | Line | |
|---|
| [904] | 1 | //
|
|---|
| 2 | // C++ Interface: STPolLinear
|
|---|
| 3 | //
|
|---|
| 4 | // Description:
|
|---|
| 5 | //
|
|---|
| 6 | //
|
|---|
| 7 | // Author: Malte Marquarding <Malte.Marquarding@csiro.au>, (C) 2006
|
|---|
| 8 | //
|
|---|
| 9 | // Copyright: See COPYING file that comes with this distribution
|
|---|
| 10 | //
|
|---|
| 11 | //
|
|---|
| 12 | #ifndef ASAPSTPOLLINEAR_H
|
|---|
| 13 | #define ASAPSTPOLLINEAR_H
|
|---|
| 14 |
|
|---|
| 15 | #include "Factory.h"
|
|---|
| 16 | #include "STPol.h"
|
|---|
| 17 |
|
|---|
| 18 | namespace asap {
|
|---|
| 19 |
|
|---|
| 20 | /**
|
|---|
| [1007] | 21 | The linear representation of polarisation.
|
|---|
| 22 | We are using the following convention:
|
|---|
| 23 | @li I = XX + YY
|
|---|
| 24 | @li Q = XX - YY
|
|---|
| 25 | @li U = 2*Real(XY)
|
|---|
| 26 | @li V = 2*Imag(XY)
|
|---|
| [904] | 27 |
|
|---|
| [1007] | 28 | resulting in:
|
|---|
| 29 | @li I' = I
|
|---|
| 30 | @li Q' = Q * cos(theta) - V *sin(theta)
|
|---|
| 31 | @li U' = Q * sin(theta) + U * cos(theta)
|
|---|
| 32 | @li V' = V
|
|---|
| 33 | @author Malte Marquarding
|
|---|
| 34 |
|
|---|
| [904] | 35 | */
|
|---|
| 36 | class STPolLinear : public STPol
|
|---|
| 37 | {
|
|---|
| 38 | public:
|
|---|
| 39 | STPolLinear() {}
|
|---|
| 40 |
|
|---|
| [3106] | 41 | explicit STPolLinear(const casacore::Matrix<casacore::Float>& specs)
|
|---|
| [904] | 42 | { setSpectra(specs); }
|
|---|
| 43 |
|
|---|
| 44 | ~STPolLinear();
|
|---|
| 45 |
|
|---|
| 46 | static Factory<STPol,STPolLinear> myFactory;
|
|---|
| 47 |
|
|---|
| [3106] | 48 | virtual casacore::Vector<casacore::Float> getCircular( casacore::uInt index );
|
|---|
| [904] | 49 |
|
|---|
| [3106] | 50 | virtual casacore::Vector<casacore::Float> getStokes( casacore::uInt index);
|
|---|
| [904] | 51 |
|
|---|
| [3106] | 52 | virtual casacore::Vector<casacore::Float> getLinPol( casacore::uInt index);
|
|---|
| [904] | 53 |
|
|---|
| [3106] | 54 | virtual casacore::Vector<casacore::Float> getLinear( casacore::uInt index );
|
|---|
| [904] | 55 |
|
|---|
| [3106] | 56 | virtual void rotatePhase( casacore::Float phase );
|
|---|
| 57 | virtual void rotateLinPolPhase( casacore::Float phase );
|
|---|
| [904] | 58 |
|
|---|
| [3106] | 59 | virtual void invertPhase( casacore::Float phase );
|
|---|
| [904] | 60 |
|
|---|
| 61 | };
|
|---|
| 62 |
|
|---|
| 63 | }
|
|---|
| 64 |
|
|---|
| 65 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.