I know this thread is old as the hills. But, I just found wetpixel.
Actually the software does quite a bit in determining the coloring of raw files. Based on the discussion it would appear that everyone has a good idea about the Bayer array in front of your camera's sensor. If not there is a good description of it here http://www.cambridge...era-sensors.htm
Each individual pixel determine it's level of light however, the actual color
of the pixel is not determined until the software evaluates the pixels around it. Only then can the actual color of that pixel be determined. So in the strictest of terms, the sensor has no color gamut. It is the entire system; bayer filter, sensor and software interpreting the sensor data that determine the gamut. On most, if not all, digital cameras the WB data is included with the raw file simply as reference. No WB correction is applied to the raw sensor data. When the raw file is viewed with software, the software has a profile for that camera and that raw file. Through interrupting this, the colors of the pixels are determined and the raw file can be manipulated for color.
I was recently going through some old photos from a dive trip to Tahiti. I had some raw images that were practically black. After some heavy lifting I was able to pull a decent looking photo of a leaf fish from the dead. The photo, not the fish. The fist was very alive.