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

convert tile flag to cross-corr flags #327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nicholebarry
Copy link
Contributor

This one is bit complicated. This is in response to issue #311 .

The suggested fix in #311 could be more generalized. For example, the metadata file is actually structured such that the Y pol is before the X pol (why?!?!). Even though we currently flag XX, YY, XY, and YX the same currently doesn't mean we always will want that. Therefore, I've constructed a way that is generalized.

Essentially, the code grabs the individual dipole flags and matches their metadata name (i.e. X) to a component in the cross-correlation name (i.e. XY). Then a logical OR is performed to get the cross-correlation flag.

So, an X-dipole flag will end up flagging XX, XY, and YX. But not YY.

No difference in the 2-pol. Only difference is in 4-pol flagging.

This will need to be implemented in pyFHD (low-priority) -- I will make an issue and link it.

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.

1 participant