ginga icon indicating copy to clipboard operation
ginga copied to clipboard

Catalogs emits misleading error for no WCS

Open pllim opened this issue 8 years ago • 2 comments

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 avatar Sep 26 '16 17:09 pllim

@pllim, any chance of getting a copy of that FITS file for testing?

ejeschke avatar Sep 27 '16 20:09 ejeschke

@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

pllim avatar Sep 27 '16 20:09 pllim