I'm trying to create a script taking my experimental values of measured radiance and turn it into xyz and rgb colour values.
I import table with colour matching functions from here -http://cvrl.ucl.ac.uk/cmfs.htm
But I'm running into a trouble, because the step of my measured data goes like this: 400nm, 403.535nm, 407.071nm, 410.606nm, etc and I don't know how to get it to match the one from colour matching functions to get this code to work:
Calc[radiance_] :=
Module[
{P = radiance},
X = Δλ*Total[wx*P];
Y = Δλ*Total[wy*P];
Z = Δλ*Total[wz*P];
x = X/(X + Y + Z);
y = Y/(X + Y + Z);
z = Z/(X + Y + Z); Return[XYZColor[x, y, z]];
]