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-44352: Add subtask to build camera from astrometric model #69

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

cmsaunders
Copy link
Collaborator

No description provided.

@cmsaunders cmsaunders marked this pull request as ready for review September 5, 2024 01:35
@cmsaunders cmsaunders changed the title DM-44352: WIP with new camera builder DM-44352: Add subtask to build camera from astrometric model Sep 5, 2024
for k, params in mapParams.items():
if re.fullmatch(visitTemplate, k):
visitParams.append(params)
identityVisitParams = np.array([0, 1, 0, 0, 0, 1])
Copy link

Choose a reason for hiding this comment

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

For my personal understanding why this is like this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is an array of coefficients that correspond to the c terms in x' = c_{0} + c_{1} x + c_{2} y and y' = c_{3} + c_{4} x + c_{5} y, meaning that this transform will give x' = x and y' = y.
In gbdes, in order to break degeneracies, one of the visits gets picked to have an Identity map for the per-visit, so I have to add that in here, along with the map parameters that are actually fit.

Copy link

@PFLeget PFLeget left a comment

Choose a reason for hiding this comment

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

It looks good to me. I have the feeling in build_camera.py, writing minimization with JAX, it can make the code shorter, but this is details. As long as this is doing the job, it is good to me.

@cmsaunders cmsaunders force-pushed the tickets/DM-44352 branch 2 times, most recently from 88445bc to 7a91bfa Compare September 13, 2024 19:07
@cmsaunders cmsaunders merged commit e7d87ff into main Sep 13, 2024
3 checks passed
@cmsaunders cmsaunders deleted the tickets/DM-44352 branch September 13, 2024 19:17
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