These files contain a routine which will compute meteorological true winds (direction from which wind is blowing, relative to true north; and speed relative to the fixed earth) when given a set of five arrays of equal length and the zero-line reference (zlr).
|"hd"||--the direction the bow of the vessel is pointing (heading -- referenced to true north)|
|"crse"||--the course toward which each vessel is moving over the ground|
|"cspd"||--the speed of each vessel over the ground|
|"wdir"||--the wind direction measured by the anemometer (referenced to the zlr on the ship)|
|"wspd"||--the wind speed measured by anemometer|
The following files can be downloaded in the tar file c-codes.tar. To view each file individually you
may click on the filename in the table.
Routine that calcuates the true winds
Header file for "truewind.c"
Tests "truewind.c". To run, see below.
Results of test procedure. Output should resemble this file.
To run the test program for 'truewind.c', first, compile
"truewind.c" by typing at the prompt:
cc -c truewind.c
Next, to compile "test.c", type:
cc -o test test.c -lm
Then to run "test" simply type:
Any questions regarding the any of the above information should be sent
Return to Main True Winds Page