true-wind
v0.0.2
Published
True Wind Calculator
Maintainers
Readme
True Wind Calculator
Calculate true wind direction speed from vessel speed, apparent wind direction and speed.
truewind(options)
The first argument is an options object. {speed: 6.5, heading: 200, awd: 350, aws: 5, awa: 150}
speed- Vessel Speedheading- Vessel True Headingawd- Apparent Wind Direction (0-360) (relative to true north)awa- Apparent Wind Angle (0-360) (relative to bow) Overridesawdandheadingoptions.aws- Apparent Wind Speed (relative to the boat). Units must matchspeedoption.
Returns {}
Each value is rounded to nearest hundredth.
twa- True Wind Angletwd- True Wind Direction (Requiresheadingandawdinput.)twsr- True Wind Speed as a ratio tospeedinput.tws- True Wind Speed in units as sent to function.
var truewind = require('truewind');
var ops = {
speed: 6.5, heading: 200, awd: 350, aws: 5
};
var res = truewind(ops); // { twa: 167, twd: 367, twsr: 1.71, tws: 11.11 }
