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

distinction between galaxy position angle and beta #611

Open
jchiang87 opened this issue Dec 5, 2022 · 4 comments
Open

distinction between galaxy position angle and beta #611

jchiang87 opened this issue Dec 5, 2022 · 4 comments

Comments

@jchiang87
Copy link
Contributor

I wanted to note a possible inconsistency regarding the galaxy ellipticity components and galaxy position angles described in the current schema.

@rmjarvis describes in slack a distinction between beta and galaxy position angle:

beta is the angle of the galaxy major axis CCW from the +x axis.  In sky coordinates this means it is the angle
North of West.  (West being +x direction and North from there being CCW.)
I believe PA is traditionally defined as the angle East of North.  So with these definitions, beta = PA + 90.

I think this means that the ellipticity_1 computed here should instead be

return ellipticity*np.cos(2.0*pos_angle + np.pi)

and similarly for ellipticity_2, etc..

@rmjarvis
Copy link

rmjarvis commented Dec 5, 2022

Except the schema you linked to defines position_angle as "Position angle (arctan(E2/E1)), for galaxy, lensed", which is not the same as the traditional astronomy definition of position angle. So this might not be a bug.

@jchiang87
Copy link
Contributor Author

Right, which is why I wondered if we needed the 90 degree shift to begin with. So if it's not a bug here, then we don't need that 90 degree shift in skyCatalogs and imSim? Regardless, it was applied in the DC2 sims.

@jchiang87
Copy link
Contributor Author

A related issue is that arctan(E2/E1) doesn't necessarily get the right quadrant for the angle, so it's not clear to me that it's a useful definition since it has the same value for E1-> -E1, E2-> -E2, which has the same effect as adding that 90 degrees.

@rmjarvis
Copy link

rmjarvis commented Dec 5, 2022

My point was just that I don't know if the pos_angle that is being applied here is the same one we have in imsim. If it is the same PA, then I think both (1) the schema here has the wrong definition of position_angle and (2) the code to calculate e1,e2 from it is wrong.

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

No branches or pull requests

2 participants