Campbell Scientific CSAT3 CSAT3 3-D Sonic Anemometer - Page 44

Process CSAT3 Output data.

Page 44 highlights

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 (XF) (P89) 1: 14 X Loc [ cmpss_dir ] 2: 4 < 3: 0 F 4: 30 Then Do 41: Z=X+F (P34) 1: 14 2: 360 3: 14 X Loc [ cmpss_dir ] F 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 (XF) (P89) 1: 17 X Loc [ csat_dir ] 2: 3 >= 3: 180 F 4: 30 Then Do 45: Z=X+F (P34) 1: 17 2: -360 3: 17 X Loc [ csat_dir ] F Z Loc [ csat_dir ] 36

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72

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