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

Simplified arc line centroiding. #33

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Simplified arc line centroiding. #33

merged 1 commit into from
Nov 19, 2024

Conversation

cmccully
Copy link
Contributor

I've simplified the peak refinement algorithm. Rather than trying to fit all lines simultaneously, we only fit one line at a time and only the data near the original peak. This has fixed some catastrophic failures that cause later stages to crash because the wavelength solution is no longer monotonic.

Copy link
Contributor

@jchate6 jchate6 left a comment

Choose a reason for hiding this comment

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

I guess my question is if this is the right way to do things.
Isn't fitting them all the more robust method? Should this be a fallback option to find a solution in case a single solution doesn't work?

@cmccully
Copy link
Contributor Author

This is only breaking apart the line centroiding part to work line by line. Our line atlases are not complete (and may not be possible to complete) so we don't have good enough atomic data to centroid all blends. There are cases where the fitters can get into a part of parameter space where they centroid the wrong feature entirely which was happening here.

For the final wavelength solution we still fit the wavelength polynomial to all the lines simultaneously.

This is a case of when the "proper" thing to do makes the actual reduction process more brittle.

Copy link

@sfoale sfoale left a comment

Choose a reason for hiding this comment

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

lgtm

@cmccully cmccully merged commit 3392425 into main Nov 19, 2024
6 checks passed
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.

3 participants