Hi Christophe,
I’m not a glue expert, but it looks like you should be able to do this by converting each subset to a Boolean mask. You would need to open the iPython terminal in glue:
Then run something like this (untested, might need some syntax tweaks):
import numpy as np
data = dc[0]
# start with an all-true mask of the right shape:
mask = np.ones(data.shape, dtype=‘bool’)
# loop through the subsets, at each step negating the mask to
# keep only those points not in the subset:
for s in data.subsets:
mask = np.logical_and(mask, ~ s.to_mask())
# apply to data:
clean_data = data[mask]
# then export as needed...