Differences between revisions 3 and 4
 ⇤ ← Revision 3 as of 2017-12-26 12:00:26 → Size: 2019 Editor: EricPalmer Comment: ← Revision 4 as of 2018-05-20 12:53:47 → ⇥ Size: 2100 Editor: BMittan Comment: Deletions are marked like this. Additions are marked like this. Line 4: Line 4: This the parameters to convert DN values (level 0 images) into temperatures and the weighting to apply to the final solution. === Description ===This input file contains the parameters to convert DN values (level 0 images) into temperatures and the weighting to apply to the final solution. Line 27: Line 27: Here is a sample '''DN2TEMP.TXT''' file:

## DN2TEMP.TXT

 Category B Version 3.0.1

### Description

This input file contains the parameters to convert DN values (level 0 images) into temperatures and the weighting to apply to the final solution.

### Coefficients

• Cameras 1, 2, 3 do not use the coefficients.
• Cameras 4 and 5 (TAGCAMs) use only the first two.
• Coefficients 3 and 4 are never used.

The camera's thermoresister is calculated as

• T_i = DN * C13 + DN * C22 + DN * C3 + C4

### Weighting

There are four thermoresisters on each camera. The weights 1-4 provide how much impact each thermoresistor should have. While this example has it totaling 1.0, SPC normalizes the weighting, so it isn't needed.

• N = W1 + W2 + W3 + W4
• T_final = T1 * W1/N + T2 * W2/N + T3 * W3/N + T4 * W4/N

### Columns

 Camera Number Coef 1 Coef 2 Coef 3 Coef 4 Weight 1 Weight 2 Weight 3 Weight 4 C1 C 2 C 3 C 4 W 1 W 2 W 3 W 4

Here is a sample DN2TEMP.TXT file:

```1     0.80168E+02   -0.69285E-01    0.23237E-04   -0.37331E-08  0.25  0.25  0.25  0.25
2     0.80168E+02   -0.69285E-01    0.23237E-04   -0.37331E-08  0.25  0.25  0.25  0.25
3     0.80168E+02   -0.69285E-01    0.23237E-04   -0.37331E-08  0.25  0.25  0.25  0.25
4    -263.15    0.15259  0  0  1.D0  0.D0  0.D0  0.D0
5    -263.15    0.15259  0  0  1.D0  0.D0  0.D0  0.D0

C    NAV & NFT CAMERA HEAD TEMPERATURE PARAMETERS FROM
C    UA-SIS-9.4.4-322_OSIRIS-REx-NavCam-Data-Product-SIS_Rev_2.0_CCv0005.pdf
C
C    OCAMS CAMERA HEAD TEMPERATURE PARAMETERS CALCULATED FROM
C    OREX-DOC-05.01-00259_OCAMS Flight SW Engineering Dictionary_Rev_C_CCv0018.pdf
C    Fit to DN 1200 - 3400 (TC from ~ 25 to -35) has RMS = 0.18C, MAXDEV = 0.30C

C    Focal length temperatures for OCAMS are linear combinations of housekeeping temperatures:
C      TMC =  F1*MCFWHTMP+F2*MCFWMTMP+F3*MCLENTMP+F4*MCROETMP
C      TSC =  F1*SCFWHTMP+F2*SCFWMTMP+F3*SCLENTMP+F4*SCROETMP
C      TPC =  F1*PCFOHTMP+F2*PCFOMTMP+F3*PCMR1TMP+F4*PCROETMP
C```

DN2TEMP.TXT (last edited 2018-05-20 12:53:47 by BMittan)