-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Documenter.jl
committed
Dec 31, 2023
0 parents
commit b09e10b
Showing
15 changed files
with
1,248 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"documenter":{"julia_version":"1.6.7","generation_timestamp":"2023-12-31T11:57:14","documenter_version":"1.2.1"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Atmostpheric Attenuation · RadioPropagation.jl</title><meta name="title" content="Atmostpheric Attenuation · RadioPropagation.jl"/><meta property="og:title" content="Atmostpheric Attenuation · RadioPropagation.jl"/><meta property="twitter:title" content="Atmostpheric Attenuation · RadioPropagation.jl"/><meta name="description" content="Documentation for RadioPropagation.jl."/><meta property="og:description" content="Documentation for RadioPropagation.jl."/><meta property="twitter:description" content="Documentation for RadioPropagation.jl."/><script data-outdated-warner src="../../assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="../.."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../../assets/documenter.js"></script><script src="../../search_index.js"></script><script src="../../siteinfo.js"></script><script src="../../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href="../../">RadioPropagation.jl</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li><a class="tocitem" href="../../">RadioPropagation.jl Documentation</a></li><li><span class="tocitem">Examples</span><ul><li class="is-active"><a class="tocitem" href>Atmostpheric Attenuation</a><ul class="internal"><li><a class="tocitem" href="#References"><span>References</span></a></li></ul></li><li><a class="tocitem" href="../two-ray_propagation/">Two-Ray Propagation</a></li></ul></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li><a class="is-disabled">Examples</a></li><li class="is-active"><a href>Atmostpheric Attenuation</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Atmostpheric Attenuation</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/ErikBuer/RadioPropagation.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/ErikBuer/RadioPropagation.jl/blob/main/docs/src/Examples/atmospheric_attenuation.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="Atmostpheric-Attenuation"><a class="docs-heading-anchor" href="#Atmostpheric-Attenuation">Atmostpheric Attenuation</a><a id="Atmostpheric-Attenuation-1"></a><a class="docs-heading-anchor-permalink" href="#Atmostpheric-Attenuation" title="Permalink"></a></h1><p>Lets recreate the classic atmospheric attenuation figure from [1].</p><pre><code class="language-julia hljs">using ..RadioPropagation | ||
using Plots | ||
|
||
frequency_ghz = collect(1:600); | ||
|
||
|
||
attenuation_db_km = RadioPropagation.atmospheric_attenuation_db_per_km.( frequency_ghz ); | ||
|
||
plot( | ||
frequency_ghz, attenuation_db_km, | ||
xlabel = "Frequency [GHz]", | ||
ylabel = "One-way loss [dB/km]", | ||
title = "Atmospheric Attenuation.", | ||
label = "Standard", | ||
yaxis=:log, | ||
dpi=300 | ||
) | ||
|
||
|
||
attenuation_db_km = RadioPropagation.atmospheric_attenuation_db_per_km.( frequency_ghz, 288.15, 0 ); | ||
|
||
plot!( frequency_ghz, attenuation_db_km, | ||
label = "Dry air", | ||
yaxis=:log, | ||
)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">qt.qpa.xcb: could not connect to display | ||
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. | ||
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. | ||
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. | ||
|
||
Available platform plugins are: vkkhrdisplay, linuxfb, offscreen, vnc, xcb, minimal, minimalegl, eglfs. | ||
|
||
Aborted (core dumped) | ||
connect: Connection refused | ||
GKS: can't connect to GKS socket application | ||
|
||
GKS: Open failed in routine OPEN_WS | ||
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS</code></pre><p><img src="../attenuation_example.svg" alt="Atmostpheric attenuation image"/></p><h2 id="References"><a class="docs-heading-anchor" href="#References">References</a><a id="References-1"></a><a class="docs-heading-anchor-permalink" href="#References" title="Permalink"></a></h2><p>[1] Rec. ITU-R P.676-12, Attenuation by atmospheric gases and related effects, ITU-R 2020.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../">« RadioPropagation.jl Documentation</a><a class="docs-footer-nextpage" href="../two-ray_propagation/">Two-Ray Propagation »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Sunday 31 December 2023 11:57">Sunday 31 December 2023</span>. Using Julia version 1.6.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Two-Ray Propagation · RadioPropagation.jl</title><meta name="title" content="Two-Ray Propagation · RadioPropagation.jl"/><meta property="og:title" content="Two-Ray Propagation · RadioPropagation.jl"/><meta property="twitter:title" content="Two-Ray Propagation · RadioPropagation.jl"/><meta name="description" content="Documentation for RadioPropagation.jl."/><meta property="og:description" content="Documentation for RadioPropagation.jl."/><meta property="twitter:description" content="Documentation for RadioPropagation.jl."/><script data-outdated-warner src="../../assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="../.."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../../assets/documenter.js"></script><script src="../../search_index.js"></script><script src="../../siteinfo.js"></script><script src="../../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href="../../">RadioPropagation.jl</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li><a class="tocitem" href="../../">RadioPropagation.jl Documentation</a></li><li><span class="tocitem">Examples</span><ul><li><a class="tocitem" href="../atmospheric_attenuation/">Atmostpheric Attenuation</a></li><li class="is-active"><a class="tocitem" href>Two-Ray Propagation</a></li></ul></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li><a class="is-disabled">Examples</a></li><li class="is-active"><a href>Two-Ray Propagation</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Two-Ray Propagation</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/ErikBuer/RadioPropagation.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/ErikBuer/RadioPropagation.jl/blob/main/docs/src/Examples/two-ray_propagation.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="Two-Ray-Propagation"><a class="docs-heading-anchor" href="#Two-Ray-Propagation">Two-Ray Propagation</a><a id="Two-Ray-Propagation-1"></a><a class="docs-heading-anchor-permalink" href="#Two-Ray-Propagation" title="Permalink"></a></h1><p>This example plots signal strength as function of range, compared to free space power spread.</p><pre><code class="language-julia hljs">using ..RadioPropagation | ||
using Plots | ||
|
||
c = 3e8; | ||
|
||
transmit_height_m = 2; | ||
receive_height_m = 10; | ||
target_range_m = LinRange(20, 100, 10000); | ||
transmit_frequency_hz = 3e9; | ||
λ = c/transmit_frequency_hz; | ||
Γ1 = -1; | ||
Γ2 = -0.6; | ||
|
||
F²( Γ ) = RadioPropagation.two_ray_propagation.( target_range_m, transmit_height_m, receive_height_m, transmit_frequency_hz, Γ ); | ||
|
||
F²1 = F²( Γ1 ); | ||
F²2 = F²( Γ2 ); | ||
|
||
f⁴_db( F² ) = 10*log10.( abs2.( F² )); | ||
|
||
freespace_loss_db = 10 .*log10.(λ^2 ./( (4*π)^3 .*target_range_m .^4 )); | ||
bias = freespace_loss_db[1] | ||
|
||
|
||
plot1 = plot( target_range_m, f⁴_db.(F²1)+freespace_loss_db .-bias, | ||
xlabel = "Range (one-way) [m]", | ||
ylabel = "Two-way loss [dB]", | ||
title = "Free-space versus two-ray propagation.", | ||
ylims = (-30, 6), | ||
label = "|F|⁴+L, Γ=-1", | ||
legend = true, | ||
xaxis =:log, | ||
dpi=300) | ||
plot!( target_range_m, f⁴_db.(F²2)+freespace_loss_db .-bias, | ||
label = "|F|⁴+L, Γ=-0.6", | ||
xaxis =:log ) | ||
plot!( target_range_m, freespace_loss_db .-bias, | ||
label = "L", | ||
xaxis =:log )</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">qt.qpa.xcb: could not connect to display | ||
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. | ||
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. | ||
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. | ||
|
||
Available platform plugins are: vkkhrdisplay, linuxfb, offscreen, vnc, xcb, minimal, minimalegl, eglfs. | ||
|
||
Aborted (core dumped) | ||
connect: Connection refused | ||
GKS: can't connect to GKS socket application | ||
|
||
GKS: Open failed in routine OPEN_WS | ||
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS</code></pre><p><img src="../two-tay-propagation.svg" alt="Two-ray propagation"/></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../atmospheric_attenuation/">« Atmostpheric Attenuation</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Sunday 31 December 2023 11:57">Sunday 31 December 2023</span>. Using Julia version 1.6.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.