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

Polarization errors modeling sources #164

Open
rlbyrne opened this issue Jul 9, 2019 · 21 comments
Open

Polarization errors modeling sources #164

rlbyrne opened this issue Jul 9, 2019 · 21 comments
Labels
bug An error major A major/large bug fix or upgrade option

Comments

@rlbyrne
Copy link
Contributor

rlbyrne commented Jul 9, 2019

Imaging errors occur in Stokes V (and possibly other polarizations) for models of Stokes I and polarized sources. These errors are not visible when all baselines are imaged but become clear when only short baselines are imaged.

Here is an example of the Stokes V model image created only with baselines shorter than 50 meters. The bright source is Fornax A, but the dipole structure seen here appears for other bright sources as well. All sources in this model are unpolarized.
1130773144_uniform_Model_V

The calibrated data does not show this Stokes V structure. Here is the dirty Stokes V image made with baselines shorter than 50 meters:
1130773144_uniform_Dirty_V

@rlbyrne rlbyrne added the bug An error label Jul 9, 2019
@miguelfmorales
Copy link
Contributor

Do you have the xy real and imaginary images?

I'm wondering if somehow the x vs y absolute (global) phase offset that is fit on the data to minimize V is not getting applied to the model visibilities, and might create this behavior?

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Jul 10, 2019

Here's the real XY model image:
1130773144_uniform_Model_XY_real
and the imaginary:
1130773144_uniform_Model_XY_imaginary

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Jul 10, 2019

For reference, here is the real XY dirty:
1130773144_uniform_Dirty_XY_real
and imaginary:
1130773144_uniform_Dirty_XY_imaginary

@bhazelton
Copy link
Member

@miguelfmorales I don't think we should be applying calibration solutions to models.

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Jul 19, 2019

The changes in PR #166 seem to resolve the imaging artifact in Stokes V. Here are the polarized models created from that branch:
Stokes I:
1130773144_uniform_Model_I
Stokes Q:
1130773144_uniform_Model_Q
Stokes U:
1130773144_uniform_Model_U
Stokes V:
1130773144_uniform_Model_V

The model used in this test is completely unpolarized. Do we expect to be seeing this much model power in Q and U?

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Jul 22, 2019

The brightest source in the images I posted is Fornax and is therefore modeled as an extended source. We were wondering if the power seen in Q and U is from the source being extended (could nearby component sidelobes add coherently to produce false power in Q and U?). I reran this simulation with just one point source with Fornax's position and flux. Here're the results:
Stokes I:
1130773144_uniform_Model_I (1)
Stokes Q:
1130773144_uniform_Model_Q
Stokes U:
1130773144_uniform_Model_U
Stokes V:
1130773144_uniform_Model_V

The colorbar has changed since the last simulation so it's hard to tell how much better Q and U are doing here. There's definitely a feature in linear pol at the source location. Would we expect the source to be completely reconstructed in Stokes I? Could we be getting intrinsic errors in the other Stokes modes just because of the finite size of the degridding kernel?

@bhazelton
Copy link
Member

Looking at the ratios of the colorbars, I think the Q&U are much lower relative to I than they were for Fornax. I'm not sure whether the residual flux in Q&U are a concern or not.

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Jul 24, 2019

The power at the source in Stokes Q is at ~1% of I. The hole in Stokes U is a fraction of a percent of I.

@JLBLine
Copy link

JLBLine commented Jul 25, 2019 via email

@bhazelton
Copy link
Member

That's very interesting @JLBLine! Can you try adding the image to the thread again? It didn't come through.

@bhazelton
Copy link
Member

@rlbyrne Can you get the same fractional power numbers for your Fornax model?

@JLBLine
Copy link

JLBLine commented Jul 25, 2019 via email

@bhazelton
Copy link
Member

No it still didn't. Did you do it on GitHub or through email?

@JLBLine
Copy link

JLBLine commented Jul 25, 2019

Ah through email, I'll try github now...

comparison_all_baselines

@bhazelton
Copy link
Member

bhazelton commented Jul 25, 2019

Thanks! That's very interesting

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Jul 25, 2019

Thank you, @JLBLine! This is super interesting. The fact that it agrees so well with our Fornax-as-a-point-source simulation suggests that this might be a "real" systematic (instead of just an FHD implementation bug). We're worried that our extended Fornax model simulation doesn't look the same (e.g. Fornax is positive in U). I'm running some tests to hunt this down.

In the meantime we merged PR #166 because it definitely resolved a couple bugs, but let's keep this issue open until we figure out why we're modeling Stokes I power in Q and U.

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Jul 26, 2019

We're worried that our extended Fornax model simulation doesn't look the same (e.g. Fornax is positive in U).

Ignore this part. I was simulating the wrong model here (I was modeling Fornax with polarized components).

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Jul 28, 2019

I tried to do two tests to figure out why both my and Jack's unpolarized Fornax simulation has power in Q and U.

First, I tried switching the X and Y beams in FHD. Here's the result:
Stokes I:
1130773144_uniform_Model_I
Stokes Q:
1130773144_uniform_Model_Q
Stokes U:
1130773144_uniform_Model_U
Stokes V:
1130773144_uniform_Model_V

With the correct beams we were seeing positive power at the source location in Q and negative in U. Now we see the reverse: a hole in Q and positive power in U. I think this indicates that the power reconstructed in Q and U comes from asymmetries between the X and Y beams.

I also tried and failed to set the Y beam equal to X beam (my output images were very weird). If I get that test working it'll help confirm this.

@isullivan
Copy link
Contributor

Could you change the color stretch to +/- 2? The current Stokes Q and U images are very faint.

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Jul 29, 2019

I replotted just the area around the source with colorbar limits of +/- 2. Here's what I got for the regular run:
normal_beam_Q
normal_beam_U
And the flipped beam run:
flipped_beam_Q
flipped_beam_U

@rlbyrne
Copy link
Contributor Author

rlbyrne commented Feb 18, 2020

This is related to #40

@nicholebarry nicholebarry added the major A major/large bug fix or upgrade option label Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error major A major/large bug fix or upgrade option
Projects
None yet
Development

No branches or pull requests

6 participants