Open pllim opened 2 years ago
@astrofrog said to fix this properly, the fix should be here:
Maybe translating ROI of the Subset, if not w.r.t. reference data, to polygon ROI. He needs to think about it.
Currently, it always returns the Subset w.r.t. reference data even if you pass in a Subset w.r.t. non-reference data.
Note to self: If this remains unfixed and we get desperate, we ferret out the masks at the Glue level and use that for photometry. But in doing that, we lose the ability to have sub-pixel sampling.
imviz.app.data_collection[i].subset[j].to_mask()
imviz.app.data_collection[i+1].subset[j].to_mask()
I ended up just working around this for that one plugin. See https://github.com/spacetelescope/jdaviz/pull/1524
I saw this at Imviz (from
jdaviz
) but I think the bug is within theregions
translator, but I am not familiar enough with this package to fix it.I expected the
center
for subset region derived fromacs_47tuc_1[SCI,1]
to be a little different fromacs_47tuc_2[SCI,1]
but they are exactly the same. One of them is wrong.On the Imviz display, I see the Subset properly displayed at the correct sky location when I blink them.
🐱