Documentation sections
Line of Sight Calculator — Radio Horizon & Earth Bulge
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug line-of-sight. Radio horizon of each antenna, maximum line-of-sight distance between two masts, Earth bulge and first Fresnel-zone radius at any point along the path, and the clearance a link needs there, over a smooth Earth with the k-factor of your choice.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| antennaHeight1number | m | 0 … 10000 | 40 | Height of antenna 1 above the datum (ground or sea level) |
| antennaHeight2number | m | 0 … 10000 | 30 | Height of antenna 2 above the same datum |
| kFactornumber | none | at least 0.1 | 1.3333333333333333 | k = 4/3 for the standard atmosphere; lower k bends rays less and raises the bulge |
| pathLengthnumber | km | at least 0.001 | 30 | Distance between the two antennas |
| pointDistancenumber | km | at least 0 | 15 | Where along the path to evaluate the bulge and Fresnel zone; must lie between 0 and the path length |
| frequencynumber | GHz | at least 0.001 | 6 | Link frequency, for the Fresnel-zone radius |
| fresnelFractionnumber | none | at least 0 | 0.6 | Fraction of the first Fresnel-zone radius to keep clear |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| maxLosDistanceheadline | km | Maximum Line-of-Sight Distance |
| horizon1 | km | Radio Horizon of Antenna 1 |
| horizon2 | km | Radio Horizon of Antenna 2 |
| bulge | m | Earth Bulge at the Point |
| fresnelRadius | m | First Fresnel-Zone Radius |
| requiredClearance | m | Required Clearance (bulge + Fresnel) |
| rayHeight | m | Ray Height Above Smooth Earth |
| maxObstacleHeight | m | Highest Obstacle Allowed at the Point |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.