Hi Rob,
Thanks for the images. As expected, they work without any problem with the new Auto CFA pattern mode. Here is a copy of the process console:
Reading 1 image(s):
/Users/juan/Pictures/RD_14388.PEF
Timestamp: Sun Jun 25 23:04:55 2017
Camera: Pentax K-5
Owner: ROB DIPPLE
ISO speed: 400
Shutter: 29.9 sec
Aperture: f/2.4
Focal length: 35.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size: 4928 x 3264
Full size: 4992 x 3284
Image size: 4950 x 3284
Output size: 4950 x 3284
Raw colors: 3
Filter pattern: BG/GR
Daylight multipliers: 2.155461 0.926686 1.305787
Camera multipliers: 19552.000000 8192.000000 11392.000000 8192.000000
Invoking: dcraw -4 -o 0 -r 1 1 1 1 -D -t 0 -k 0 -H 1
Decoding Pentax K-5 file (14104672605014x3284 pixels, ISO=400, Exposure=29.93s): done
Loading raw image: done
Reading 1 image(s):
/Users/juan/Pictures/L_2016-11-28_20-27-27_0019_ISO800_300s__8C.CR2
Timestamp: Mon Nov 28 20:22:25 2016
Camera: Canon EOS 1000D
Owner: Rob Dipple
ISO speed: 800
Shutter: 300.0 sec
Aperture: f/inf
Focal length: 0.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size: 1936 x 1288
Full size: 3948 x 2622
Image size: 3906 x 2602
Output size: 3906 x 2602
Raw colors: 3
Filter pattern: RG/GB
Daylight multipliers: 2.362489 0.919100 1.182562
Camera multipliers: 2153.000000 1024.000000 1570.000000 1024.000000
Invoking: dcraw -4 -o 0 -r 1 1 1 1 -D -t 0 -k 0 -H 1
Decoding Canon EOS 1000D file (11175504908098x2602 pixels, ISO=800, Exposure=300.00s): done
Loading raw image: done
Debayer: Processing view: RD_14388
CFA pattern (detected): BGGR
VNG demosaicing: done
Noise evaluation: done
Gaussian noise estimates:
s0 = 1.908e-04, n0 = 0.3500 (MRS)
s1 = 1.906e-04, n1 = 0.4639 (MRS)
s2 = 2.128e-04, n2 = 0.5440 (MRS)
6.162 s
Debayer: Processing view: L_2016_11_28_20_27_27_0019_ISO800_300s__8C
CFA pattern (detected): RGGB
VNG demosaicing: done
Noise evaluation: done
Gaussian noise estimates:
s0 = 8.731e-05, n0 = 0.6198 (MRS)
s1 = 9.080e-05, n1 = 0.6353 (MRS)
s2 = 9.531e-05, n2 = 0.4945 (MRS)
2.783 s
Note in red color how the Debayer tool has detected the correct Bayer patterns automatically. The same works if I save the images as XISF files, then open them and apply Debayer.
Are you writing the images as FITS files? In such case, you're getting the expected behavior, since FITS cannot store the required image properties to support the new Auto CFA pattern mode.