-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRay_Tracing_Ionosphere_Project.html
More file actions
313 lines (287 loc) · 16.9 KB
/
Copy pathRay_Tracing_Ionosphere_Project.html
File metadata and controls
313 lines (287 loc) · 16.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/radiocalc_general.dwt" codeOutsideHTMLIsLocked="false" -->
<!-- DW6 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Ray Tracing Through the IONOSPHERE Mathematica Open Source Notebook</title>
<!-- InstanceEndEditable -->
<link rel="stylesheet" href="../simple.css" type="text/css">
<!--<link rel="stylesheet" href="emx_nav_left.css" type="text/css"> -->
<script type="text/javascript">
<!--
var time = 3000;
var numofitems = 7;
//menu constructor
function menu(allitems,thisitem,startstate){
callname= "gl"+thisitem;
divname="subglobal"+thisitem;
this.numberofmenuitems = 7;
this.caller = document.getElementById(callname);
this.thediv = document.getElementById(divname);
this.thediv.style.visibility = startstate;
}
//menu methods
function ehandler(event,theobj){
for (var i=1; i<= theobj.numberofmenuitems; i++){
var shutdiv =eval( "menuitem"+i+".thediv");
shutdiv.style.visibility="hidden";
}
theobj.thediv.style.visibility="visible";
}
function closesubnav(event){
if ((event.clientY <48)||(event.clientY > 107)){
for (var i=1; i<= numofitems; i++){
var shutdiv =eval('menuitem'+i+'.thediv');
shutdiv.style.visibility='hidden';
}
}
}
// -->
</script>
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
background-image: url(../bg.jpg);
}
.style1 {
font-family: "Times New Roman", Times, serif;
font-size: 200%;
font-weight: bold;
font-style: italic;
color: #000000;
}
-->
.style2 {
font-family: "Times New Roman", Times, serif;
font-size: 100%;
color: #0c5ebf;
}
</style>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<link rel="stylesheet" href="../emx_nav_left.css" type="text/css">
<body onmousemove="closesubnav(event);">
<div class="skipLinks"> <a href="#siteInfo"></a> </div>
<div id="masthead2">
<table width="1329" border="0">
<tbody>
<tr>
<th width="501" scope="col"><div align="left"><img src="../BannerWork/RadioCalcBanner.png" width="418" height="174" alt=""/></div></th>
<th width="818" scope="col"><div align="left"><strong><img src="../BannerWork/AdobeStock_92633058_Tower.jpg" width="39" height="51" alt=""/><img src="../BannerWork/RadioCalCpCOM.jpg" width="419" height="46" alt=""/></strong></div></th>
</tr>
</tbody>
</table>
<div id="globalNav">
<div id="globalLink">
<a href="../index.html" id="gl1" class="glink" >Home</a><a href="../RadioPropagation.html" id="gl4" class="glink" >RF Propagation</a><a href="../MultiConductorCAD.html" id="gl2" class="glink" >Multi Conductor CAD</a><a href="http://www.silicondsp.com/Capsim" id="gl4" class="glink" >DSP/Communications</a>
<a href="Ray_Tracing_Ionosphere_Project.html" id="gl5" class="glink" >Ionospheric Propagation</a><a href="../Contact.html" id="gl6" class="glink" >Contact</a>
</div>
<!--end globalLinks-->
<!-- <form id="search" action="">
<input name="searchFor" type="text" size="10">
<a href="">search</a>
</form> -->
</div>
<!-- end globalNav -->
<div id="subglobal1" class="subglobalNav"><BR>
</div>
<!-- end masthead -->
<!-- InstanceBeginEditable name="PageName" -->
<h1 align="center" class="style1">Ray Tracing Through the IONOSPHERE</h1>
<h1 align="center" class="style1">Open Source Mathematica ® Code </h1>
<strong>Ray Tracing Through the IONOSPHERE FORTRAN Code. Click <a href="Ray_Tracing_Ionosphere_Project_FORTRAN_Code.html">Here</a>.</strong>
<p><strong>For Description</strong> Click <a href="#description">Here</a></p>
<table width="800" border="1">
<tbody>
<tr>
<th width="40" scope="col"><div align="center">Case</div></th>
<th width="1022" scope="col">Description</th>
<th width="104" scope="col">Code</th>
<th width="53" scope="col">WEB View</th>
<th width="175" scope="col">Result Plots</th>
</tr>
<tr>
<td><div align="center">1</div></td>
<td>Mathematica® Notebook for Ray Tracing Radio Waves Through the IONOSPHERE. Based on the original FORTRAN Code in [Jones, Stephenson, 1975]. GPL version 3 .</td>
<td><a href="SourceCode/Mathematica/RayTrace_IONOSPHERE_NoteBook.nb">Notebook</a></td>
<td><a href="SourceCode/Mathematica/RayTrace_IONOSPHERE_NoteBook_HTML/RayTrace_IONOSPHERE_NoteBook.htm"> HTML</a></td>
<td><p><a href="../MultiConductorCAD/Microstrip/Near_End_Cross_Talk_Mathematica_Code_Based_On_Ardalan_et_al_1988.png"> </a>1- Ray Path Through IONOSPHERE <a href="Documentation/RayTraceIONOSPHERE_Earth_3D_45_45/RayTrace_Ionosphere_Earth_2nd_HOP_post_process_45_45.png">View 1</a></p>
<p>2- Ray Path Through IONOSPHERE <a href="Documentation/RayTraceIONOSPHERE_Earth_3D_45_45/RayTrace_Ionosphere_Earth_post_process_45_45.png">View 2</a></p>
<p>3-<a href="Documentation/RayTraceIONOSPHERE_Earth_3D_45_45/arrows_k_vector_reversing.png">Propagation Vector </a></p></td>
</tr>
<tr>
<td><div align="center">2</div></td>
<td>FORTRAN Code for Ray Tracing Radio Waves Through the IONOSPHERE. Cleaned up and debugged from Scan and OCR of [Jones, Stephenson, 1975] Original CDC Mainframe FORTRAN. Compiles with <em>gfortran</em>. Note: Use a Professional Compiler until some issues with <em>gfortran</em> need to be resolved. </td>
<td><a href="Ray_Tracing_Ionosphere_Project_FORTRAN_Code.html">FORTRAN</a></td>
<td>--</td>
<td><a href="../MultiConductorCAD/Microstrip/Near_End_Cross_Talk_Mathematica_Code_Based_On_Theory_Hill_1994.png"> </a></td>
</tr>
<tr>
<td><div align="center">3</div></td>
<td>Simulation Results. Matrix of all Ray Vectors ( 800 iterations) one ray trace case. Elevation 45 degrees. See ray.dat. </td>
<td><p><a href="Documentation/RayMatrix.wdx">RayMatrix.wdx</a></p>
<p><a href="Documentation/W.wdx">W.wdx</a></p></td>
<td>--</td>
<td><a href="../MultiConductorCAD/Microstrip/Microstrip_Ardalan_Riddle_Theory_Far_End_ Hill_1994_Experiment.png"> </a>--</td>
</tr>
<tr>
<td> </td>
<td>Parameter text file. Place in same directory as Mathematica® Notebook.</td>
<td><p>(1)<a href="Documentation/ray.dat"> ray.dat</a></p>
<p>(2) <a href="Documentation/ray.csv">ray.csv</a></p></td>
<td>--</td>
<td>--</td>
</tr>
<tr>
<td><div align="center">5</div></td>
<td>Latex File for Hamiltonian, Derivatives and Symbol Table</td>
<td><p><a href="Documentation/formulas-ray_tracing.tex">Latex File</a></p></td>
<td>--</td>
<td><div align="center"><a href="Documentation/formulas-ray_tracing.pdf"><img src="../pdf.gif" width="22" height="21" alt=""/></a><a href="../MultiConductorCAD/Microstrip/Far_End_Cross_Talk_S41_Measurements_Hill_1994.png"></a></div></td>
</tr>
</tbody>
</table>
<p> </p>
<h2 class="style1"><div id=”tools”> Tools</div></h2>
<table width="800" border="1">
<tbody>
<tr>
<th width="47" scope="col"><div align="center"><div id="tools1">Item</div></th>
<th width="484" scope="col">Description</th>
<th width="87" scope="col">Code</th>
<th width="81" scope="col">WEB View</th>
<th width="81" scope="col">Graphic</th>
</tr>
<tr>
<td><div align="center">1</div></td>
<td>Tools for Postprocessing Ray Matrix from Ray Trace Mathematica® Notebook. Propagation Vector. </td>
<td><a href="SourceCode/Mathematica/RayPathPostProcessingPropagationVector.nb">Notebook</a></td>
<td><a href="SourceCode/Mathematica/RayPathPostProcessingPropagationVector_HTML/RayPathPostProcessingPropagationVector.htm">HTML</a></td>
<td><a href="Documentation/RayTraceIONOSPHERE_Earth_3D_45_45/arrows_k_vector_reversing.png">Propagation Vector</a></td>
</tr>
<tr>
<td><div align="center">2</div></td>
<td>Tools for Postprocessing Ray Matrix from Ray Trace Mathematica® Notebook. Ray Trace Curve.</td>
<td><a href="SourceCode/Mathematica/RayTracingPostProcessingRayPosition.nb">Notebook</a></td>
<td><a href="SourceCode/Mathematica/RayTracingPostProcessingRayPosition_HTML/RayTracingPostProcessingRayPosition.htm">HTML</a></td>
<td><a href="Documentation/RayTraceIONOSPHERE_Earth_3D_45_45/RayTrace_Ionosphere_Earth_2nd_HOP_post_process_45_45.png">Two Hop</a></td>
</tr>
<tr>
<td><div align="center">3</div></td>
<td>Mathematica® Code for FORTRAN PRINTR Routine. Work in Progress. Incomplete.</td>
<td><a href="SourceCode/Mathematica/RayPathPrintrWorkInProgress.nb">Notebook</a></td>
<td><a href="SourceCode/Mathematica/RayPathPrintrWorkInProgress/RayPathPrintrWorkInProgress.htm">HTML</a></td>
<td><a href="Documentation/Check_PRINTR.jpg">Preliminary</a></td>
</tr>
</tbody>
</table>
<h2 class="style1">References:</h2>
<p style="margin-left:1em;">1- R. Michael Jones, Judith J. Stephenson, <strong>A Versatile Three-Dimensional Ray Tracing <br>
Compute Program for Radio Waves in the Ionosphere</strong>, OT Report 75-75, US Department of Commerce, October 1975 <span style="margin-left:1em;"><a href="https://www.its.bldrdoc.gov/publications/download/75-76.pdf
"><img src="../pdf.gif" width="22" height="21" alt=""/>PDF Report</a></span>.</p>
<h1 align="center" class="style1" style="margin-left:1em;"><div id="description">Description</div></h1>
<p style="margin-left:1em;"> Ray Trace Through the IONOSPHERE Mathematica® Notebook <br>
Copyright (C)2018 Sasan Ardalan <br>
This program is free software:you can redistribute it and/or modify it under the terms of the GNU General Public License as published by <br>
the Free Software Foundation,either version 3 of the License,or at your option) any later version.This program is distributed <br>
in the hope that it will be useful, but WITHOUT ANY WARRANTY <br>
without even the implied warranty of <br>
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
<p style="margin-left:1em;">See the <br>
GNU General Public License for more details.You should have received a copy of the GNU General Public License along with this program.</p>
<p style="margin-left:1em;">If not, see<http://www.gnu.org/licenses/>. <br>
Author:Sasan Ardalan <br>
Date:December 22,2018 <br>
<br>
<a href="http://www.radiocalc.com">http://www.radiocalc.com </a></p>
<p style="margin-left:1em;">The Mathematica® Code is based on the FORTRAN Code by [Jones, Stepehnson, 1975]. See Reference above. </p>
<p style="margin-left:1em;"> The Code was scanned and OCR'd (back in 2002). The corrections took a major effort. Debugged more in December 2018. Obviously a very error prone procedure. The code in the OT Report 75-76 had some issues related to porting from a CDC Mainfram to <em>gfortran</em>. <br>
Also the CDC FORTRAN allowed for some non standard variable persistance between subroutine calls. Also some assignments were fixed especially for DRDT(1). <br>
A debug option with extensive reporting on computations was added. <br>
The routine POL CAR was modified. <br>
</p>
<p style="margin-left:1em;">The Mathematica® code eliminates all the FORTRAN GO TO statements. Also one
gets a better view of global variables.Mathematica® uses color coding on variables (local global).
The Mathematica® Modules hopefully clear up what variables are global. Will be nice to elliminate most global variables (except the W Array) from the code. <br>
The Mathematica Code is a great basis for porting to Java and other Programming languages ( we have eliminated the Go TO's as stated before plus extensive work for structured programming). <br>
The effort is to capture the setup used by Jones and Stephenson.<br>
With Mathematica® vast 3D Graphing capabilties are available as well as 2-D Graphing. Also easy to access Matrices and Arrays for analysis. At any rate getting the excellent work by Jones and Stephenson into Mathematica® opens up a huge opportunity for Research and Development in the area of Ray Tracing through the IONOSPHERE. </p>
<p style="margin-left:1em;">Note in FORTRAN Code Elevation at 90 Degrees is Vertical.</p>
<p> <p style="margin-left:1em;">The GPL Copyright applies to the Mathematica® Code. </p>
<p align="center" style="margin-left:1em;"><img src="Documentation/Spherical_Coordinates.png" width="486" height="435" alt=""/></p>
<p align="center" style="margin-left:1em;"><strong>Spherical Coordinates</strong></p>
<p style="margin-left:1em;"> </p>
<p style="margin-left:1em;"><img src="Documentation/List_of_Symbols.png" width="818" height="473" alt=""/></p>
<p align="left" style="margin-left:1em;"><strong>Hamiltonian and Derivatives</strong></p>
<p style="margin-left:1em;"><img src="Documentation/Hamiltoinian_and_Derivatives_Ray_Tracing.png" width="690" height="543" alt=""/></p>
<p align="left" style="margin-left:1em;"><strong>Ray Vector</strong></p>
<p style="margin-left:1em;"><img src="Documentation/Ray_Vector.png" width="445" height="260" alt=""/></p>
<p align="left" style="margin-left:1em;"><strong>Ray Vector Options</strong></p>
<p style="margin-left:1em;"><img src="Documentation/Ray_Vector_Options.png" width="714" height="303" alt=""/></p>
<h2 align="center"><span class="style1">Usage Guidance </span><br>
</h2>
<br>
<p style="margin-left:1em;">The code is written so
one ray launch is analysed.
Set the Elevation and Azimuth and the Transmitter Longitude and Lattitude. All key parameters including above read through the test file: <br>
<em>ray.dat</em> ( Mathematica® Reads the CVS file <em>ray.csv </em>that we have prepared based on the original <em>ray.dat </em>file).<br>
This is the same file used by Jones and Stephenson. <br>
<br>
Earth Radius set in the code: <br>
<br>
EARTHR=6370. ; W[[2]]=EARTHR; <br>
<br>
The Mathematica® code uses the W array as in the FORTRAN code as a database of parameters just as in Jones and Stephenson
<p style="margin-left:1em;">Set the maximum iterations in the TraceRT routine loop: <br>
<br>
MAXITERATIONS <br>
<br>
Multi Hop is different than Jones and Stephenson since we only use the Iterations loop. <br>
<br>
The results are store in the matrix: <em>RayMatrix</em> which is stored in a file using Mathematica®: <br>
<br>
<em>Export["RayMatrix.wdx",RayMatrix]; </em><br>
<br>
This way the ray information (state vector) is available for Post Processing. </p>
<p style="margin-left:1em;">We have also translated the Subroutine PRINTR to Mathematica® code. <br>
<br>
There are some issues with Fortran ATAN2 and Mathematica ArcTan so this is a work in progress. <br>
<br>
The Mathematica® Notebook implements one case out of many possible models as explained in Jones and Stephenson. <br>
<br>
Hopefully, by following the Mathematica code, one can substitute various models as outlined in Jones and Stephenson. </p>
<p style="margin-left:1em;"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<div id=”notes111”></div>
<div id="notes"><strong>Notes</strong></div>
<p style="margin-left:1em;"> </p>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="Contents" -->
<!-- InstanceEndEditable -->
<div id="siteInfo">
Credits: Tower AdobeStock 92633058. Banner AdobeStock 108624876
<br><a href="http://www.silicondsp.com"><img src="../sd-logo-tm_sm.gif" width="67" height="69" alt=""/>About </a> | <a href="../Contact.html">Contact</a> | ©1995-2017<em>Silicon DSP Corporation</em>, All Rights Reserved</div>
</div>
<!--end pagecell1-->
<br>
<script type="text/javascript">
<!--
var menuitem1 = new menu(7,1,"hidden");
var menuitem2 = new menu(7,2,"hidden");
var menuitem3 = new menu(7,3,"hidden");
var menuitem4 = new menu(7,4,"hidden");
var menuitem5 = new menu(7,5,"hidden");
var menuitem6 = new menu(7,6,"hidden");
var menuitem7 = new menu(7,7,"hidden");
// -->
</script>
</body>
<!-- InstanceEnd --></html>