Have you tried this: pypi.org/project/colour-demosaicing/ I used it a while ago when I experimented with processing FITS files with Python scripts. CS GuidoRead More...