Skip to content
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

Mask gain interpolation region after bad calibration #221

Merged
merged 3 commits into from
Mar 2, 2023

Conversation

ljgray
Copy link
Contributor

@ljgray ljgray commented Jan 26, 2023

Gains are set to 1 when calibration determines some frequencies are bad. The gain interpolation region will also produce junk data, so this is designed to mask that.

This PR has 3 commits:

  1. A couple of documentation and naming updates (maybe shouldn't be in this PR)
  2. A task to mask any weight above or below flat thresholds, mostly for avoiding numerical issues
  3. A task to mask the gain boundary regions

This task is run for each individual timestream file then masks are combined and applied. It also requires subsequently using ExpandMask from ch_pipeline to actually mask the gain interpolation region AFTER individual timestreams have been grouped into a full day.

@ljgray ljgray changed the title Mask interpolation region when calibrator sets gains to 1 Mask gain interpolation region after bad calibration Jan 26, 2023
@ljgray ljgray requested review from jrs65 and ssiegelx January 26, 2023 00:59
@ljgray ljgray force-pushed the ljg/flag_gain_boundaries branch 3 times, most recently from cce56f9 to a7403f0 Compare January 27, 2023 21:46
@ljgray ljgray requested a review from sjforeman January 31, 2023 19:33
@ljgray ljgray force-pushed the ljg/flag_gain_boundaries branch 2 times, most recently from 407dc7d to f6f2983 Compare February 22, 2023 22:50
draco/analysis/flagging.py Outdated Show resolved Hide resolved
draco/analysis/flagging.py Outdated Show resolved Hide resolved
draco/analysis/flagging.py Outdated Show resolved Hide resolved
draco/analysis/flagging.py Outdated Show resolved Hide resolved
draco/analysis/flagging.py Show resolved Hide resolved
draco/analysis/flagging.py Outdated Show resolved Hide resolved
draco/analysis/flagging.py Outdated Show resolved Hide resolved
draco/analysis/flagging.py Show resolved Hide resolved
draco/analysis/flagging.py Outdated Show resolved Hide resolved
draco/analysis/flagging.py Outdated Show resolved Hide resolved
draco/analysis/flagging.py Outdated Show resolved Hide resolved
Modify some outdated docs to properly reflect on class functionality.
Also, modify the names of three classes to better reflect their use.
Original names are alised for compatibility.
Generally just to remove extremely large or small weights which may
cause numerical issues.
@ljgray ljgray requested a review from jrs65 March 2, 2023 01:15
@ljgray ljgray merged commit 7c10c0c into master Mar 2, 2023
@ljgray ljgray deleted the ljg/flag_gain_boundaries branch March 2, 2023 01:22
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.

3 participants