Open keflavich opened 4 years ago
the better approach seems to be closer to:
composite_region = reduce(operator.or_, regs)
preg = composite_region.to_pixel(ww.celestial)
msk = preg.to_mask()
cutout_pixels = msk.cutout(data)[msk.data.astype('bool')]
for what I'm trying to do (in this case, get at the pixel values so I can take their standard deviation...)
I am sure this is a duplicate of something we already have done, but I can't find it.
How do we make a mask from a list of regions? A convenience function to replace this:
would be nice. Does it exist?