Skip to content

Commit 256daf8

Browse files
Mark JessopMark Jessop
authored andcommitted
Updates to skewt functionality and info tab
1 parent 0c21880 commit 256daf8

File tree

3 files changed

+29
-26
lines changed

3 files changed

+29
-26
lines changed

css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ body {
153153
position: absolute;
154154
display: block;
155155
width: 60vw;
156-
max-width: 483px;
156+
max-width: 300px;
157157
left: 50%;
158158
top: 50%;
159159
-ms-transform: translate(-50%, -50%);

index.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@
4949
<path style="fill:#ffffff;" d="M 18.28125,5 C 17.665689,5.1577701 18.03897,6.072102 17.9375,6.6048171 17.961629,7.7933649 17.891319,9.0210305 17.96875,10.1875 18.260664,10.655295 18.988694,10.16755 19.495121,10.179003 19.915569,10.180314 20.482932,9.9817615 20.218593,9.5070668 19.685242,8.0689805 19.166647,6.5372411 18.625,5.15625 18.528924,5.0654291 18.420762,5.0014609 18.28125,5 z M 28.15625,6.78125 C 27.636383,7.0532274 27.291342,7.7650855 26.831767,8.2022559 26.183602,9.0036626 25.432231,9.7753304 24.84375,10.59375 24.760617,11.249334 25.657959,11.271078 26.078986,11.644576 26.390422,11.953835 26.933703,11.952146 27.000157,11.538317 27.50744,10.067568 28.117357,8.594139 28.5625,7.125 28.492656,6.9017107 28.410263,6.7690543 28.15625,6.78125 z M 9.5,10 C 9.0954231,10.135594 9.2373811,10.695886 9.5795967,10.908518 10.537018,12.015516 11.460558,13.256267 12.4375,14.28125 13.029751,14.410245 13.239648,13.580555 13.666521,13.22967 13.9948,13.00156 14.131018,12.482443 13.78125,12.375 12.489706,11.554805 11.012447,10.783392 9.71875,10 9.6458333,10 9.5729167,10 9.5,10 z M 20.84375,11.84375 C 18.371908,11.824599 15.919598,13.01633 14.4375,15 11.081301,15.152911 7.9058815,17.160924 6.28125,20.09375 2.2666586,20.646663 -0.69921244,24.862902 0.11714748,28.826804 0.69396943,32.528614 4.3500351,35.295394 8.0531848,35 13.498142,34.979277 18.945738,35.041925 24.389003,34.967703 28.012052,34.706771 30.775569,30.845122 29.836019,27.330847 29.833738,25.300645 26.765497,24.336816 28.355407,22.48894 29.815113,18.665861 27.745092,13.988203 23.952748,12.472903 22.972942,12.055889 21.908328,11.842683 20.84375,11.84375 z M 20.21875,13.59375 C 23.527165,13.23952 26.784739,15.868299 27.030581,19.205159 27.115191,20.410269 26.970056,22.322167 26.040039,22.926528 23.85825,22.779121 24.34015,19.916014 22.792045,18.711734 21.278161,16.832506 19.06924,15.524713 16.6875,15.125 17.664583,14.25896 18.917452,13.711132 20.21875,13.59375 z M 34.53125,14.5 C 32.976676,14.79175 31.359523,14.999412 29.84375,15.34375 29.432201,15.70465 29.988892,16.309044 30.057328,16.768486 30.153946,17.218356 30.409976,17.817605 30.892161,17.453583 32.226329,16.650798 33.669292,15.884461 34.9375,15.0625 35.138066,14.780605 34.838029,14.456276 34.53125,14.5 z M 15,16.75 C 18.527258,16.691328 21.880457,19.184293 22.875,22.5625 21.79535,22.747412 19.681154,23.400321 19.66679,24.380589 20.173956,24.71003 20.627331,25.845369 21.195407,25.029384 23.413999,23.416094 26.91018,24.431242 27.896354,26.999192 29.087621,29.561636 27.239462,32.866375 24.435283,33.198105 21.16923,33.314717 17.892696,33.218673 14.62245,33.25 11.957151,33.213512 9.2843705,33.327734 6.6243627,33.183689 3.2643734,32.772467 0.9055326,29.012617 2.003206,25.808244 2.6850371,23.482227 4.9843514,21.775323 7.40625,21.78125 8.6597695,18.794322 11.749593,16.71468 15,16.75 z M 30.46875,22.1875 C 30.056841,22.438736 30.028318,23.215643 29.779714,23.682554 29.505486,24.023058 29.684998,24.517691 30.15025,24.501295 31.642521,24.753547 33.129447,25.065901 34.625,25.28125 35.096754,25.222871 35.037983,24.560567 34.590363,24.47021 33.258254,23.721082 31.923603,22.888061 30.59375,22.1875 30.552083,22.1875 30.510417,22.1875 30.46875,22.1875 z"></path>
5050
</svg>
5151
</li>
52-
<li class="skewt" style="display:none">
53-
<svg width="35" height="40" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" version="1.1" version="1.1">
54-
<path style="fill:#ffffff" d="M64 400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32C49.67 32 64 46.33 64 64V400zM342.6 278.6C330.1 291.1 309.9 291.1 297.4 278.6L240 221.3L150.6 310.6C138.1 323.1 117.9 323.1 105.4 310.6C92.88 298.1 92.88 277.9 105.4 265.4L217.4 153.4C229.9 140.9 250.1 140.9 262.6 153.4L320 210.7L425.4 105.4C437.9 92.88 458.1 92.88 470.6 105.4C483.1 117.9 483.1 138.1 470.6 150.6L342.6 278.6z"></path>
55-
</svg>
52+
<li class="skewt">
53+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="-0.5 -0.5 221 213"><defs/><g><path d="M 172 206 L 212 166" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 52 206 L 212 46" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 132 206 L 212 126" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 206 L 212 6" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 166 L 172 6" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 126 L 132 6" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 86 L 92 6" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 92 206 L 212 86" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 206 L 12 6" fill="none" stroke="#ffffff" stroke-width="12" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 92 206 Q 132 186 103.5 169 Q 75 152 83.5 144 Q 92 136 77 96 Q 62 56 92 6" fill="none" stroke="#ffffff" stroke-width="10" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 142 206 Q 133 177 125.5 164.5 Q 118 152 118 139 Q 118 126 113.5 111 Q 109 96 130.5 76 Q 152 56 152 6" fill="none" stroke="#ffffff" stroke-width="10" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 6 206 L 214 206" fill="none" stroke="#ffffff" stroke-width="12" stroke-miterlimit="10" pointer-events="stroke"/></g></svg>
5654
</li>
5755
<li class="about last"><i class="icon-question"></i></li>
5856
</ol>
@@ -79,11 +77,14 @@ <h2>Statistics</h2>
7977
<div class="slimContainer">
8078
<h2><i class="icon-question rfloat"></i>Welcome</h2>
8179
<hr/>
82-
<div id="motda">
80+
<div id="motda">
81+
<h4>User Guide</h4>
82+
A User Guide for the tracker is <a href="https://github.com/projecthorus/sondehub-tracker/wiki/SondeHub-Tracker-User-Guide" target="_blank" rel="noopener">available here.</a>
83+
8384
<h4>Radiosondes?</h4>
8485
To learn more check out our
8586
<a href="https://www.youtube.com/watch?v=YBy-bXEWZeM" target="_blank" rel="noopener">LCA video</a>.
86-
87+
8788
<h4>How do I receive?</h4>
8889
Set up a receiver station using
8990
<a href="https://github.com/projecthorus/radiosonde_auto_rx/wiki" target="_blank" rel="noopener">auto_rx</a> or <a href="https://github.com/dl9rdz/rdz_ttgo_sonde" target="_blank" rel="noopener">rdzTTGOsonde</a>.
@@ -103,17 +104,10 @@ <h4>SondeHub Status Pages</h4>
103104
You can find the status of the SondeHub Database on the <a href="https://sondehub.org/go/status" target="_blank" rel="noopener">SondeHub Dashboard</a>.<br/>
104105
You can view outages of the SondeHub Database at <a href="https://sondehub.statuspage.io/" target="_blank" rel="noopener">SondeHub Status</a>.
105106

106-
<h4>Info</h4>
107-
This site uses data from the <a href="https://github.com/projecthorus/sondehub-infra/wiki" target="_blank" rel="noopener">SondeHub v2</a> database, which will remove the radiosonde
108-
load from the Habitat tracking database.
109-
110107
<h4>Chase Cars</h4>
111108
Chase Cars can show up on the map using this tracker's chase-car features (look for the car icon at top-right)
112109
or upload their position from <a href="https://github.com/projecthorus/chasemapper" target="_blank" rel="noopener">Chasemapper</a> or <a href="https://github.com/dl9rdz/rdz_ttgo_sonde" target="_blank" rel="noopener">rdzTTGOsonde</a>.
113110

114-
<h4>Predictions</h4>
115-
You can predict the flight paths of future sondes using the <a href="https://predict.sondehub.org/" target="_blank" rel="noopener">SondeHub Predictor</a>.
116-
117111
</div>
118112
<h2>Contribute</h2>
119113
<hr/>
@@ -229,14 +223,12 @@ <h4>Overlays</h4>
229223
</div>
230224
<div id="skewtbox" style="display: none" class="flatpage">
231225
<div class="slimContainer" style="width:400px!important">
232-
<h2>SkewT Diagram
233-
<svg width="35" height="40" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" version="1.1" class="rfloat">
234-
<path style="fill:#666666" d="M64 400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32C49.67 32 64 46.33 64 64V400zM342.6 278.6C330.1 291.1 309.9 291.1 297.4 278.6L240 221.3L150.6 310.6C138.1 323.1 117.9 323.1 105.4 310.6C92.88 298.1 92.88 277.9 105.4 265.4L217.4 153.4C229.9 140.9 250.1 140.9 262.6 153.4L320 210.7L425.4 105.4C437.9 92.88 458.1 92.88 470.6 105.4C483.1 117.9 483.1 138.1 470.6 150.6L342.6 278.6z"></path>
235-
</svg>
226+
<h2>SkewT Plot
227+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="35" height="40" viewBox="-0.5 -0.5 221 213" class="rfloat"><defs/><g><path d="M 172 206 L 212 166" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 52 206 L 212 46" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 132 206 L 212 126" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 206 L 212 6" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 166 L 172 6" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 126 L 132 6" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 86 L 92 6" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 92 206 L 212 86" fill="none" stroke="#e6e6e6" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 12 206 L 12 6" fill="none" stroke="#000000" stroke-width="12" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 92 206 Q 132 186 103.5 169 Q 75 152 83.5 144 Q 92 136 77 96 Q 62 56 92 6" fill="none" stroke="#000000" stroke-width="10" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 142 206 Q 133 177 125.5 164.5 Q 118 152 118 139 Q 118 126 113.5 111 Q 109 96 130.5 76 Q 152 56 152 6" fill="none" stroke="#000000" stroke-width="10" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 6 206 L 214 206" fill="none" stroke="#000000" stroke-width="12" stroke-miterlimit="10" pointer-events="stroke"/></g></svg>
236228
</h2>
237229
<hr>
238230
<div style="display:flex;justify-content:center;">
239-
<span style="display:none;" id="skewtSerial"></span>
231+
<span id="skewtSerial">Select a Radiosonde from the list and click 'SkewT' to plot. Note that not all radiosonde types are supported.</span>
240232
</div>
241233
<div style="display:flex;justify-content:center;">
242234
<img style="width:90px;height:30px;display:none;" src="img/hab-spinner.gif" id="skewtLoading" />
@@ -247,6 +239,14 @@ <h2>SkewT Diagram
247239
<button style="display:none;margin:0px 5px;" id="resetSkewt" onclick="skewTrefresh()">Reset Plot</button>
248240
<button style="display:none;margin:0px 5px;" id="deleteSkewt" onclick="skewTdelete()">Delete Plot</button>
249241
</div>
242+
<div style="display:flex;justify-content:center;">
243+
<span id="skewtErrors"></span>
244+
</div>
245+
<div style="display:flex;justify-content:center;">
246+
<span id="skewtHelp">For assistance interpreting SkewT plots, try <a href="http://flsc.org/portals/12/PDF/Read_Skew_T.pdf" target="_blank" rel="noopener">this guide.</a></span>
247+
</div>
248+
249+
250250
</div>
251251
</div>
252252
<div id="weatherbox" style="display: none" class="flatpage">

js/tracker.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,9 +2406,10 @@ function skewTdelete () {
24062406
skewt.clear();
24072407
$('#resetSkewt').hide();
24082408
$('#deleteSkewt').hide();
2409-
$("#skewtSerial").hide();
2409+
$("#skewtSerial").text("Select a Radiosonde from the list and click 'SkewT' to plot. Note that not all radiosonde types are supported.");
24102410
box.hide();
2411-
$('.skewt').hide();
2411+
//$('.skewt').hide();
2412+
$("#skewt-plot").empty();
24122413
checkSize();
24132414
}
24142415

@@ -2447,6 +2448,7 @@ function skewTdraw (callsign) {
24472448
$('#resetSkewt').hide();
24482449
$('#deleteSkewt').hide();
24492450
$("#skewt-plot").empty();
2451+
$("#skewtErrors").text("");
24502452

24512453
// Loading gif
24522454
$("#skewtLoading").show();
@@ -2476,19 +2478,19 @@ function skewTdraw (callsign) {
24762478
}
24772479
}
24782480
if(data.length < 50){
2479-
alert("Insufficient data for Skew-T plot.");
2481+
$("#skewtErrors").text("Insufficient data for Skew-T plot (<50 points).");
24802482
return;
24812483
}
24822484

24832485
// Check that we have ascent data
24842486
if (burst_idx <= 0){
2485-
alert("Insufficient data for Skew-T plot (Only descent data available).");
2487+
$("#skewtErrors").text("Insufficient data for Skew-T plot (Only descent data available).");
24862488
return;
24872489
}
24882490

24892491
// Check that the first datapoint is at a reasonable altitude.
24902492
if (data[0].alt > 15000){
2491-
alert("Insufficient data for Skew-T plot (Only data > 15km available)");
2493+
$("#skewtErrors").text("Insufficient data for Skew-T plot (Only data > 15km available)");
24922494
return;
24932495
}
24942496

@@ -2563,7 +2565,7 @@ function skewTdraw (callsign) {
25632565
_pressure = getPressure(_new_pos.alt);
25642566
}
25652567

2566-
if(_pressure < 100.0){
2568+
if(_pressure < 50.0){
25672569
break;
25682570
}
25692571

@@ -2597,7 +2599,8 @@ function skewTdraw (callsign) {
25972599
catch(err) {}
25982600

25992601
} else {
2600-
alert("Insufficient Data available, or no Temperature/Humidity data available to generate Skew-T plot.");
2602+
//alert("Insufficient Data available, or no Temperature/Humidity data available to generate Skew-T plot.");
2603+
$("#skewtErrors").text("Insufficient Data available, or no Temperature/Humidity data available to generate Skew-T plot.");
26012604
};
26022605
}
26032606
};

0 commit comments

Comments
 (0)