-
Notifications
You must be signed in to change notification settings - Fork 10
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
Predict example uses phase centre for beam calculation instead of pointing centre #227
Comments
Assuming that the pointing centre is present in the MSv2.0 FIELD subtable, which one of
do you think it would be? Currently the example assumes PHASE_DIR |
I hate to be the bearer of bad news, but none of the above... Strictly speaking, it's in the POINTING table. Which is a serious pain, because it isn't keyed by FIELD_ID. I also wouldn't bet my house or car on it being filled correctly. So we'd best be a little flexible. |
If we were to use POINTING.TARGET I'd imagine the RIME would require a phase term per antenna? |
seeing as POINTING is keyed on ANTENNA_ID, TIME and INTERVAL |
I'm sensing a return to per-antenna UVW decomposition is on the cards.... |
No no, the phase term is still given by PHASE_DIR, and the UVWs are as per the MS. This doesn't change. This has nothing to do with pointing. POINTING only determines the l,m coordinates you give to the E-jones (primary beam). |
Ah, OK, got it |
This wouldn't be terribly difficult to support. |
It is not a big problem of course. The vast majority is non-rephased tracking scans where the pointing is the same as the phase centre (thus the position corresponds to the maximum response of the interferometer and the antennas). But I did want to raise it so that at least an error can be raised if this assumption is broken. |
Yes, sorry I should have picked up the topic of conversation sooner. BTW have we figured out what the pointing coordinate system is? Is the POINTING table populated correctly in MeerKAT MS data? |
It's a direction measure, so the coordinate system is defined by the column keywords or whatnot. I never actually properly looked, because 99% of the time you point at PHASE_DIR anyway... exceptions being Mario's drift scans, and, as @bennahugo points out, rephased MSs. |
NB as it currently stands in katdal exported MS's, the POINTING subtable directions are filled with the phase direction. |
To answer @sjperkins question. Katdal does not write out non-tracking scans, so this table is never actually filled. Not sure about the code above, perhaps it is never called. I would say that if one were to write this out the most native coordinate system would be to encode the altitude over azimuth from the antenna tracking encoders, and whether the row is tracking (reached target) or not. However one can just as easily store the J2000 ra / dec coordinates as katdal seemingly aim to do. One will have to check the keywords for a more generic telescope solution |
cough as I was saying. :) Thanks @bennahugo! I would further bet that if you rephase the MS with chgcentre or CASA fixvis, nobody bothers to update the table with the "original" pointing direction. The information is simply lost... In light of this, I propose that sensible codex behaviour should be one of three options: (a) use PHASE_DIR (b) use POINTING table, and throw an exception if this is absent or unfilled (c) use an explicitly supplied pointing direction ...with (a) being the default? The sense of using (a) by default is that even if the pointing table is filled properly, 99.9% of the time it's just going to be the same direction as PHASE_DIR, just expressed in an az-el frame, because that's where the antenna is intending to point. However, converting these back to RA-Dec won't give you exactly the same values as PHASE_DIR due to roundoff etc., even though the intent is for the values to be the same. But for optimization purposes, it is important to know if all antennas are meant to point in the same direction (because then you only need to compute one E-Jones). |
https://github.com/ska-sa/codex-africanus/blob/master/africanus/rime/examples/predict.py#L499
This line of code uses the lm coordinates of the sources relative to the phase centre and not the pointing centre of
the telescope. An additional statement should be added that this assumes that the visibilities have not been rephased
to a centre off the pointing centre.
Same as in ratt-ru/QuartiCal#37
The text was updated successfully, but these errors were encountered: