0001 clear
0002
0003
0004
0005
0006
0007
0008
0009 d = pipe_read('24-aug-2010:01:17:09', '24-aug-2010:04:21:17');
0010
0011
0012
0013 SkyDipMethod1;
0014 SkyDipMethod2;
0015 SkyDipMethod3;
0016
0017 CalcOpacity
0018
0019 a = CalcOpacity - ZenithOpacityMethodOne;
0020 b = CalcOpacity - ZenithOpacityMethodTwo;
0021 c = CalcOpacity - ZenithOpacityMethodThree;
0022
0023 a = sqrt(a^2);
0024 b = sqrt(b^2);
0025 c = sqrt(c^2);
0026
0027 if a < b && a <c;
0028
0029 display ('Zenith opacity has been calculated using')
0030 ZenithOpacityMethodOne
0031
0032 end
0033
0034 if b < c && b < a;
0035
0036 display('Zenith opacity has been calculated using')
0037 ZenithOpacityMethodTwo
0038
0039 end
0040
0041 if c < b && c < a;
0042
0043 display('Zenith opacity has been calculated using')
0044 ZenithOpacityMethodThree
0045
0046 end
0047
0048