Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeRZP committed Oct 1, 2024
1 parent bfed439 commit 67a918f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions heracles/catalog/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def __call__(self, page):
from healpy import ang2pix

lon, lat = self._lonlat
good_entry = np.isfiniten(lon) & np.isfinite(lat)
lon, lat = lon[good_entry], lat[good_entry]
ipix = ang2pix(self._nside, page[lon], page[lat], lonlat=True)
exclude = np.where(self._footprint[ipix] == 0)[0]
page.delete(exclude)

0 comments on commit 67a918f

Please sign in to comment.