reproject icon indicating copy to clipboard operation
reproject copied to clipboard

Mosaic wcs

Open MarianaRubet opened this issue 3 years ago • 1 comments

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?

MarianaRubet avatar Nov 20 '21 12:11 MarianaRubet

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.

meindertsma avatar Jun 10 '22 19:06 meindertsma