var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,14.20000000],[1787954580000,14.80000000],[1787954880000,15.48000000],[1787955180000,16.26000000],[1787955480000,16.88000000],[1787955780000,17.14000000],[1787956080000,17.28000000],[1787956380000,17.40000000],[1787956680000,17.40000000],[1787956980000,17.20000000],[1787957280000,17.20000000],[1787957580000,17.20000000],[1787957880000,17.18000000],[1787958180000,17.10000000],[1787958480000,17.10000000],[1787958780000,17.20000000],[1787959080000,17.30000000],[1787959380000,17.36000000],[1787959680000,17.40000000],[1787959980000,17.36000000],[1787960280000,17.30000000],[1787960580000,17.20000000],[1787960880000,17.20000000],[1787961180000,17.06000000],[1787961480000,17.00000000],[1787961780000,16.90000000],[1787962080000,16.74000000],[1787962380000,16.38000000],[1787962680000,16.04000000],[1787962980000,15.72000000],[1787963280000,15.48000000],[1787963580000,15.36000000],[1787963880000,15.20000000],[1787964180000,15.08000000],[1787964480000,14.98000000],[1787964780000,14.90000000],[1787965080000,14.88000000],[1787965380000,14.76000000],[1787965680000,14.70000000],[1787965980000,14.64000000],[1787966280000,14.60000000],[1787966580000,14.56000000],[1787966880000,14.50000000],[1787967180000,14.46000000],[1787967480000,14.40000000],[1787967780000,14.44000000],[1787968080000,14.48000000],[1787968380000,14.46000000],[1787968680000,14.40000000],[1787968980000,14.32000000],[1787969280000,14.30000000],[1787969580000,14.30000000],[1787969880000,14.30000000],[1787970180000,14.30000000],[1787970480000,14.36000000],[1787970780000,14.40000000],[1787971080000,14.42000000],[1787971380000,14.40000000],[1787971680000,14.40000000],[1787971980000,14.46000000],[1787972280000,14.50000000],[1787972580000,14.52000000],[1787972880000,14.74000000],[1787973180000,15.04000000],[1787973480000,15.24000000],[1787973780000,15.30000000],[1787974080000,15.26000000],[1787974380000,15.16000000],[1787974680000,15.10000000],[1787974980000,15.08000000],[1787975280000,15.06000000],[1787975580000,15.02000000],[1787975880000,14.98000000],[1787976180000,14.88000000],[1787976480000,14.80000000],[1787976780000,14.88000000],[1787977080000,14.90000000],[1787977380000,15.00000000],[1787977680000,15.08000000],[1787977980000,15.20000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.5],[1787954580000,7.1],[1787954880000,7.7],[1787955180000,7.9],[1787955480000,8],[1787955780000,8.1],[1787956080000,8.2],[1787956380000,8.1],[1787956680000,7.8],[1787956980000,7.8],[1787957280000,8],[1787957580000,8.1],[1787957880000,8.2],[1787958180000,8.3],[1787958480000,8.3],[1787958780000,8.3],[1787959080000,8.4],[1787959380000,8.4],[1787959680000,8.4],[1787959980000,8.4],[1787960280000,8.4],[1787960580000,8.4],[1787960880000,8.4],[1787961180000,8.4],[1787961480000,8.4],[1787961780000,8.4],[1787962080000,8.5],[1787962380000,8.4],[1787962680000,8.4],[1787962980000,8.6],[1787963280000,8.2],[1787963580000,8.2],[1787963880000,8.4],[1787964180000,8.4],[1787964480000,8.2],[1787964780000,8.3],[1787965080000,8.4],[1787965380000,8.4],[1787965680000,8.3],[1787965980000,8.1],[1787966280000,7.8],[1787966580000,8],[1787966880000,8.1],[1787967180000,8.3],[1787967480000,8.4],[1787967780000,8.2],[1787968080000,8.4],[1787968380000,8.4],[1787968680000,8.6],[1787968980000,8.5],[1787969280000,8.5],[1787969580000,8.5],[1787969880000,8.1],[1787970180000,8.4],[1787970480000,8.5],[1787970780000,8.6],[1787971080000,8.7],[1787971380000,8.8],[1787971680000,8.8],[1787971980000,8.9],[1787972280000,9.1],[1787972580000,8.8],[1787972880000,8.6],[1787973180000,8.6],[1787973480000,8.6],[1787973780000,8.7],[1787974080000,8.7],[1787974380000,8.8],[1787974680000,8.7],[1787974980000,8.6],[1787975280000,8.7],[1787975580000,8.8],[1787975880000,8.9],[1787976180000,9],[1787976480000,8.9],[1787976780000,9.2],[1787977080000,9.2],[1787977380000,9.3],[1787977680000,9.3],[1787977980000,9.4],], 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,13.26666667],[1787954580000,13.84000000],[1787954880000,15.08000000],[1787955180000,16.06000000],[1787955480000,16.50000000],[1787955780000,16.46000000],[1787956080000,16.48000000],[1787956380000,16.64000000],[1787956680000,16.28000000],[1787956980000,16.18000000],[1787957280000,15.96000000],[1787957580000,15.94000000],[1787957880000,15.68000000],[1787958180000,15.96000000],[1787958480000,16.22000000],[1787958780000,16.52000000],[1787959080000,16.62000000],[1787959380000,16.78000000],[1787959680000,16.56000000],[1787959980000,16.14000000],[1787960280000,15.76000000],[1787960580000,15.86000000],[1787960880000,16.02000000],[1787961180000,15.58000000],[1787961480000,15.58000000],[1787961780000,15.38000000],[1787962080000,14.94000000],[1787962380000,14.72000000],[1787962680000,14.62000000],[1787962980000,14.56000000],[1787963280000,14.48000000],[1787963580000,14.32000000],[1787963880000,14.24000000],[1787964180000,14.20000000],[1787964480000,14.16000000],[1787964780000,14.20000000],[1787965080000,14.06000000],[1787965380000,14.00000000],[1787965680000,13.94000000],[1787965980000,14.08000000],[1787966280000,14.20000000],[1787966580000,14.06000000],[1787966880000,14.04000000],[1787967180000,13.88000000],[1787967480000,13.86000000],[1787967780000,13.94000000],[1787968080000,13.88000000],[1787968380000,13.94000000],[1787968680000,13.98000000],[1787968980000,14.00000000],[1787969280000,13.94000000],[1787969580000,13.94000000],[1787969880000,13.96000000],[1787970180000,14.00000000],[1787970480000,14.00000000],[1787970780000,14.06000000],[1787971080000,14.06000000],[1787971380000,14.00000000],[1787971680000,14.08000000],[1787971980000,14.06000000],[1787972280000,14.20000000],[1787972580000,14.58000000],[1787972880000,14.88000000],[1787973180000,15.10000000],[1787973480000,15.08000000],[1787973780000,14.92000000],[1787974080000,14.70000000],[1787974380000,14.48000000],[1787974680000,14.50000000],[1787974980000,14.62000000],[1787975280000,14.66000000],[1787975580000,14.56000000],[1787975880000,14.42000000],[1787976180000,14.22000000],[1787976480000,14.32000000],[1787976780000,14.60000000],[1787977080000,14.84000000],[1787977380000,15.04000000],[1787977680000,15.18000000],[1787977980000,15.32500000],], 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,59.90000000],[1787954580000,60.04000000],[1787954880000,60.04000000],[1787955180000,57.82000000],[1787955480000,56.16000000],[1787955780000,55.50000000],[1787956080000,55.34000000],[1787956380000,54.76000000],[1787956680000,53.36000000],[1787956980000,54.18000000],[1787957280000,54.92000000],[1787957580000,55.46000000],[1787957880000,55.90000000],[1787958180000,56.44000000],[1787958480000,56.42000000],[1787958780000,55.94000000],[1787959080000,55.94000000],[1787959380000,55.72000000],[1787959680000,55.56000000],[1787959980000,55.94000000],[1787960280000,56.10000000],[1787960580000,56.44000000],[1787960880000,56.50000000],[1787961180000,57.12000000],[1787961480000,57.32000000],[1787961780000,57.64000000],[1787962080000,58.52000000],[1787962380000,59.34000000],[1787962680000,60.72000000],[1787962980000,62.64000000],[1787963280000,62.10000000],[1787963580000,62.76000000],[1787963880000,64.26000000],[1787964180000,64.76000000],[1787964480000,64.14000000],[1787964780000,64.92000000],[1787965080000,65.40000000],[1787965380000,66.10000000],[1787965680000,65.80000000],[1787965980000,64.98000000],[1787966280000,64.16000000],[1787966580000,64.82000000],[1787966880000,65.88000000],[1787967180000,66.84000000],[1787967480000,67.28000000],[1787967780000,66.48000000],[1787968080000,67.06000000],[1787968380000,67.28000000],[1787968680000,68.46000000],[1787968980000,68.14000000],[1787969280000,68.42000000],[1787969580000,68.50000000],[1787969880000,66.42000000],[1787970180000,67.84000000],[1787970480000,68.12000000],[1787970780000,68.24000000],[1787971080000,68.92000000],[1787971380000,69.40000000],[1787971680000,69.20000000],[1787971980000,69.50000000],[1787972280000,70.28000000],[1787972580000,68.56000000],[1787972880000,66.80000000],[1787973180000,65.64000000],[1787973480000,64.86000000],[1787973780000,64.90000000],[1787974080000,65.20000000],[1787974380000,65.96000000],[1787974680000,65.78000000],[1787974980000,65.38000000],[1787975280000,66.10000000],[1787975580000,66.62000000],[1787975880000,67.28000000],[1787976180000,68.20000000],[1787976480000,68.18000000],[1787976780000,68.80000000],[1787977080000,68.78000000],[1787977380000,68.72000000],[1787977680000,68.58000000],[1787977980000,68.52500000],], 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,6.000000012],[1787954580000,5.832],[1787954880000,8.424],[1787955180000,6.552],[1787955480000,6.408],[1787955780000,7.2],[1787956080000,5.328],[1787956380000,5.616],[1787956680000,6.12],[1787956980000,6.84],[1787957280000,6.552],[1787957580000,5.472],[1787957880000,4.968],[1787958180000,5.328],[1787958480000,5.4],[1787958780000,6.048],[1787959080000,5.04],[1787959380000,5.544],[1787959680000,5.184],[1787959980000,4.248],[1787960280000,6.336],[1787960580000,6.264],[1787960880000,5.328],[1787961180000,5.184],[1787961480000,4.464],[1787961780000,4.68],[1787962080000,2.232],[1787962380000,1.44],[1787962680000,2.088],[1787962980000,2.88],[1787963280000,4.32],[1787963580000,3.312],[1787963880000,3.888],[1787964180000,3.384],[1787964480000,2.304],[1787964780000,2.52],[1787965080000,3.168],[1787965380000,3.096],[1787965680000,5.04],[1787965980000,5.4],[1787966280000,5.76],[1787966580000,5.4],[1787966880000,4.176],[1787967180000,1.8],[1787967480000,1.8],[1787967780000,1.224],[1787968080000,1.656],[1787968380000,1.944],[1787968680000,2.088],[1787968980000,0.72],[1787969280000,1.8],[1787969580000,3.312],[1787969880000,4.608],[1787970180000,4.824],[1787970480000,3.744],[1787970780000,4.104],[1787971080000,3.456],[1787971380000,2.664],[1787971680000,3.888],[1787971980000,2.16],[1787972280000,1.872],[1787972580000,3.6],[1787972880000,7.92],[1787973180000,7.2],[1787973480000,6.624],[1787973780000,5.328],[1787974080000,4.824],[1787974380000,3.888],[1787974680000,5.76],[1787974980000,6.912],[1787975280000,3.384],[1787975580000,4.536],[1787975880000,4.896],[1787976180000,3.888],[1787976480000,1.584],[1787976780000,3.96],[1787977080000,3.456],[1787977380000,3.456],[1787977680000,3.888],[1787977980000,3.87],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,7.92],[1787954580000,8.064],[1787954880000,10.656],[1787955180000,8.712],[1787955480000,9],[1787955780000,8.856],[1787956080000,7.632],[1787956380000,7.2],[1787956680000,7.632],[1787956980000,8.352],[1787957280000,8.352],[1787957580000,7.92],[1787957880000,6.84],[1787958180000,7.632],[1787958480000,7.704],[1787958780000,8.136],[1787959080000,7.704],[1787959380000,8.136],[1787959680000,7.92],[1787959980000,6.192],[1787960280000,8.064],[1787960580000,8.208],[1787960880000,7.272],[1787961180000,7.2],[1787961480000,5.904],[1787961780000,6.768],[1787962080000,3.24],[1787962380000,2.304],[1787962680000,2.736],[1787962980000,3.672],[1787963280000,4.896],[1787963580000,3.672],[1787963880000,4.248],[1787964180000,4.104],[1787964480000,2.736],[1787964780000,3.096],[1787965080000,4.104],[1787965380000,3.528],[1787965680000,5.904],[1787965980000,6.192],[1787966280000,6.696],[1787966580000,6.12],[1787966880000,4.752],[1787967180000,2.16],[1787967480000,2.376],[1787967780000,1.944],[1787968080000,2.016],[1787968380000,2.376],[1787968680000,3.024],[1787968980000,1.224],[1787969280000,2.232],[1787969580000,3.888],[1787969880000,5.544],[1787970180000,6.048],[1787970480000,4.248],[1787970780000,5.4],[1787971080000,4.68],[1787971380000,3.456],[1787971680000,4.536],[1787971980000,3.096],[1787972280000,2.52],[1787972580000,4.32],[1787972880000,9],[1787973180000,8.856],[1787973480000,7.992],[1787973780000,6.192],[1787974080000,5.616],[1787974380000,5.472],[1787974680000,6.48],[1787974980000,8.064],[1787975280000,4.752],[1787975580000,5.976],[1787975880000,6.12],[1787976180000,4.824],[1787976480000,2.592],[1787976780000,4.824],[1787977080000,4.032],[1787977380000,4.104],[1787977680000,4.608],[1787977980000,5.76],], 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,6.63333333],[1787954580000,146.04000000],[1787954880000,284.78000000],[1787955180000,79.16000000],[1787955480000,8.54000000],[1787955780000,285.18000000],[1787956080000,9.06000000],[1787956380000,30.60000000],[1787956680000,35.20000000],[1787956980000,25.86000000],[1787957280000,20.82000000],[1787957580000,15.08000000],[1787957880000,10.52000000],[1787958180000,6.40000000],[1787958480000,10.34000000],[1787958780000,20.16000000],[1787959080000,12.42000000],[1787959380000,11.64000000],[1787959680000,149.26000000],[1787959980000,78.80000000],[1787960280000,286.06000000],[1787960580000,284.20000000],[1787960880000,213.50000000],[1787961180000,215.30000000],[1787961480000,9.74000000],[1787961780000,9.68000000],[1787962080000,83.92000000],[1787962380000,81.52000000],[1787962680000,319.70000000],[1787962980000,283.72000000],[1787963280000,254.10000000],[1787963580000,264.06000000],[1787963880000,281.16000000],[1787964180000,285.38000000],[1787964480000,257.76000000],[1787964780000,325.18000000],[1787965080000,81.98000000],[1787965380000,42.46000000],[1787965680000,44.60000000],[1787965980000,32.76000000],[1787966280000,20.60000000],[1787966580000,29.84000000],[1787966880000,32.68000000],[1787967180000,30.68000000],[1787967480000,44.88000000],[1787967780000,111.84000000],[1787968080000,26.70000000],[1787968380000,19.18000000],[1787968680000,144.24000000],[1787968980000,200.32000000],[1787969280000,33.50000000],[1787969580000,64.86000000],[1787969880000,61.28000000],[1787970180000,35.54000000],[1787970480000,20.86000000],[1787970780000,7.34000000],[1787971080000,77.26000000],[1787971380000,265.08000000],[1787971680000,221.90000000],[1787971980000,204.62000000],[1787972280000,265.14000000],[1787972580000,62.72000000],[1787972880000,50.52000000],[1787973180000,49.58000000],[1787973480000,42.92000000],[1787973780000,33.08000000],[1787974080000,31.60000000],[1787974380000,24.12000000],[1787974680000,33.46000000],[1787974980000,46.72000000],[1787975280000,38.16000000],[1787975580000,15.00000000],[1787975880000,278.24000000],[1787976180000,340.88000000],[1787976480000,296.28000000],[1787976780000,246.72000000],[1787977080000,238.52000000],[1787977380000,245.10000000],[1787977680000,270.02000000],[1787977980000,301.62500000],], 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; }