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

fix healpix order corresponding to 1 pixel on the image calculation in from_fits_image #168

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

bmatthieu3
Copy link
Collaborator

This is a fix to determine correctly the deepest healpix order containing at least one pixel of the image.

I updated the from_image_from_fits notebook to add a call to a new file that was not working before (pixel order computed was too shallow).

I link the issue #167 which is more about an api question.

notebooks/from_image_with_mask.ipynb Outdated Show resolved Hide resolved
python/mocpy/moc/moc.py Outdated Show resolved Hide resolved
@bmatthieu3 bmatthieu3 force-pushed the fix-from-fits-image-mask branch from d6cf645 to d6c6557 Compare September 5, 2024 13:57
@bmatthieu3
Copy link
Collaborator Author

I made the test pass and from_fits_image also return a moc at the "good" pixel order for file: coadd_2exps_LANCZSOS3_noBkgSub_AL_block100.fits.gz

@ManonMarchand ManonMarchand force-pushed the fix-from-fits-image-mask branch from d6c6557 to bce8e5a Compare September 9, 2024 16:21
@ManonMarchand
Copy link
Member

I was reviewing the PR and ended up doing the feature from #110
@tboch : can you try setting "detect_hdu" to True for your files?

@ManonMarchand ManonMarchand linked an issue Sep 9, 2024 that may be closed by this pull request
@ManonMarchand ManonMarchand force-pushed the fix-from-fits-image-mask branch 2 times, most recently from 3790292 to 19765a7 Compare September 10, 2024 15:09
@ManonMarchand ManonMarchand force-pushed the fix-from-fits-image-mask branch from 19765a7 to 8851681 Compare September 11, 2024 11:46
@ManonMarchand
Copy link
Member

(just rebased on master, there was a conflict in the changelog)

@ManonMarchand ManonMarchand merged commit b253f10 into master Sep 11, 2024
14 checks passed
@ManonMarchand ManonMarchand deleted the fix-from-fits-image-mask branch September 11, 2024 14:29
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.

Improve from_fits_images when working with MEF
2 participants