Campbell Scientific CSAT3 3-D Sonic Anemometer User Manual
Page 46
CSAT3 Three Dimensional Sonic Anemometer
36: End (P95)
37: End (P95)
;Process CSAT3 Output data.
;
38: Beginning of Subroutine (P85)
1: 3
Subroutine 3
;Add the offset (theta) between the CSAT3 negative x-axis and
;North.
;
39: Z=X+Y (P33)
1: 14
X Loc [ cmpss_dir ]
2: 35
Y Loc [ theta ]
3: 14
Z Loc [ cmpss_dir ]
;Ensure that the compass wind direction is positive.
;
40: If (X<=>F) (P89)
1: 14
X Loc [ cmpss_dir ]
2: 4
<
3: 0
F
4: 30
Then Do
41: Z=X+F (P34)
1: 14
X Loc [ cmpss_dir ]
2: 360
F
3: 14
Z Loc [ cmpss_dir ]
42: End (P95)
;Ensure that the compass wind direction (cmpss_dir) falls between
;0 and 360 degrees.
;
43: Z=X MOD F (P46)
1: 14
X Loc [ cmpss_dir ]
2: 360
F
3: 14
Z Loc [ cmpss_dir ]
;Ensure that the csat3 wind direction (csat_dir) falls between
;between 180 and -180 degrees.
;
44: If (X<=>F) (P89)
1: 17
X Loc [ csat_dir ]
2: 3
>=
3: 180
F
4: 30
Then Do
45: Z=X+F (P34)
1: 17
X Loc [ csat_dir ]
2: -360
F
3: 17
Z Loc [ csat_dir ]
36