Fujifilm Pattern with rawpy

Hello,

I am trying to extract channel by channel pixel values of a X-Pro2. For detector calibration purpose (educational).
I do not understand the color pattern returned by the library (or is it rawpy ?).

   >>> rawpy.libraw_version
  (0, 18, 2)
   >>> im = rawpy.imread("20170728-DSCF3470.RAF")
   >>> im.raw_pattern
   array([[1, 2, 1, 2, 1, 2],
       [0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0]], dtype=uint8)

Same thing with im.raw_colors.
However looking at a grey scale raw_image it is obvious that the (non-bayer) pattern is not has indicated.
Maybe it is a feature of rawpy and not libraw ?
Any clues?

S.

Forums: 

Looks like rawpy

Looks like rawpy incompleteness.

For X-Trans sensors (imgdata.idata.filters == 9), color pattern is contained in
imgdata.idata.xtrans (6x6 array, indexed by row%6,col%6, row and col are relative to visible area)
and in
imgdata.idata.xtrans_abs (same as above, but row/col are relative to full sensor)

-- Alex Tutubalin