Open thomasorb opened 6 years ago
My 2 cents : instead of returning the max along z axis after filtering of the background, detect_sources could return the max-median; this way, objects not having strong structure shining above their median emission (typically: stars) would disappear from the detection_frame.
The solution in action : (all the quantities have been taken along the z axis on a background subtracted cube limited to the bandpass of the filter)
Notice how sources appearing on the median image (== the deep frame, == mostly stars) disappear from the original detection frame
Detect_sources() shows stars and emission-line sources. It would be great to remove stars as much as possible.