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

Issue 170 align spectrum along trace #235

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hpparvi
Copy link
Contributor

@hpparvi hpparvi commented Dec 10, 2024

This PR addresses Issue #170 by introducing a utility function specreduce.utils.align_2d_spectrum_along_trace to align a rectilinear 2D spectrum image along a trace. The function is based on the specreduce.extract._align_along_trace function and adds (optional) sub-pixel precision shifting using linear interpolation, mask handling, and uncertainty propagation (when using the 'interpolate' method). I can change the specreduce.extract code to use the new function after @cshanahan1's masking code (PR #216) has been merged.

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 10 lines in your changes missing coverage. Please review.

Project coverage is 83.30%. Comparing base (140e817) to head (476f865).

Files with missing lines Patch % Lines
specreduce/utils/utils.py 83.33% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #235      +/-   ##
==========================================
- Coverage   83.33%   83.30%   -0.03%     
==========================================
  Files          13       13              
  Lines        1140     1198      +58     
==========================================
+ Hits          950      998      +48     
- Misses        190      200      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hpparvi hpparvi linked an issue Dec 10, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rectify 2D spectrum
1 participant