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

Disambiguate between “polarization angle” and “orientation” #305

Merged
merged 6 commits into from
Mar 15, 2024

Conversation

ziotom78
Copy link
Member

@ziotom78 ziotom78 commented Mar 8, 2024

So far we have assumed that the “orientation” of a detector, as encoded by its ψ angle, was the same as the polarization angle. Unfortunately, this is not true in presence of an HWP, as the polarization angle is affected by the HWP but not the orientation.

This PR fixes the terminology over all the code and introduces the following naming changes in a few functions, which are however used internally and should not affect any existing code. However, it is better to mark the changes in this PR as breaking, as the functions are exported in the global litebird_sim namespace.

@ziotom78
Copy link
Member Author

ziotom78 commented Mar 8, 2024

The breaking name changes are the following:

  • compute_pointing_and_polanglecompute_pointing_and_orientation (private function);
  • all_compute_pointing_and_polangleall_compute_pointing_and_orientation (private function);
  • polarization_angleorientation_angle (private function); the argument poldir has been renamed to ordir too.

@ziotom78 ziotom78 requested a review from paganol March 8, 2024 10:19
@paganol
Copy link
Member

paganol commented Mar 8, 2024

Hi @ziotom78, I like this change. Anyway I think we might want to add in this PR also the reworking of the effect of the HWP. Now if we pass an HWP object to get_pointings the returned angle is orientation+2ωt. We should remove this possibility and pass the HWP to scan_map together with the orientation.

@ziotom78
Copy link
Member Author

ziotom78 commented Mar 8, 2024

Hi @ziotom78, I like this change. Anyway I think we might want to add in this PR also the reworking of the effect of the HWP. Now if we pass an HWP object to get_pointings the returned angle is orientation+2ωt. We should remove this possibility and pass the HWP to scan_map together with the orientation.

I was planning to do this in a separate PR because I would like to include this PR in the incoming 0.11 release. Do you think it's better to include the reworking of the HWP object in version 0.11?

@paganol
Copy link
Member

paganol commented Mar 8, 2024

I was planning to do this in a separate PR because I would like to include this PR in the incoming 0.11 release. Do you think it's better to include the reworking of the HWP object in version 0.11?

I was thinking to include the reworking of the HWP in this version and then the "on the fly" pointing computation in a future PR. But I don't have a strong opinion.. for sure we need to make clear that if you include the HWP in get_pointings the meaning of psi changes.

ggalloni added a commit that referenced this pull request Mar 14, 2024
Implementation of data splits is complete.

@ziotom78 if you want you can proceed with #305
@ziotom78
Copy link
Member Author

After a discussion with @paganol I'm going to merge this. It's just a small step towards a more extensive improvement in the way pointings and the HWP angle are handled by the framework.

@ziotom78 ziotom78 merged commit 91d96e9 into master Mar 15, 2024
9 checks passed
@ziotom78 ziotom78 deleted the polarization_angle branch March 15, 2024 11:34
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.

2 participants