Skip to content

Commit 66be5c1

Browse files
committed
[fix] make sure sources smaller than the pix are masked
1 parent 9d46d34 commit 66be5c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

maps/src/maputils.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,9 @@ MakePointSourceMask(const G3SkyMap &map, const std::vector<double> & ra,
564564

565565
for (size_t i = 0; i < ra.size(); i++) {
566566
auto pixels = map.QueryDisc(ra[i], dec[i], radius[i]);
567+
uint64_t _ipix = map.AngleToPixel(ra[i], dec[i]);
568+
if (_ipix < (size_t)-1)
569+
pixels.emplace_back(_ipix);
567570
for (auto p: pixels)
568571
(*mask)[p] = true;
569572
}

0 commit comments

Comments
 (0)