I'm pretty sure this isn't a Libraw problem, but a problem with my code! I use unpack() to extract the raw image data and then convert the data into my application's internal image format using code based on code I found in the Libraw/dcraw source code.
The problem is that my images are somewhat too red in colour as compared to how (e.g.) Windows "Icon view" or IrfanView display them.
Is there anyone who would be prepared to look at my code and work with me to help work out what I am doing wrong.
This is freeware software so I fear that paying for that assistance could be a problem.
I get that this is a big ask, but I have been banging my head on this problem for a long time and just can't work out what I am going wrong.
Many thanks

I found the problem! It wasn
I found the problem! It wasn't my code at all. It relates to the choice of the correct White Balance to use for a Canon EOS 60Da (the same is likely true of the Canon EOS Ra and the Nikon D810A).
If I process the data using “Daylight White Balance”, the Daylight White Balance values used are those that are appropriate for the EOS 60D (not the 60Da) because the camera model reported in the Raw files is set to EOS 60D (oops – that’s a firmware bug).
In this case all images acquire a very distinct red cast which is really *not* what you want at all!
If you set the camera to use Daylight White Balance and process that data using the Camera White Balance values then the correct white balance for an EOS60Da is applied.
David Partridge