Remove instrumental polarisation from SCUBA pol data
For a fractional instrumental polarisation PI(e) at angle θ(e) and elevation e (the instrumental polarisation is elevation dependent) the correction to the measured flux at waveplate angle W is:
SActual=SMeasured−SMeanPI(e)(1+cos | (1) |
For SCUBA, we can not trivially measure the mean flux level (since each bolometer is jiggling to different areas on the sky) so this task uses an approximate form of the above equation to correct for instrumental polarisation that is valid for IPs of a few percent:
(2) |
where we have made the approximation that .
’
’
(‘i’
for short form). Variance is propagated correctly.
This task writes out the waveplate angles and rotation angles. The waveplate angle per integration is written to .MORE.REDS.WPLATE. The rotation angle (waveplate 0 to X pixel axis) is written to .MORE.REDS.ANGROT (angle per integration). The angle between nasmyth and the ra/dec frame (ie ANGROT - 90 degrees) is stored in .MORE.REDS.NASMYTH_ANG (angle per sample). These are written as NDFs and so can be displayed in the normal way. The angles are in degrees.
An array containing the fast axis angle is also written to the REDS extension (FAST_AXIS). The size of this array matches the number of sub-instruments in the file.