dstndstn / astrometry.net

Astrometry.net -- automatic recognition of astronomical images
http://astrometry.net
Other
679 stars 189 forks source link

removelines.py: 0 * NaN if 1 star in a row #165

Closed dstndstn closed 2 years ago

dstndstn commented 5 years ago

/usr/local/astrometry/lib/python/astrometry/util/removelines.py:25: RuntimeWarning: divide by zero encountered in log logpoisson = knp.log(mean) - mean - np.array([sum(np.arange(kk)) for kk in k]) /usr/local/astrometry/lib/python/astrometry/util/removelines.py:25: RuntimeWarning: invalid value encountered in multiply logpoisson = knp.log(mean) - mean - np.array([sum(np.arange(kk)) for kk in k]) /usr/local/astrometry/lib/python/astrometry/util/removelines.py:26: RuntimeWarning: invalid value encountered in less badbins = occupied[logpoisson < logcut]

mdhoney commented 5 years ago

I am seeing this as well, using a FITS catalogue generated by text2fits. Do you have idea what may be causing it? All of my x/y/flux values are > 0.

dstndstn commented 2 years ago

finally fixed in 08f63b78]