@ajax Let us keep it simple and examine the output of dcraw
, which is what I would call the grandfather of raw processors.
>dcraw -v sample.nef
Loading Nikon D3300 image from sample.nef ...
Scaling with darkness 150, saturation 4095, and
multipliers 2.393118 1.000000 1.223981 1.000000
AHD interpolation...
Converting to sRGB colorspace...
dcraw
gathers information from its own database to determine the scaling levels; i.e. where the noise floor and saturation points are. Then it proceeds to read the multipliers from the metadata of the raw file, which were determined by your cameraās white balance settings (mostly based on defaults of and assumptions about the camera). As you can see, temperature is not a part of the equation; what the raw processor reads from the file is not the temperature.
Temperature, tint and kelvin are abstractions of these multipliers, based on what is assumed to be true of each colour array and individual pixels. You would need a colorimeter or spectrophotometer at the scene to tell you what the colour or wavelength of the light sources were exactly. Or at least have a grey or colour reference handy.
That said, colour replication would be impossible if you donāt have a good colour management habits, so consider colour profiling your camera, screen, printer, paper, etc., and consider the ambient temperature of the room where you are editing and where and how the images will be displayed and viewed. Before you know it, you turn into a colour expert.
There is a gold mine of info on the web. Here are some links to get you started.