Re: Extracting green channel from FITS
Posted by
Bill Tschumy on
Feb 17, 2022; 4:36pm
URL: http://astroimagej.170.s1.nabble.com/Extracting-green-channel-from-FITS-tp1750p1764.html
John,
Thanks for you detailed reply.
I'm a bit leery of doing what you suggest since it is not totally clear how the data will be effected.
The other apps I use to do this take a 3 color FITS file (RGGB), extract just the green channel, and write it back to another FITS file with the same basic header (except it indicates it is now one channel). They also halve the dimensions (effectively binning the result).
What you suggest for AIJ sounds like it is converting into an RGB image and then separates the channels. That sounds problematic to me.
Your python script sounds like what my current tools do. I have found this script which may be the same one you mention.
https://github.com/matafokka/ImageJ-Split-Bayer-Filter-Into-ChannelsI haven't tried the script yet, but it might be what I need. If it isn't, I will stick with my current tools. I'm just trying to consolidate things if possible.