Navigation Bar WOCEMET Home DAC Surface Met Data SAC Surface Flux Data WOCEMET Documentation WOCEMET Web Site Updates

C Codes for True Winds

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.

Filename

Description

truewind.c

Routine that calcuates the true winds

truewind.h

Header file for "truewind.c"

test.c

Tests "truewind.c". To run, see below.

results

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:
                                           test

Any questions regarding the any of the above information should be sent to:
wocemet@coaps.fsu.edu


Return to Main True Winds Page