File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1930,6 +1930,8 @@ function skewTdraw (callsign) {
19301930 burst_idx = i ;
19311931 }
19321932 }
1933+
1934+
19331935 if ( data . length < 50 ) {
19341936 $ ( "#skewtErrors" ) . text ( "Insufficient data for Skew-T plot (<50 points)." ) ;
19351937 $ ( "#skewtErrors" ) . show ( ) ;
@@ -1976,6 +1978,7 @@ function skewTdraw (callsign) {
19761978 idx = idx + 1 ;
19771979 continue ;
19781980 }
1981+
19791982
19801983 _temp = null ;
19811984 _dewp = - 1000.0 ;
@@ -1994,6 +1997,7 @@ function skewTdraw (callsign) {
19941997 idx = idx + 1 ;
19951998 continue ;
19961999 }
2000+
19972001
19982002 // Try and extract RH datapoint
19992003 if ( entry . hasOwnProperty ( 'humidity' ) ) {
@@ -2010,6 +2014,12 @@ function skewTdraw (callsign) {
20102014 _old_pos = { 'lat' : old_entry . lat , 'lon' : old_entry . lon , 'alt' : old_entry . alt } ;
20112015 _new_pos = { 'lat' : entry . lat , 'lon' : entry . lon , 'alt' : entry . alt } ;
20122016
2017+ // Skip over negative altitudes, the skewT library really doesn't like these.
2018+ if ( _new_pos . alt < 10 ) {
2019+ idx = idx + 1 ;
2020+ continue ;
2021+ }
2022+
20132023 _pos_info = calculate_lookangles ( _old_pos , _new_pos ) ;
20142024 _wdir = ( _pos_info [ 'azimuth' ] + 180.0 ) % 360.0 ;
20152025 _wspd = _pos_info [ 'great_circle_distance' ] / _time_delta ;
@@ -2034,6 +2044,7 @@ function skewTdraw (callsign) {
20342044
20352045 skewtdata = skewt_data ;
20362046
2047+
20372048 $ ( "#skewtLoading" ) . hide ( ) ;
20382049
20392050 if ( skewtdata . length > 0 ) {
You can’t perform that action at this time.
0 commit comments