Published
Edited
May 24, 2022
Importers
Insert cell
Insert cell
Insert cell
// returns the Free Space Pathloss for the given distance dkm and frequenc fMHz (in MHz)
FPL = function (dkm, fMHz) {
return 20 * Math.log10(dkm) + 20 * Math.log10(fMHz) + 32.44;
}
Insert cell
dist = d3.range(0.01, 0.5, 0.01)
Insert cell
fpl = d3.map(dist, (d) => FPL(d, 3500))
Insert cell
Plot.plot({
grid: true,
caption: "FPL @ 3700MHz",
x: { nice: true, label: "Distane in m", tickFormat: (d) => d * 1000 },
y: { nice: true, label: "PathLoss [dB]" },
marks: [
Plot.line(fpl, { x: dist, y: (d) => FPL(d, 3600) }),
Plot.line(fpl, { x: dist, y: (d) => FPL(d, 3700), stroke: "red" })
]
})
Insert cell
Insert cell
FPL(0.25, 3700)
Insert cell
invFPL(92.8, 3700)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
getDistance(125)
Insert cell
obs = getPL(40)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import { printTable } from "@uwdata/data-utilities"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more