golfcalc
v0.1.0
Published
Golf handicap calculator and launch monitor ballistics estimator
Maintainers
Readme
golfcalc
Golf handicap calculator and launch monitor ballistics estimator. Built by GolfLaunchLab, an independent golf launch monitor review site.
Install
npm install golfcalcHandicap Index
Calculate your USGA World Handicap System index:
const { handicapIndex } = require('golfcalc');
// [adjustedScore, courseRating, slopeRating]
const rounds = [
[85, 72.1, 131],
[88, 71.5, 128],
[82, 70.8, 125],
[90, 73.2, 135],
[87, 72.1, 131],
];
console.log(handicapIndex(rounds)); // 11.4Shot Distance
Estimate carry and total distance from launch monitor data:
const { carryDistance, totalDistance } = require('golfcalc');
// 7-iron: 132 mph ball speed, 16.5 deg launch, 7000 rpm spin
const carry = carryDistance(132, 16.5, 7000);
const total = totalDistance(132, 16.5, 7000);
// At altitude (Denver)
const carryDenver = carryDistance(132, 16.5, 7000, { altitudeFt: 5280 });Optimal Launch
Find the best launch conditions for your ball speed:
const { optimalLaunch } = require('golfcalc');
const result = optimalLaunch(165);
console.log(result);
// { launchAngle: 12.5, spinRate: 2200, carryYards: 285.3 }About
Built by GolfLaunchLab. We test and review golf launch monitors with TrackMan-validated data. See our reviews and guides.
License
MIT
