Skip to content

Adding subscan HWPSS subtraction function to sotodlib.hwp.hwp #1102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

samdayweiss
Copy link

This PR adds a function in hwp.py to complete HWPSS subtraction by subscan, accounting for amplitude and phase variation within each scan and not relying on mean subtraction post-demodulation. It has also been found that glitch detection after HWPSS subtraction is more effective for identifying glitches, and this function introduces an iterative glitch detection approach, which also reduces bias in the HWPSS fit by improving the glitch mask.

Copy link
Contributor

@ykyohei ykyohei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General comments.

  • I think this function should be merged to get_hwpss with iteration option and subscan option, but maybe I should ask other reviewer's opinions.
  • logger.info seems not necessary, please make them inline comments
  • Please run linter such as flake8 and make corrections
  • We also need to correction in docstring. this can be done in the next iteration.

Copy link
Contributor

@ykyohei ykyohei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hwpss_model in this method has an inherent discontinuity in the boundaries of the subscans. This leads to 0.1 aW level of ringing at the boundaries of subscans. This is below single detector white noise level 25-40 aW rt(s) but it can matter when we coadd data. We need to smooth the model to avoid masking the turnarounds too much.

Figure 25 (4)
Figure 25 (5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants