Power¶
- class baseband_tasks.functions.Power(ih, polarization=None)[source] [edit on github]¶
Bases:
baseband_tasks.base.TaskBase
Calculate powers and cross terms for two polarizations.
For polarizations X and Y, 4 terms are produced:
Term
Value
Expanded
Other name
XX
Re(X X*)
Re(X)**2 + Im(X)**2
AA
YY
Re(Y Y*)
Re(Y)**2 + Im(Y)**2
BB
XY
Re(X Y*)
Re(X)*Re(Y) + Im(X)*Im(Y)
CR
YX
Im(X Y*)
Im(X)*Re(Y) - Re(X)*Im(Y)
CI
- Parameters
- ihtask or
baseband
stream reader Input data stream.
- polarizationarray or (nested) list of char, optional
Output polarization labels. Should broadcast to the output sample shape, i.e., the labels are in the correct axis. For instance,
['LL', 'RR', 'LR', 'RL']
. By default, inferred from the underlying stream, using the scheme described above.
- ihtask or
- Raises
- AttributeError
If no polarization information is given.
- ValueError
If the underlying stream is not complex, the number of polarizations not equal to two, or the polarization labels not unique.
Methods Summary
task
(data)Calculate the polarization powers and cross terms for one frame.
Methods Documentation
- task(data)[source] [edit on github]¶
Calculate the polarization powers and cross terms for one frame.