ccdproc
ccdproc.
median_filter
See scipy.ndimage.median_filter for arguments.
scipy.ndimage.median_filter
If the data is a CCDData object the result will be another CCDData object with the median filtered data as data and copied unit and meta.
data
CCDData
unit
meta