cds-astro / cds-healpix-python

cdshealpix python package
https://cds-astro.github.io/cds-healpix-python/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

From polygon crash #10

Closed bmatthieu3 closed 4 years ago

bmatthieu3 commented 4 years ago

This is related to cds-astro/mocpy#50

import cdshealpix
from astropy.coordinates import SkyCoord
import astropy.units as u

coords = SkyCoord([(353.8156714, -56.33202193), (6.1843286, -56.33202193), (5.27558041, -49.49378172), (354.72441959, -49.49378172)], unit=u.deg)
cdshealpix.polygon_search(coords.ra, coords.dec, 12)

@fxpineau

bmatthieu3 commented 4 years ago

https://github.com/cds-astro/cds-healpix-rust/commit/4bafaa1698f9c09fc3484131ed160dff198d396d fixed the problem, I close this