// The values in this file are from J. Maki, the camera PI.
//
// Responsivity params are from an email from J. Maki  2018-11-15 2:00pm.
// The parameters are applied to both FM and EM (TBC).
//
// Note that there are no temperature-dependent responsivity terms.
//
// The white balance (wRGB) matrix is from J. Maki derived in real-time
// on 2018-11-29.  They were derived based on a patch of the white arm in the
// sol 1 IDC rad-corrected iRGB.  They have been applied to all 4 cameras.
//
// The XYZ matrix is the "v31-normalized_v2" from an email 2018-11-29, 12:32pm.
// It is being applied to all four cameras.
//
// The pRGB matrix from sRGB was derived 2018-11-29 based on patch of the white
// arm in the sol 1 IDC CSS, and installed real time.  The XYZ->pRGB conversion
// is not used.
//
// The flat darkening factors are the average value of the flat field, used
// to brighten up flat-field-corrected images when dynamic rad scaling is
// applied.  The color_dn_exp_scaling_factor is a static scaling used to
// bring exposure-compensated color products into the 0-4095 range.
//
// The 
// Flight IDC

SN_0210_responsivity = 1.091394e-06 0.0 0.0
SN_0210_RGB_responsivity = 8.613539e-07 0.0 0.0 1.091394e-06 0.0 0.0 1.664399e-06 0.0 0.0

SN_0210_flat_darkening_factor = 0.86

SN_0210_color_dn_exp_scaling_factor = 0.1

SN_0210_iRGB_to_XYZ_matrix =
 1.0875708   -1.4314745   3.2392806
 0.17009690   0.93876829  0.37937771
-0.62922341  -4.3906116  15.291394

SN_0210_XYZ_to_pRGB_matrix =
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0

SN_0210_sRGB_to_pRGB_matrix =
0.7742     0.0   0.0
0.0        1.0   0.0
0.0        0.0   0.9156

SN_0210_iRGB_to_wRGB_matrix =
0.7965      0.000      0.000
0.000       1.0000000  0.000
0.000       0.000      2.3038

SN_0210_pRGB_illuminant = 3000K

SN_0210_RAD_to_iRGB_vector = 8.613539e-07 1.091394e-06 1.664399e-06

// Flight ICC

SN_0203_responsivity = 1.802214e-06 0.0 0.0
SN_0203_RGB_responsivity = 1.422350e-06 0.0 0.0 1.802214e-06 0.0 0.0 2.748414e-06 0.0 0.0

SN_0203_flat_darkening_factor = 0.68

SN_0203_color_dn_exp_scaling_factor = 0.1

SN_0203_iRGB_to_XYZ_matrix =
 1.0875708   -1.4314745   3.2392806
 0.17009690   0.93876829  0.37937771
-0.62922341  -4.3906116  15.291394

SN_0203_XYZ_to_pRGB_matrix =
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0

SN_0203_sRGB_to_pRGB_matrix =
0.7742     0.0   0.0
0.0        1.0   0.0
0.0        0.0   0.9156

SN_0203_iRGB_to_wRGB_matrix =
0.7965      0.000      0.000
0.000       1.0000000  0.000
0.000       0.000      2.3038

SN_0203_pRGB_illuminant = 3000K

SN_0203_RAD_to_iRGB_vector = 1.422350e-06 1.802214e-06 2.748414e-06

// Color Testbed IDC

SN_0031_responsivity = 1.091394e-06 0.0 0.0
SN_0031_RGB_responsivity = 8.613539e-07 0.0 0.0 1.091394e-06 0.0 0.0 1.664399e-06 0.0 0.0

SN_0031_flat_darkening_factor = 0.86
SN_0031_color_dn_exp_scaling_factor = 0.1

SN_0031_iRGB_to_XYZ_matrix =
 1.0875708   -1.4314745   3.2392806
 0.17009690   0.93876829  0.37937771
-0.62922341  -4.3906116  15.291394

SN_0031_XYZ_to_pRGB_matrix =
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0

SN_0031_sRGB_to_pRGB_matrix =
0.7742     0.0   0.0
0.0        1.0   0.0
0.0        0.0   0.9156

SN_0031_iRGB_to_wRGB_matrix =
0.7965      0.000      0.000
0.000       1.0000000  0.000
0.000       0.000      2.3038

SN_0031_pRGB_illuminant = 3000K

SN_0031_RAD_to_iRGB_vector = 8.613539e-07 1.091394e-06 1.664399e-06

// Color Testbed ICC

SN_0034_responsivity = 1.802214e-06 0.0 0.0
SN_0034_RGB_responsivity = 1.422350e-06 0.0 0.0 1.802214e-06 0.0 0.0 2.748414e-06 0.0 0.0

SN_0034_flat_darkening_factor = 0.86
SN_0034_color_dn_exp_scaling_factor = 0.1

SN_0034_iRGB_to_XYZ_matrix =
 1.0875708   -1.4314745   3.2392806
 0.17009690   0.93876829  0.37937771
-0.62922341  -4.3906116  15.291394

SN_0034_XYZ_to_pRGB_matrix =
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0

SN_0034_sRGB_to_pRGB_matrix =
0.7742     0.0   0.0
0.0        1.0   0.0
0.0        0.0   0.9156

SN_0034_iRGB_to_wRGB_matrix =
0.7965      0.000      0.000
0.000       1.0000000  0.000
0.000       0.000      2.3038

SN_0034_pRGB_illuminant = 3000K

SN_0034_RAD_to_iRGB_vector = 1.422350e-06 1.802214e-06 2.748414e-06


# 5k white bal sRGB_to_pRGB
## 0.88833994 0.0   0.0
## 0.0        1.0   0.0
## 0.0        0.0   1.3417910
