ginga
ginga copied to clipboard
Catalogs emits misleading error for no WCS
When I start up Catalogs
plugin, I see this:
2016-09-26 12:58:07,778 | E | Catalogs.py:365 (redo) | Error calculating bounding box:
RA (1025.000000) > 360.0
This error message is misleading. The fact is that this particular image has no WCS. Even the main display reports "NO WCS", but somehow Catalogs
failed to pick up on this.
@pllim, any chance of getting a copy of that FITS file for testing?
@ejeschke , any image with no WCS info would do. For example, you can create your own like this:
import numpy as np
from astropy.io import fits
hdu = fits.PrimaryHDU(np.random.random((100, 100)))
hdu.writeto('my_random_image.fits')
This one gives this error:
2016-09-27 16:46:59,512 | E | Catalogs.py:365 (redo) | Error calculating bounding box:
DEC (100.000000) > 90.0