Rust / WebAssembly · sor_parser::slack 100% Client-Side
OTDR Optical-to-Geometric Trench & Slack Reconciler
Pinpoints OTDR splices or faults onto 3D cable corridor geometry using exact asbuilt interval ownership and helix length-factor bounds.
Route CSV/GeoJSON and OTDR distances stay inside your browser WASM memory — zero server storage or upload.
Optical ↔ Geometric Model Bounds (sor_parser::slack)
| Parameter | Specification & Bounds | Source Anchor |
|---|---|---|
| Leg Model | Ordered path of Lead { m }, Span { span_id, len3d_m, factor, dir }, and Slack { node_id, m } | crates/sor-parser/src/slack.rs |
| Boundary Ownership | Spans own half-open [start, end); Slack coils own closed endpoints so boundary events stay in closures | crates/sor-parser/src/slack.rs |
| Plausible FACTOR_RANGE | 1.000..=1.050 (helix + excess fiber length); out-of-range fits raise blocking SLACK_FACTOR_OUT_OF_RANGE | crates/sor-parser/src/slack.rs |
| Residual Tolerance | |measured_end - modelled_end| <= 2.0 m + 0.5% * measured_end | crates/sor-parser/src/slack.rs |
| Axis Convention | 3D corridor vertices ordered as (Easting, Northing, Z) in metres | docs/02-database-and-geodesy.md |
How to Locate an OTDR Event Along a Trench
- Load corridor geometry: Paste CSV vertices (span_id, seq, e, n, z, slack_end_m, node_id) or GeoJSON LineString geometry.
- Enter measured fiber end and event distances: Supply OTDR launch lead length, End-of-Fiber distance for factor fitting, and fault/splice meters.
- Inspect localized XY/Z and export dig mark: Check whether the event falls in a slack vault or at exact trench Easting/Northing/Elevation.
Slack Reconciliation Principles
- Helix & Excess Fiber Length Factor
- Loose-tube fiber is slightly longer than its containing trench duct (typically 1.005 to 1.030). Any fitted factor above 1.050 signals an unrecorded service loop or wrong corridor route.
- Closed Slack Boundary Rule
- A measurement landing exactly between a trench span and a splice vault resolves inside the vault node rather than 0 m down the duct.