var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,25.90000000],[1787954580000,25.92000000],[1787954880000,25.96000000],[1787955180000,25.82000000],[1787955480000,25.80000000],[1787955780000,25.78000000],[1787956080000,25.64000000],[1787956380000,25.50000000],[1787956680000,25.34000000],[1787956980000,25.24000000],[1787957280000,25.12000000],[1787957580000,25.16000000],[1787957880000,25.16000000],[1787958180000,25.08000000],[1787958480000,25.08000000],[1787958780000,25.14000000],[1787959080000,25.08000000],[1787959380000,25.04000000],[1787959680000,24.96000000],[1787959980000,24.96000000],[1787960280000,24.94000000],[1787960580000,24.76000000],[1787960880000,24.60000000],[1787961180000,24.48000000],[1787961480000,24.40000000],[1787961780000,24.30000000],[1787962080000,24.24000000],[1787962380000,24.22000000],[1787962680000,24.12000000],[1787962980000,23.84000000],[1787963280000,23.92000000],[1787963580000,24.12000000],[1787963880000,24.08000000],[1787964180000,23.84000000],[1787964480000,23.60000000],[1787964780000,23.46000000],[1787965080000,23.72000000],[1787965380000,24.02000000],[1787965680000,24.14000000],[1787965980000,23.94000000],[1787966280000,23.54000000],[1787966580000,23.30000000],[1787966880000,23.08000000],[1787967180000,23.18000000],[1787967480000,23.30000000],[1787967780000,23.18000000],[1787968080000,23.10000000],[1787968380000,23.16000000],[1787968680000,23.20000000],[1787968980000,23.18000000],[1787969280000,22.98000000],[1787969580000,22.82000000],[1787969880000,23.22000000],[1787970180000,23.78000000],[1787970480000,23.84000000],[1787970780000,23.78000000],[1787971080000,23.50000000],[1787971380000,23.16000000],[1787971680000,22.88000000],[1787971980000,22.64000000],[1787972280000,22.56000000],[1787972580000,22.42000000],[1787972880000,22.12000000],[1787973180000,21.82000000],[1787973480000,21.60000000],[1787973780000,21.40000000],[1787974080000,21.26000000],[1787974380000,21.20000000],[1787974680000,21.16000000],[1787974980000,21.06000000],[1787975280000,20.90000000],[1787975580000,20.78000000],[1787975880000,20.68000000],[1787976180000,20.60000000],[1787976480000,20.70000000],[1787976780000,20.68000000],[1787977080000,20.72000000],[1787977380000,20.70000000],[1787977680000,20.68000000],[1787977980000,20.60000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.5],[1787954580000,6.4],[1787954880000,6.5],[1787955180000,6.5],[1787955480000,6.6],[1787955780000,6.6],[1787956080000,6.7],[1787956380000,6.8],[1787956680000,6.8],[1787956980000,6.8],[1787957280000,6.8],[1787957580000,6.8],[1787957880000,6.8],[1787958180000,6.8],[1787958480000,6.7],[1787958780000,6.8],[1787959080000,6.8],[1787959380000,6.8],[1787959680000,6.9],[1787959980000,6.9],[1787960280000,7.1],[1787960580000,7.2],[1787960880000,7.4],[1787961180000,7.3],[1787961480000,7.5],[1787961780000,7.7],[1787962080000,7.8],[1787962380000,8],[1787962680000,8.3],[1787962980000,8.4],[1787963280000,8],[1787963580000,8.1],[1787963880000,8.2],[1787964180000,8.5],[1787964480000,8.7],[1787964780000,8.8],[1787965080000,8.9],[1787965380000,8.9],[1787965680000,9.1],[1787965980000,9.2],[1787966280000,9.2],[1787966580000,9.4],[1787966880000,9.4],[1787967180000,9.6],[1787967480000,9.8],[1787967780000,10.1],[1787968080000,10.1],[1787968380000,10.1],[1787968680000,10.1],[1787968980000,10.2],[1787969280000,10.5],[1787969580000,11],[1787969880000,11.4],[1787970180000,11.2],[1787970480000,10.4],[1787970780000,9.7],[1787971080000,9.7],[1787971380000,11.7],[1787971680000,12.9],[1787971980000,14.2],[1787972280000,15.3],[1787972580000,16.7],[1787972880000,17.1],[1787973180000,17],[1787973480000,16.9],[1787973780000,16.7],[1787974080000,16.5],[1787974380000,16.3],[1787974680000,16],[1787974980000,15.8],[1787975280000,15.7],[1787975580000,15.8],[1787975880000,15.8],[1787976180000,15.7],[1787976480000,15.8],[1787976780000,15.7],[1787977080000,15.7],[1787977380000,15.6],[1787977680000,15.5],[1787977980000,15.3],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { var dataset = [{label: "5 cm nad povrchom (\u00b0C)", data: [[1787954400000,24.26666667],[1787954580000,24.30000000],[1787954880000,24.22000000],[1787955180000,24.16000000],[1787955480000,24.10000000],[1787955780000,24.12000000],[1787956080000,23.92000000],[1787956380000,23.86000000],[1787956680000,23.68000000],[1787956980000,23.56000000],[1787957280000,23.38000000],[1787957580000,23.42000000],[1787957880000,23.38000000],[1787958180000,23.22000000],[1787958480000,23.16000000],[1787958780000,23.22000000],[1787959080000,23.18000000],[1787959380000,23.16000000],[1787959680000,23.14000000],[1787959980000,23.26000000],[1787960280000,23.00000000],[1787960580000,22.82000000],[1787960880000,22.58000000],[1787961180000,22.44000000],[1787961480000,22.38000000],[1787961780000,22.36000000],[1787962080000,22.22000000],[1787962380000,22.08000000],[1787962680000,21.76000000],[1787962980000,21.36000000],[1787963280000,21.86000000],[1787963580000,22.16000000],[1787963880000,21.98000000],[1787964180000,21.80000000],[1787964480000,21.42000000],[1787964780000,21.54000000],[1787965080000,22.02000000],[1787965380000,22.38000000],[1787965680000,22.40000000],[1787965980000,22.16000000],[1787966280000,21.86000000],[1787966580000,21.56000000],[1787966880000,21.44000000],[1787967180000,21.70000000],[1787967480000,21.64000000],[1787967780000,21.30000000],[1787968080000,21.44000000],[1787968380000,21.68000000],[1787968680000,21.54000000],[1787968980000,21.26000000],[1787969280000,20.76000000],[1787969580000,20.58000000],[1787969880000,21.74000000],[1787970180000,22.40000000],[1787970480000,22.46000000],[1787970780000,22.44000000],[1787971080000,22.28000000],[1787971380000,22.08000000],[1787971680000,21.84000000],[1787971980000,21.74000000],[1787972280000,21.70000000],[1787972580000,21.60000000],[1787972880000,21.42000000],[1787973180000,21.20000000],[1787973480000,20.98000000],[1787973780000,20.80000000],[1787974080000,20.62000000],[1787974380000,20.70000000],[1787974680000,20.74000000],[1787974980000,20.64000000],[1787975280000,20.38000000],[1787975580000,20.12000000],[1787975880000,20.00000000],[1787976180000,20.08000000],[1787976480000,20.16000000],[1787976780000,20.22000000],[1787977080000,20.30000000],[1787977380000,20.30000000],[1787977680000,20.30000000],[1787977980000,20.30000000],], color: "#f39c12"}]; var options = { points: { show: false }, lines: { show: true, lineWidth: 2, fill: false }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser' }, grid: { hoverable: true, clickable: true, borderWidth: 0 }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-ground-temperature-legend' } }; graphs['#chart-ground-temperature'] = $.plot('#chart-ground-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1787954400000,29.00000000],[1787954580000,28.84000000],[1787954880000,28.96000000],[1787955180000,29.16000000],[1787955480000,29.38000000],[1787955780000,29.34000000],[1787956080000,29.94000000],[1787956380000,30.22000000],[1787956680000,30.58000000],[1787956980000,30.80000000],[1787957280000,31.08000000],[1787957580000,30.94000000],[1787957880000,31.02000000],[1787958180000,31.10000000],[1787958480000,30.98000000],[1787958780000,30.98000000],[1787959080000,31.08000000],[1787959380000,31.26000000],[1787959680000,31.46000000],[1787959980000,31.52000000],[1787960280000,31.98000000],[1787960580000,32.56000000],[1787960880000,33.32000000],[1787961180000,33.34000000],[1787961480000,33.90000000],[1787961780000,34.58000000],[1787962080000,35.12000000],[1787962380000,35.60000000],[1787962680000,36.50000000],[1787962980000,37.42000000],[1787963280000,36.28000000],[1787963580000,35.94000000],[1787963880000,36.46000000],[1787964180000,37.64000000],[1787964480000,38.84000000],[1787964780000,39.44000000],[1787965080000,39.04000000],[1787965380000,38.34000000],[1787965680000,38.44000000],[1787965980000,39.20000000],[1787966280000,40.08000000],[1787966580000,41.26000000],[1787966880000,42.02000000],[1787967180000,42.22000000],[1787967480000,42.40000000],[1787967780000,43.66000000],[1787968080000,43.88000000],[1787968380000,43.74000000],[1787968680000,43.72000000],[1787968980000,43.82000000],[1787969280000,45.42000000],[1787969580000,47.48000000],[1787969880000,47.34000000],[1787970180000,45.38000000],[1787970480000,42.86000000],[1787970780000,40.88000000],[1787971080000,41.78000000],[1787971380000,48.70000000],[1787971680000,53.60000000],[1787971980000,58.92000000],[1787972280000,63.82000000],[1787972580000,70.16000000],[1787972880000,73.16000000],[1787973180000,74.40000000],[1787973480000,74.64000000],[1787973780000,74.82000000],[1787974080000,74.32000000],[1787974380000,73.74000000],[1787974680000,72.50000000],[1787974980000,72.16000000],[1787975280000,72.50000000],[1787975580000,73.08000000],[1787975880000,73.66000000],[1787976180000,73.74000000],[1787976480000,73.66000000],[1787976780000,73.44000000],[1787977080000,73.20000000],[1787977380000,72.50000000],[1787977680000,72.28000000],[1787977980000,71.93333333],], color: '#ff9000' } ]; var options = { xaxes: [{ axisLabel: 'humidity', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1%' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-humidity-legend' } }; graphs['#chart-humidity'] = $.plot('#chart-humidity', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Rýchlosť vetra (km/h)', data: [[1787954400000,18.240000012],[1787954580000,19.872],[1787954880000,18.792],[1787955180000,19.944],[1787955480000,20.088],[1787955780000,17.496],[1787956080000,16.2],[1787956380000,16.704],[1787956680000,16.992],[1787956980000,15.336],[1787957280000,15.336],[1787957580000,15.048],[1787957880000,13.464],[1787958180000,13.68],[1787958480000,13.608],[1787958780000,13.752],[1787959080000,12.816],[1787959380000,14.544],[1787959680000,14.688],[1787959980000,14.832],[1787960280000,11.88],[1787960580000,8.424],[1787960880000,10.296],[1787961180000,10.368],[1787961480000,10.872],[1787961780000,10.8],[1787962080000,8.856],[1787962380000,4.536],[1787962680000,3.816],[1787962980000,5.544],[1787963280000,11.664],[1787963580000,13.824],[1787963880000,10.656],[1787964180000,6.624],[1787964480000,10.008],[1787964780000,13.32],[1787965080000,16.416],[1787965380000,17.928],[1787965680000,16.92],[1787965980000,11.952],[1787966280000,11.304],[1787966580000,9.36],[1787966880000,9],[1787967180000,8.712],[1787967480000,4.32],[1787967780000,4.392],[1787968080000,7.776],[1787968380000,9],[1787968680000,3.096],[1787968980000,3.168],[1787969280000,6.336],[1787969580000,8.136],[1787969880000,11.664],[1787970180000,11.592],[1787970480000,12.24],[1787970780000,15.048],[1787971080000,15.552],[1787971380000,14.328],[1787971680000,13.536],[1787971980000,14.112],[1787972280000,13.536],[1787972580000,14.256],[1787972880000,15.768],[1787973180000,20.16],[1787973480000,20.808],[1787973780000,13.608],[1787974080000,18.072],[1787974380000,11.52],[1787974680000,17.568],[1787974980000,18.648],[1787975280000,13.824],[1787975580000,13.104],[1787975880000,11.808],[1787976180000,13.608],[1787976480000,15.984],[1787976780000,14.112],[1787977080000,12.024],[1787977380000,14.76],[1787977680000,14.256],[1787977980000,15.48],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,25.679999988],[1787954580000,25.416],[1787954880000,24.12],[1787955180000,26.424],[1787955480000,26.208],[1787955780000,23.328],[1787956080000,20.304],[1787956380000,21.168],[1787956680000,21.312],[1787956980000,20.088],[1787957280000,20.232],[1787957580000,19.8],[1787957880000,18.144],[1787958180000,18.288],[1787958480000,17.424],[1787958780000,17.784],[1787959080000,17.28],[1787959380000,19.656],[1787959680000,19.224],[1787959980000,19.584],[1787960280000,16.272],[1787960580000,13.32],[1787960880000,14.184],[1787961180000,13.68],[1787961480000,14.184],[1787961780000,14.328],[1787962080000,12.168],[1787962380000,7.776],[1787962680000,6.48],[1787962980000,8.712],[1787963280000,15.984],[1787963580000,17.712],[1787963880000,13.392],[1787964180000,9.504],[1787964480000,12.456],[1787964780000,16.632],[1787965080000,21.528],[1787965380000,22.32],[1787965680000,20.304],[1787965980000,15.84],[1787966280000,14.328],[1787966580000,11.808],[1787966880000,10.872],[1787967180000,12.24],[1787967480000,6.984],[1787967780000,6.696],[1787968080000,11.016],[1787968380000,12.672],[1787968680000,5.4],[1787968980000,5.112],[1787969280000,9.216],[1787969580000,14.616],[1787969880000,16.056],[1787970180000,17.28],[1787970480000,20.376],[1787970780000,26.28],[1787971080000,27.576],[1787971380000,25.128],[1787971680000,25.488],[1787971980000,25.128],[1787972280000,24.696],[1787972580000,27.936],[1787972880000,24.48],[1787973180000,35.424],[1787973480000,34.92],[1787973780000,25.272],[1787974080000,28.8],[1787974380000,22.752],[1787974680000,29.16],[1787974980000,27.648],[1787975280000,25.128],[1787975580000,23.76],[1787975880000,19.44],[1787976180000,24.552],[1787976480000,22.752],[1787976780000,22.68],[1787977080000,19.44],[1787977380000,22.176],[1787977680000,23.328],[1787977980000,21.96],], color: '#EF9856', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1km/h' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-legend' } }; graphs['#chart-wind'] = $.plot('#chart-wind', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Smer vetra', data: [[1787954400000,108.93333333],[1787954580000,106.40000000],[1787954880000,105.06000000],[1787955180000,103.10000000],[1787955480000,105.56000000],[1787955780000,107.36000000],[1787956080000,104.80000000],[1787956380000,105.42000000],[1787956680000,103.12000000],[1787956980000,108.38000000],[1787957280000,110.66000000],[1787957580000,114.96000000],[1787957880000,119.52000000],[1787958180000,116.52000000],[1787958480000,115.84000000],[1787958780000,120.82000000],[1787959080000,112.20000000],[1787959380000,115.32000000],[1787959680000,114.74000000],[1787959980000,123.76000000],[1787960280000,123.28000000],[1787960580000,130.16000000],[1787960880000,121.34000000],[1787961180000,119.22000000],[1787961480000,112.54000000],[1787961780000,113.66000000],[1787962080000,120.82000000],[1787962380000,181.92000000],[1787962680000,162.54000000],[1787962980000,136.64000000],[1787963280000,127.92000000],[1787963580000,124.24000000],[1787963880000,121.24000000],[1787964180000,134.42000000],[1787964480000,111.88000000],[1787964780000,109.98000000],[1787965080000,115.90000000],[1787965380000,121.46000000],[1787965680000,121.94000000],[1787965980000,108.14000000],[1787966280000,109.46000000],[1787966580000,110.42000000],[1787966880000,115.18000000],[1787967180000,122.48000000],[1787967480000,146.32000000],[1787967780000,137.70000000],[1787968080000,130.04000000],[1787968380000,132.72000000],[1787968680000,150.88000000],[1787968980000,169.30000000],[1787969280000,178.56000000],[1787969580000,179.34000000],[1787969880000,204.96000000],[1787970180000,235.36000000],[1787970480000,254.16000000],[1787970780000,271.74000000],[1787971080000,279.14000000],[1787971380000,287.24000000],[1787971680000,291.08000000],[1787971980000,282.44000000],[1787972280000,281.04000000],[1787972580000,284.74000000],[1787972880000,286.50000000],[1787973180000,288.62000000],[1787973480000,287.28000000],[1787973780000,288.58000000],[1787974080000,291.86000000],[1787974380000,294.08000000],[1787974680000,295.14000000],[1787974980000,302.06000000],[1787975280000,299.68000000],[1787975580000,295.14000000],[1787975880000,290.02000000],[1787976180000,294.44000000],[1787976480000,301.14000000],[1787976780000,292.54000000],[1787977080000,287.02000000],[1787977380000,299.86000000],[1787977680000,301.84000000],[1787977980000,305.53333333],], color: '#002f80', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind_direction', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, yaxis: { min: 0, max: 360, ticks: [[0, 'S'], [90, 'V'], [180, 'J'], [270, 'Z'], [360, 'S']] }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: function(label, xval, yval, flotItem) { dir = meteo_wind_direction_name(yval); format_date = moment(xval).format('DD.MM., hh:mm') return format_date+' - '+dir; } }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-direction-legend' } }; graphs['#chart-wind-direction'] = $.plot('#chart-wind-direction', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[1787954400000,0],[1787954580000,0],[1787954880000,0],[1787955180000,0],[1787955480000,0],[1787955780000,0],[1787956080000,0],[1787956380000,0],[1787956680000,0],[1787956980000,0],[1787957280000,0],[1787957580000,0],[1787957880000,0],[1787958180000,0],[1787958480000,0],[1787958780000,0],[1787959080000,0],[1787959380000,0],[1787959680000,0],[1787959980000,0],[1787960280000,0],[1787960580000,0],[1787960880000,0],[1787961180000,0],[1787961480000,0],[1787961780000,0],[1787962080000,0],[1787962380000,0],[1787962680000,0],[1787962980000,0],[1787963280000,0],[1787963580000,0],[1787963880000,0],[1787964180000,0],[1787964480000,0],[1787964780000,0],[1787965080000,0],[1787965380000,0],[1787965680000,0],[1787965980000,0],[1787966280000,0],[1787966580000,0],[1787966880000,0],[1787967180000,0],[1787967480000,0],[1787967780000,0],[1787968080000,0],[1787968380000,0],[1787968680000,0],[1787968980000,0],[1787969280000,0],[1787969580000,0],[1787969880000,0],[1787970180000,0],[1787970480000,0],[1787970780000,0],[1787971080000,0],[1787971380000,0],[1787971680000,0],[1787971980000,0],[1787972280000,0],[1787972580000,0],[1787972880000,0],[1787973180000,0],[1787973480000,0],[1787973780000,0],[1787974080000,0],[1787974380000,0],[1787974680000,0],[1787974980000,0],[1787975280000,0],[1787975580000,0],[1787975880000,0],[1787976180000,0],[1787976480000,0],[1787976780000,0],[1787977080000,0],[1787977380000,0],[1787977680000,0],[1787977980000,0],], color: '#008fbf' } ]; var options = { xaxes: [{ axisLabel: 'rain', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.3mm' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-rain-legend' } }; graphs['#chart-rain'] = $.plot('#chart-rain', dataset, options); }); $('.modal').on('hide.bs.modal', function() { var memory = $(this).html(); $(this).html(memory); }); function meteo_wind_direction_name(wind_direction) { if (wind_direction >= 0.00 && wind_direction <= 11.25) { ret = 'S'; } else if (wind_direction > 11.25 && wind_direction <= 33.75) { ret = 'SSV'; } else if (wind_direction > 33.75 && wind_direction <= 56.25) { ret = 'SV'; } else if (wind_direction > 56.25 && wind_direction <= 78.75) { // 67.5 ret = 'VSV'; } else if (wind_direction > 78.75 && wind_direction <= 101.25) { // 90 ret = 'V'; } else if (wind_direction > 101.25 && wind_direction <= 123.75) { //112.5 ret = 'VJV'; } else if (wind_direction > 123.75 && wind_direction <= 146.25) { // 135 ret = 'JV'; } else if (wind_direction > 146.25 && wind_direction <= 168.75) { // 157.5 ret = 'JJV'; } else if (wind_direction > 168.75 && wind_direction <= 191.25) { // 180 ret = 'J'; } else if (wind_direction > 191.25 && wind_direction <= 213.75) { // 202.5 ret = 'JJZ'; } else if (wind_direction > 213.75 && wind_direction <= 236.25) { // 225 ret = 'JZ'; } else if (wind_direction > 236.25 && wind_direction <= 258.75) { // 247.5 ret = 'ZJZ'; } else if (wind_direction > 258.75 && wind_direction <= 281.25) { // 270 ret = 'Z'; } else if (wind_direction > 281.25 && wind_direction <= 303.75) { // 292.5 ret = 'ZSZ'; } else if (wind_direction > 303.75 && wind_direction <= 326.25) { // 315 ret = 'SZ'; } else if (wind_direction > 326.25 && wind_direction <= 348.75) { // 337.5 ret = 'SSZ'; } else if (wind_direction > 348.75 && wind_direction <= 360.0) { // 337.5 ret = 'S'; } else { return ''; } return ret; }