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

Mosaic wcs #258

Open
MarianaRubet opened this issue Nov 20, 2021 · 1 comment
Open

Mosaic wcs #258

MarianaRubet opened this issue Nov 20, 2021 · 1 comment

Comments

@MarianaRubet
Copy link

Hello, I set up a mosaic using reproject_and_coadd, but the mosaic has no wcs configured. Is there any way to preserve the wcs of the original images in the mosaic? I need a mosaic with accurate wcs. Can reproject_and _coadd do this?

@meindertsma
Copy link

The wcs you use in reproject_and_coadd can be used in the fits file of the mosaic. If it is a wcs object, it has a to_header method, and if it is a header you can use astropy.io.fits.PrimaryHDU to convert it to a proper header to save with the array. You can also try uploading to nova.astrometry.net to get a wcs.

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

2 participants