Add redundant claibration option using visibility covariances#140
Open
Add redundant claibration option using visibility covariances#140
Conversation
Contributor
|
How often does the covariance matrix need to be calculated? Can we calculate one per frequency per instrument and read it in every time we want to calibrate that instrument? |
Contributor
Author
|
In principle the covariance matrix depends on many details of the observation and should be different every time, just like the holographic mapping function: it will depend on the beam model (including the pointing) and the flagging. However, as long as we aren't changing the beam model over time we could probably construct a covariance matrix for each pointing, which could then be loaded and modified to accommodate the flagging. |
dc84b25 to
fc70cfb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The redundant calibration correction should only have an effect if
use_redundant_calibration=1is set.If set, it calculates the full covariance matrix between visibilities of the same frequency, and uses that to solve for a correction to the model visibilities given the input data and calculated gains.
The correction is calculated iteratively with the gains.
The covariance matrix is very slow to calculate, even using multiple optimizations. On my machine, regular calibration takes ~20 minutes, but including redundant calibration it takes ~2 days.