Skip to content

Commit

Permalink
Cut down direct catalog to coarse pixel region.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Jun 4, 2024
1 parent 41c7896 commit bb2f029
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/lsst/the/monster/measure_uband_offsetmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ def measure_uband_offset_map_direct(self, overwrite=False):
if len(gaia_stars_all) == 0:
continue

# Cut down to those that are in the coarse pixel.
use, = np.where(hpg.angle_to_pixel(
self.nside_coarse,
gaia_stars_all["coord_ra"],
gaia_stars_all["coord_dec"]) == pixel)
if use.size == 0:
continue
gaia_stars_all = gaia_stars_all[use]

# Read in the comparison catalog.
uband_stars = read_stars(cat_info.path, htm_pixel_list, allow_missing=True)

Expand Down

0 comments on commit bb2f029

Please sign in to comment.