Implement a new mapmaking template for periodic signals #690
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a new template that regresses components of detector data that are correlated with a shared data field whose values are periodic (HWP angle, Azimuth, etc). The values of the periodic field are binned and a
different set of template amplitudes are solved for each detector and each observation. Additional changes:
Unit test for fake HWPSS removal in satellite and ground simulations.
Unit test helper for healpix map plotting, similar to the helper function for WCS plotting.
Added functions to the Offset template to support writing and plotting solved amplitudes.
Small improvement to noise model fitting.
Run format_source.sh
Below are some plots from the unit tests, showing the removal of fake HWPSS in the template-cleaned timestream prior to final binning.
satellite_hwp-compare_test_000005_2023-02-23T00:50+00:00_1677113400_D0A-150_500.pdf
satellite_hwp-compare_test_000005_2023-02-23T00:50+00:00_1677113400_D0A-150_6000.pdf