Browse Source

Use canonical order for the polarization products

While the MeasurementSet allows for polarization products to be
ordered arbitrarily, CASA expects them on canonical order (RR, RL,
LR, LL for circular polarizations, XX, XY, YX, YY for linear).
There is a good reason for this as it allows using standard matrix
multiplication rules.
pull/3/head
Mark Kettenis 5 months ago
parent
commit
85e0248b8b
  1. 6
      jive/labels/CorrelationCode.cc

6
jive/labels/CorrelationCode.cc

@ -109,13 +109,13 @@ ostream& operator<<(ostream& os, const CorrelationCode& c ) {
bool operator<(const CorrelationCode& l, const CorrelationCode& r ) {
static const CorrelationCode __order[] = {
CorrelationCode( j2ms::r, j2ms::r ),
CorrelationCode( j2ms::l, j2ms::l ),
CorrelationCode( j2ms::r, j2ms::l ),
CorrelationCode( j2ms::l, j2ms::r ),
CorrelationCode( j2ms::l, j2ms::l ),
CorrelationCode( j2ms::x, j2ms::x ),
CorrelationCode( j2ms::y, j2ms::y ),
CorrelationCode( j2ms::x, j2ms::y ),
CorrelationCode( j2ms::y, j2ms::x )
CorrelationCode( j2ms::y, j2ms::x ),
CorrelationCode( j2ms::y, j2ms::y )
};
static const unsigned int __N_combi( sizeof(__order)/sizeof(__order[0]) );

Loading…
Cancel
Save