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.
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