![Campbell CNR4 Instruction Manual Download Page 44](http://html1.mh-extra.com/html/campbell/cnr4/cnr4_instruction-manual_489186044.webp)
Appendix B. Example Programs
B-6
Average
(1,cnr4_T_K,IEEE4,False)
Average
(1,LWTopC,IEEE4,False)
Average
(1,LWBottomC,IEEE4,False)
Average
(1,Rs_net,IEEE4,False)
Average
(1,Rl_net,IEEE4,False)
Average
(1,albedo,IEEE4,False)
Average
(1,Rn,IEEE4,False)
EndTable
DataTable
(cnr4_ts,True,-1)
DataInterval
(0,1,Sec,10)
CardOut
(1,-1)
Sample
(4,cnr4(1),IEEE4)
Sample
(1,cnr4_T_K,IEEE4)
EndTable
BeginProg
'Load the multiplier values for the CNR4
cnr4_mult(1) = pyranometer_up_mult
cnr4_mult(2) = pyranometer_dn_mult
cnr4_mult(3) = pyrgeometer_up_mult
cnr4_mult(4) = pyrgeometer_dn_mult
Scan
(1,Sec,3,0)
PanelTemp
(logger_temp,250)
Battery
(batt_volt)
'CNR4 radiation measurements
VoltDiff
(cnr4(),4,mV20C,1,True ,0,_60Hz,cnr4_mult(),0)
'CNR4 thermistor measurement
BrHalf
(Vs_Vx,1,mv5000,16,Vx1,1,2500,True ,0,250,1.0,0)
Rs = 1000*(Vs_Vx/(1-Vs_Vx))
cnr4_T_C = 1/(1.0295e-3+2.391e-4*LN(Rs)+1.568e-7*(LN(Rs))^3)-273.15
'Convert CNR4 temperature to Kelvin
cnr4_T_K = c273.15
'Correct the long-wave radiation values from pyrgeometers
LWTopC = LWTop+5.67e-8*cnr4_T_K^4
LWBottomC = L5.67e-8*cnr4_T_K^4
'Compute short-wave net radiation
Rs_net = SWTop - SWBottom
'Compute long-wave net radiation
Rl_net = LWTopC - LWBottomC
'Compute albedo
albedo = SWBottom/SWTop
'Compute net radiation
Rn = Rl_net
CallTable
cnr4_data
CallTable
cnr4_ts
NextScan
EndProg
Summary of Contents for CNR4
Page 2: ......
Page 6: ......
Page 10: ...Table of Contents iv ...
Page 36: ...CNR4 Net Radiometer 26 ...
Page 38: ......
Page 52: ...Appendix B Example Programs B 14 ...
Page 68: ...Appendix D CNF4 Heater Ventilator D 12 ...
Page 69: ......