Article View: comp.lang.python
Article #240Re: Python analysis of abnormal front tire wear on windy US mountain roads
From: Maria Sophia
Date: Thu, 12 Nov 2026 00:12
Date: Thu, 12 Nov 2026 00:12
80 lines
5540 bytes
5540 bytes
AMuzi wrote: > I'll accept that the diagram was accentuated but IME the > fastest path through a corner is asymmetric for cars I know > well. For other situations or vehicles maybe, maybe not. Given the discussion about straightawys between curves is an extermely important road inherency metric that I hadn't included, I thank you for bringing up this critically important comparison criteria between roads. I modified the Python code to output the information I "think" you need to help us determine if braking prior to curves is feasible on some roads. Here's the output, with the exact coordinates & road names redacted. python roadgeometry.py road1.gpx Loaded 421 raw track points from 'road1.gpx'. --- Road Geometric Analysis: road1.gpx --- Total road length: 11111.64 meters Detected sharp/moderate curves (R < 200m): 292 Detected qualifying straightaways (R >= 200m, >= 15m): 34 Average straightaway length: 62.32 meters Longest straightaway: 453.67 meters Left-hand turning distribution: 150 Right-hand turning distribution: 142 Minimum corner radius (tightest hairpin): 4.79 meters --- Top 5 Tightest Hairpins / Curves --- 1. Radius: 4.79m | Direction: Left | Lat/Lon: XX.XX1034, -XXX.XX5605 2. Radius: 5.06m | Direction: Left | Lat/Lon: XX.XX1050, -XXX.XX5611 3. Radius: 5.28m | Direction: Left | Lat/Lon: XX.XX1075, -XXX.XX5644 4. Radius: 5.36m | Direction: Right | Lat/Lon: XX.XX0586, -XXX.XX7215 5. Radius: 6.26m | Direction: Left | Lat/Lon: XX.XX1079, -XXX.XX5670 python roadgeometry.py road2.gpx Loaded 713 raw track points from 'road2.gpx'. --- Road Geometric Analysis: road2.gpx --- Total road length: 30634.74 meters Detected sharp/moderate curves (R < 200m): 595 Detected qualifying straightaways (R >= 200m, >= 15m): 58 Average straightaway length: 42.25 meters Longest straightaway: 102.91 meters Left-hand turning distribution: 312 Right-hand turning distribution: 283 Minimum corner radius (tightest hairpin): 4.92 meters --- Top 5 Tightest Hairpins / Curves --- 1. Radius: 4.92m | Direction: Right | Lat/Lon: XX.XX6125, -XXX.XX5330 2. Radius: 5.43m | Direction: Right | Lat/Lon: XX.XX2734, -XXX.XX2312 3. Radius: 6.25m | Direction: Left | Lat/Lon: XX.XX7563, -XXX.XX5785 4. Radius: 6.56m | Direction: Left | Lat/Lon: XX.XX7011, -XXX.XX1182 5. Radius: 6.67m | Direction: Right | Lat/Lon: XX.XX7367, -XXX.XX4661 python roadgeometry.py road3.gpx Loaded 319 raw track points from 'road3.gpx'. --- Road Geometric Analysis: road3.gpx --- Total road length: 3623.56 meters Detected sharp/moderate curves (R < 200m): 290 Detected qualifying straightaways (R >= 200m, >= 15m): 14 Average straightaway length: 48.90 meters Longest straightaway: 147.15 meters Left-hand turning distribution: 146 Right-hand turning distribution: 144 Minimum corner radius (tightest hairpin): 4.80 meters --- Top 5 Tightest Hairpins / Curves --- 1. Radius: 4.80m | Direction: Right | Lat/Lon: XX.XX3416, -XXX.XX8357 2. Radius: 4.86m | Direction: Left | Lat/Lon: XX.XX0522, -XXX.XX7788 3. Radius: 4.86m | Direction: Right | Lat/Lon: XX.XX0522, -XXX.XX7788 4. Radius: 4.91m | Direction: Right | Lat/Lon: XX.XX3657, -XXX.XX7972 5. Radius: 4.93m | Direction: Left | Lat/Lon: XX.XX3444, -XXX.XX7060 What do you think? Does the python script output the necessary information for someone like you, who knows cornering techniques, to determine what is feasible? -- On Usenet, we teach what we know and learn from others what we don't.
Technical Details
Message-ID:
<11d30a3$20mt$1@nnrp.usenet.blueworldhosting.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mailReferences:
<11cficq$pl38$1@dont-email.me> <11cu7lc$1s65v$2@dont-email.me> <11cu97v$1sjim$1@dont-email.me> <11cuagn$1sts4$2@dont-email.me> <11cud07$1tic1$1@dont-email.me> <11d2hlq$3br84$1@dont-email.me> <11d2khj$3ct82$1@dont-email.me> <11d2kn2$3cpt1$4@dont-email.me> <11d2lh3$3d8f0$1@dont-email.me> <11d2mc3$3djb9$2@dont-email.me> <11d2msr$3do56$1@dont-email.me> <11d2nf6$3du1o$1@dont-email.me> <11d2p3c$3eigo$1@dont-email.me> <11d2pcv$3emqh$1@dont-email.me> <11d2s3q$3fkbp$1@dont-email.me> <11d2t6s$3futo$2@dont-email.me> <11d2tnn$3g42p$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mail From: Maria Sophia <mariasophia@comprehension.com> Newsgroups: alt.comp.os.windows-10,alt.os.linux,alt.satellite.gps,comp.lang.python,comp.sys.mac.advocacy,rec.autos.tech Subject: Re: Python analysis of abnormal front tire wear on windy US mountain roads Date: Wed, 11 Nov 2026 20:12:51 -0400 Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) Message-ID: <11d30a3$20mt$1@nnrp.usenet.blueworldhosting.com> References: <11cficq$pl38$1@dont-email.me> <11cu7lc$1s65v$2@dont-email.me> <11cu97v$1sjim$1@dont-email.me> <11cuagn$1sts4$2@dont-email.me> <11cud07$1tic1$1@dont-email.me> <11d2hlq$3br84$1@dont-email.me> <11d2khj$3ct82$1@dont-email.me> <11d2kn2$3cpt1$4@dont-email.me> <11d2lh3$3d8f0$1@dont-email.me> <11d2mc3$3djb9$2@dont-email.me> <11d2msr$3do56$1@dont-email.me> <11d2nf6$3du1o$1@dont-email.me> <11d2p3c$3eigo$1@dont-email.me> <11d2pcv$3emqh$1@dont-email.me> <11d2s3q$3fkbp$1@dont-email.me> <11d2t6s$3futo$2@dont-email.me> <11d2tnn$3g42p$1@dont-email.me> Reply-To: pusvul@getTjewytR4so+mqe2.invalid Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 12 Nov 2026 00:12:52 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="IfCZz72xNNlHXBkfV9B6WJEa9xVhaehMJfhAC6fCwnM"; logging-data="66269"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Mojibake v24p7 Cancel-Lock: sha1:b8c5pohG1YJo02mx8LgjK2afj4c= sha256:qdzhY8k5jhu8f120e+6aJxBvL+pWQmT2/tiQotOVCLw= sha1:k/vS7Rr6h3y98KifncNfLoaM4Vw= sha256:Uw5q2bp8EOtS3i/BMgKNHnEHUgoTo4sYdfA/oaUoopU= Content-Language: en-GB