File Exchange

image thumbnail

Sonic anemometer tilt correction algorithm

version 3.2 (1.16 MB) by E. Cheynet
The 3 wind components are retrieved from a tilted anemometer using 3 different algorithms


Updated 03 Mar 2019

View License

The present submission is a direct application of the algorithm proposed by Wilczak et al. [1] to correct the wind components recorded by a sonic anemometer from tilt angles. It is compared to the double and triple rotation algorithm.
The present submission contains :
- 4 example files: one for the planar fit algorithm, one for the double rotation, one for the triple rotation and one for the estimation of the friction velocity with the different retrieval algorithms.
- The function tiltCorrection.m
- The function friction_velocity.m
- the file data.mat that includes simulated wind data
The algorithm used here for the Planar Fit is the one directly used in [1]. This is the second version of the submission. There may still exist some bugs. Any comment, question or suggestion to improve the algorithm is warmly welcomed.
[1] Wilczak, J. M., Oncley, S. P., & Stage, S. A. (2001). Sonic anemometer tilt correction algorithms. Boundary-Layer Meteorology, 99(1), 127-150.

Cite As

E. Cheynet (2020). Sonic anemometer tilt correction algorithm (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)



Added project website

Updated Matlab release compatibility

Description updated

Live script examples are now used

Added the file data.mat for the examples

Added an option to account for possible measurement bias (the coefficient 'b0'). The option is written as: tiltCorretion(...,"Err",1) (account for possible bias) or tiltCorretion(...,"Err",0) (ignore possible bias) - >Thank Astrid for the remark


typos + minor bug in rot2 and rot3

Additional and more detailed examples; the double and triple rotations are included; minor bug corrected.


MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux