litebird / litebird_sim

Simulation tools for LiteBIRD
GNU General Public License v3.0
18 stars 13 forks source link

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

Closed ziotom78 closed 4 months ago

ziotom78 commented 5 months ago

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 commented 5 months ago

The breaking name changes are the following:

paganol commented 5 months ago

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 commented 4 months ago

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 commented 4 months ago

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.

ziotom78 commented 4 months ago

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.