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

DM-9111 Add rotator information to HSC VisitInfo #65

Merged
merged 1 commit into from Mar 20, 2017

Conversation

jmeyers314
Copy link
Contributor

No description provided.

Copy link
Contributor

@r-owen r-owen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, but one minor update required

# Rotation angle formula determined empirically from visual inspection
# of HSC images. See DM-9111.
rotAngle = 270.0*degrees - self.popAngle(md, "INST-PA")
rotAngle.wrap()
Copy link
Contributor

@r-owen r-owen Mar 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of a few days ago Angle.wrap returns a new Angle rather than operating in place, so this code requires a minor change. The following should work, or you can break it into two lines if you prefer:
rotAngle = (270.0*degrees - self.popAngle(md, "INST-PA")).wrap()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, great! I had actually originally tried to use .wrap() as you suggest, but I guess this was before the update since it failed at the time. Change implemented.

Uses the formula
boresightRotAngle = 270 - INST-PA
where INST-PA is the position angle from the HSC file header.
Also sets rotType to rotType.SKY.
@jmeyers314 jmeyers314 merged commit 9330685 into master Mar 20, 2017
@ktlim ktlim deleted the tickets/DM-9111 branch August 25, 2018 06:45
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.

None yet

2 participants