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

All Reproject functions output NaN #252

Open
namanbajaj2501 opened this issue Jun 9, 2021 · 0 comments
Open

All Reproject functions output NaN #252

namanbajaj2501 opened this issue Jun 9, 2021 · 0 comments

Comments

@namanbajaj2501
Copy link

Hi,

I have been trying to use reproject to project PACS160, SPIRE250 and LABOCA images to SPIRE350. Reproject works fine for SPIRE250 to SPIRE350, but gives out NaNs for the rest. Additionally, It worked fine for me few weeks back, but now, with the same commands, it doesn't seem to. The commands are as follows.

from reproject import reproject_exact
hdu1 = fits.open('g326_350_cut.fits')
hdu2 = fits.open('g326_160_convolved.fits')
result1,result2 = reproject_exact((hdu2[0].data,hdu2[0].header),hdu1[0].header)
fits.writeto('g326_160_reproj.fits', result1, hdu1[0].header, overwrite=True)

The output fits file has NaNs and result2 contains zeros. I have also attached a pair of fits files. @astrofrog
dataset.zip

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

No branches or pull requests

1 participant