Skip to content

Conversation

@t-brandt
Copy link
Contributor

@t-brandt t-brandt commented Jan 7, 2026

This PR implements sparse WCS evaluation and interpolation in lieu of spacetelescope/stcal#367 given the use of drizzle utilities in spacetelescope/stcal#485

It supports bilinear and bicubic interpolation. Given the NIRCam distortion correction in https://github.com/spacetelescope/jwst-pipeline-notebooks/blob/main/notebooks/NIRCAM/Imaging/JWPipeNB-nircam-imaging.ipynb bicubic interpolation with a stepsize of 10 pixels gives drizzled images identical almost to 32-bit floating point precision.

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

❌ Patch coverage is 27.77778% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.88%. Comparing base (ddfb33b) to head (5059f29).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
drizzle/utils.py 27.77% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #215      +/-   ##
==========================================
- Coverage   97.22%   93.88%   -3.35%     
==========================================
  Files           2        2              
  Lines         361      376      +15     
==========================================
+ Hits          351      353       +2     
- Misses         10       23      +13     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@t-brandt
Copy link
Contributor Author

t-brandt commented Jan 9, 2026

Withdrawing in lieu of spacetelescope/stcal#488
The calc_pixmap in that function is now a copy of the calc_pixmap in drizzle with the option to interpolate added, with the goal of enabling a future consolidation of the two routines.

@t-brandt t-brandt closed this Jan 9, 2026
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.

1 participant