Verify a raw FITS mosaic before stacking
A raw color frame usually has one recorded value per pixel. The BAYERPAT header card tells compatible software how the sensor's red, green and blue filters were arranged when those values were recorded.
Replace a placeholder with the known pattern
Input
BAYERPAT= 'UNKNOWN 'Output
BAYERPAT= 'RGGB 'If your capture software stored UNKNOWN but a reference frame from the same setup shows RGGB, you can write that value to each frame before opening the batch in a compatible application.
Check the result
- Confirm the pattern against a raw frame from the same camera with identical acquisition settings.
- Open a corrected copy with the image application's usual mosaic detection and compare it to a known frame.
- Download the images from the ZIP before importing a batch.
Common problems
Sensor pattern and stored coordinates
Row order, offsets and the crop origin still affect which color is at a given pixel. This editor changes BAYERPAT and preserves ROWORDER, offsets and image coordinates.
A new header checksum
FITS CHECKSUM covers the header and data. Changing a card invalidates the old checksum, so the editor removes the primary HDU CHECKSUM card when it edits the header. Its DATASUM can stay because it covers the data alone.
Keep the original raw data
Save a copy of the original set. The edited frames still contain raw pixels. Use a compatible application for demosaicing and compare test frames before stacking.
Using FITS Mosaic Patch
Choose original frames
Add uncompressed two-dimensional raw FITS images from the same setup.
Set the recorded pattern
Choose the Bayer order or enter the 36 X-Trans letters in recorded row order. Match a reference frame from the same camera and capture settings.
Open a corrected frame
Download the edited files and open one in your stacking application. Verify the color filter arrangement before continuing with the batch.
Offline use
Open the tool once online and let it finish loading. Use the install option in your browser or Add to Home Screen on iPhone. Reopen the tool to process a new input offline.