source: trunk/src/STPolLinear.h@ 3107

Last change on this file since 3107 was 3106, checked in by Takeshi Nakazato, 8 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
Line 
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
18namespace asap {
19
20/**
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)
27
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
35*/
36class STPolLinear : public STPol
37{
38public:
39 STPolLinear() {}
40
41 explicit STPolLinear(const casacore::Matrix<casacore::Float>& specs)
42 { setSpectra(specs); }
43
44 ~STPolLinear();
45
46 static Factory<STPol,STPolLinear> myFactory;
47
48 virtual casacore::Vector<casacore::Float> getCircular( casacore::uInt index );
49
50 virtual casacore::Vector<casacore::Float> getStokes( casacore::uInt index);
51
52 virtual casacore::Vector<casacore::Float> getLinPol( casacore::uInt index);
53
54 virtual casacore::Vector<casacore::Float> getLinear( casacore::uInt index );
55
56 virtual void rotatePhase( casacore::Float phase );
57 virtual void rotateLinPolPhase( casacore::Float phase );
58
59 virtual void invertPhase( casacore::Float phase );
60
61};
62
63}
64
65#endif
Note: See TracBrowser for help on using the repository browser.