var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,10.70000000],[1787954580000,10.68000000],[1787954880000,10.70000000],[1787955180000,10.68000000],[1787955480000,10.72000000],[1787955780000,10.70000000],[1787956080000,10.80000000],[1787956380000,10.72000000],[1787956680000,10.84000000],[1787956980000,10.78000000],[1787957280000,10.72000000],[1787957580000,10.82000000],[1787957880000,10.80000000],[1787958180000,10.80000000],[1787958480000,10.78000000],[1787958780000,10.72000000],[1787959080000,10.76000000],[1787959380000,10.72000000],[1787959680000,10.66000000],[1787959980000,10.74000000],[1787960280000,10.74000000],[1787960580000,10.74000000],[1787960880000,10.88000000],[1787961180000,10.96000000],[1787961480000,10.92000000],[1787961780000,10.92000000],[1787962080000,10.98000000],[1787962380000,11.00000000],[1787962680000,11.08000000],[1787962980000,11.20000000],[1787963280000,11.18000000],[1787963580000,11.12000000],[1787963880000,11.50000000],[1787964180000,11.68000000],[1787964480000,11.50000000],[1787964780000,11.32000000],[1787965080000,11.22000000],[1787965380000,11.10000000],[1787965680000,11.04000000],[1787965980000,11.04000000],[1787966280000,11.14000000],[1787966580000,11.28000000],[1787966880000,11.36000000],[1787967180000,11.44000000],[1787967480000,11.42000000],[1787967780000,11.58000000],[1787968080000,11.74000000],[1787968380000,11.78000000],[1787968680000,12.00000000],[1787968980000,12.18000000],[1787969280000,12.34000000],[1787969580000,12.30000000],[1787969880000,12.52000000],[1787970180000,12.38000000],[1787970480000,12.24000000],[1787970780000,12.22000000],[1787971080000,12.28000000],[1787971380000,12.26000000],[1787971680000,12.46000000],[1787971980000,12.60000000],[1787972280000,12.92000000],[1787972580000,12.76000000],[1787972880000,12.86000000],[1787973180000,12.96000000],[1787973480000,13.14000000],[1787973780000,13.34000000],[1787974080000,13.40000000],[1787974380000,13.68000000],[1787974680000,13.86000000],[1787974980000,14.02000000],[1787975280000,14.10000000],[1787975580000,14.08000000],[1787975880000,14.54000000],[1787976180000,14.72000000],[1787976480000,15.02000000],[1787976780000,15.40000000],[1787977080000,15.68000000],[1787977380000,16.28000000],[1787977680000,16.54000000],[1787977980000,16.67500000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,7.1],[1787954580000,7.1],[1787954880000,7.2],[1787955180000,7.2],[1787955480000,7.2],[1787955780000,7.2],[1787956080000,7.3],[1787956380000,7.2],[1787956680000,7.3],[1787956980000,7.3],[1787957280000,7.3],[1787957580000,7.3],[1787957880000,7.3],[1787958180000,7.4],[1787958480000,7.4],[1787958780000,7.4],[1787959080000,7.4],[1787959380000,7.4],[1787959680000,7.4],[1787959980000,7.5],[1787960280000,7.5],[1787960580000,7.5],[1787960880000,7.6],[1787961180000,7.6],[1787961480000,7.6],[1787961780000,7.6],[1787962080000,7.7],[1787962380000,7.7],[1787962680000,7.7],[1787962980000,7.8],[1787963280000,7.8],[1787963580000,7.8],[1787963880000,8],[1787964180000,8],[1787964480000,7.9],[1787964780000,7.9],[1787965080000,7.9],[1787965380000,7.9],[1787965680000,7.9],[1787965980000,8],[1787966280000,8.1],[1787966580000,8.1],[1787966880000,8.1],[1787967180000,8.1],[1787967480000,8.2],[1787967780000,8.2],[1787968080000,8.3],[1787968380000,8.4],[1787968680000,8.5],[1787968980000,8.5],[1787969280000,8.5],[1787969580000,8.6],[1787969880000,8.7],[1787970180000,8.7],[1787970480000,8.7],[1787970780000,8.7],[1787971080000,8.7],[1787971380000,8.8],[1787971680000,8.9],[1787971980000,8.9],[1787972280000,8.9],[1787972580000,9],[1787972880000,9.2],[1787973180000,9.1],[1787973480000,9.2],[1787973780000,9.2],[1787974080000,9.2],[1787974380000,9.3],[1787974680000,9.2],[1787974980000,9.2],[1787975280000,9.2],[1787975580000,9.2],[1787975880000,9.1],[1787976180000,9.1],[1787976480000,9.1],[1787976780000,8.9],[1787977080000,9],[1787977380000,8.7],[1787977680000,8.9],[1787977980000,9],], 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,9.40000000],[1787954580000,9.46000000],[1787954880000,9.80000000],[1787955180000,9.68000000],[1787955480000,9.64000000],[1787955780000,9.68000000],[1787956080000,9.66000000],[1787956380000,9.70000000],[1787956680000,9.92000000],[1787956980000,9.40000000],[1787957280000,9.48000000],[1787957580000,9.86000000],[1787957880000,9.96000000],[1787958180000,9.98000000],[1787958480000,9.80000000],[1787958780000,9.58000000],[1787959080000,9.48000000],[1787959380000,9.50000000],[1787959680000,9.44000000],[1787959980000,9.62000000],[1787960280000,9.56000000],[1787960580000,9.54000000],[1787960880000,9.70000000],[1787961180000,9.90000000],[1787961480000,9.74000000],[1787961780000,9.80000000],[1787962080000,9.94000000],[1787962380000,9.90000000],[1787962680000,10.16000000],[1787962980000,10.32000000],[1787963280000,9.94000000],[1787963580000,10.00000000],[1787963880000,10.36000000],[1787964180000,10.18000000],[1787964480000,10.00000000],[1787964780000,9.82000000],[1787965080000,9.78000000],[1787965380000,9.70000000],[1787965680000,9.56000000],[1787965980000,9.86000000],[1787966280000,9.94000000],[1787966580000,10.40000000],[1787966880000,10.56000000],[1787967180000,10.60000000],[1787967480000,10.42000000],[1787967780000,10.80000000],[1787968080000,10.94000000],[1787968380000,10.86000000],[1787968680000,11.12000000],[1787968980000,11.46000000],[1787969280000,11.26000000],[1787969580000,11.06000000],[1787969880000,11.20000000],[1787970180000,11.08000000],[1787970480000,11.14000000],[1787970780000,11.06000000],[1787971080000,11.14000000],[1787971380000,11.32000000],[1787971680000,11.60000000],[1787971980000,11.80000000],[1787972280000,11.94000000],[1787972580000,12.00000000],[1787972880000,12.02000000],[1787973180000,12.32000000],[1787973480000,12.58000000],[1787973780000,12.60000000],[1787974080000,12.72000000],[1787974380000,13.00000000],[1787974680000,13.20000000],[1787974980000,13.18000000],[1787975280000,13.10000000],[1787975580000,12.92000000],[1787975880000,13.54000000],[1787976180000,13.62000000],[1787976480000,14.16000000],[1787976780000,14.76000000],[1787977080000,14.78000000],[1787977380000,15.50000000],[1787977680000,15.56000000],[1787977980000,15.60000000],], 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,78.66666667],[1787954580000,78.98000000],[1787954880000,78.94000000],[1787955180000,79.18000000],[1787955480000,79.02000000],[1787955780000,79.16000000],[1787956080000,79.04000000],[1787956380000,79.18000000],[1787956680000,78.96000000],[1787956980000,79.26000000],[1787957280000,79.60000000],[1787957580000,79.26000000],[1787957880000,79.44000000],[1787958180000,79.46000000],[1787958480000,79.70000000],[1787958780000,80.04000000],[1787959080000,80.12000000],[1787959380000,80.22000000],[1787959680000,80.52000000],[1787959980000,80.44000000],[1787960280000,80.34000000],[1787960580000,80.56000000],[1787960880000,80.24000000],[1787961180000,79.98000000],[1787961480000,80.20000000],[1787961780000,80.34000000],[1787962080000,80.14000000],[1787962380000,80.32000000],[1787962680000,80.10000000],[1787962980000,79.68000000],[1787963280000,79.76000000],[1787963580000,80.16000000],[1787963880000,79.12000000],[1787964180000,78.26000000],[1787964480000,79.00000000],[1787964780000,79.76000000],[1787965080000,80.32000000],[1787965380000,80.96000000],[1787965680000,81.36000000],[1787965980000,81.78000000],[1787966280000,81.64000000],[1787966580000,81.08000000],[1787966880000,80.50000000],[1787967180000,80.38000000],[1787967480000,80.60000000],[1787967780000,80.18000000],[1787968080000,79.66000000],[1787968380000,79.70000000],[1787968680000,79.14000000],[1787968980000,78.38000000],[1787969280000,77.58000000],[1787969580000,78.10000000],[1787969880000,77.76000000],[1787970180000,78.20000000],[1787970480000,79.06000000],[1787970780000,79.48000000],[1787971080000,79.06000000],[1787971380000,79.40000000],[1787971680000,79.10000000],[1787971980000,78.26000000],[1787972280000,76.90000000],[1787972580000,78.02000000],[1787972880000,78.36000000],[1787973180000,77.54000000],[1787973480000,77.10000000],[1787973780000,76.24000000],[1787974080000,76.16000000],[1787974380000,75.00000000],[1787974680000,73.82000000],[1787974980000,73.12000000],[1787975280000,72.52000000],[1787975580000,72.70000000],[1787975880000,70.22000000],[1787976180000,69.12000000],[1787976480000,68.00000000],[1787976780000,65.50000000],[1787977080000,64.90000000],[1787977380000,61.24000000],[1787977680000,60.90000000],[1787977980000,60.85000000],], 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.239999988],[1787954580000,8.568],[1787954880000,8.424],[1787955180000,7.848],[1787955480000,8.136],[1787955780000,7.848],[1787956080000,6.768],[1787956380000,6.984],[1787956680000,6.264],[1787956980000,7.56],[1787957280000,7.56],[1787957580000,7.56],[1787957880000,7.704],[1787958180000,7.848],[1787958480000,6.768],[1787958780000,6.408],[1787959080000,6.84],[1787959380000,6.48],[1787959680000,6.84],[1787959980000,7.056],[1787960280000,6.192],[1787960580000,5.688],[1787960880000,5.976],[1787961180000,6.624],[1787961480000,6.336],[1787961780000,6.12],[1787962080000,5.976],[1787962380000,7.2],[1787962680000,7.488],[1787962980000,5.112],[1787963280000,5.616],[1787963580000,4.392],[1787963880000,4.464],[1787964180000,4.104],[1787964480000,3.744],[1787964780000,5.184],[1787965080000,4.824],[1787965380000,4.896],[1787965680000,3.888],[1787965980000,5.832],[1787966280000,5.112],[1787966580000,7.344],[1787966880000,6.048],[1787967180000,5.112],[1787967480000,6.984],[1787967780000,6.264],[1787968080000,5.688],[1787968380000,5.4],[1787968680000,5.328],[1787968980000,3.672],[1787969280000,3.6],[1787969580000,3.384],[1787969880000,2.232],[1787970180000,3.168],[1787970480000,4.32],[1787970780000,3.528],[1787971080000,4.392],[1787971380000,3.096],[1787971680000,3.096],[1787971980000,3.024],[1787972280000,1.872],[1787972580000,3.24],[1787972880000,3.096],[1787973180000,3.24],[1787973480000,1.8],[1787973780000,2.52],[1787974080000,2.592],[1787974380000,3.672],[1787974680000,3.168],[1787974980000,2.16],[1787975280000,2.232],[1787975580000,2.16],[1787975880000,2.52],[1787976180000,3.456],[1787976480000,3.888],[1787976780000,2.664],[1787977080000,3.384],[1787977380000,3.816],[1787977680000,3.456],[1787977980000,2.7],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,8.160000012],[1787954580000,9.936],[1787954880000,9.792],[1787955180000,9.144],[1787955480000,9.576],[1787955780000,9.504],[1787956080000,8.208],[1787956380000,8.496],[1787956680000,7.704],[1787956980000,8.64],[1787957280000,8.424],[1787957580000,9.216],[1787957880000,8.568],[1787958180000,9],[1787958480000,8.136],[1787958780000,7.776],[1787959080000,7.92],[1787959380000,7.416],[1787959680000,8.136],[1787959980000,8.208],[1787960280000,7.776],[1787960580000,6.84],[1787960880000,6.768],[1787961180000,8.064],[1787961480000,7.056],[1787961780000,7.272],[1787962080000,7.056],[1787962380000,8.208],[1787962680000,9],[1787962980000,6.696],[1787963280000,7.56],[1787963580000,6.264],[1787963880000,5.616],[1787964180000,4.824],[1787964480000,4.536],[1787964780000,6.12],[1787965080000,5.904],[1787965380000,5.976],[1787965680000,5.256],[1787965980000,6.768],[1787966280000,6.264],[1787966580000,8.208],[1787966880000,7.776],[1787967180000,6.624],[1787967480000,8.064],[1787967780000,8.208],[1787968080000,7.488],[1787968380000,6.912],[1787968680000,7.056],[1787968980000,5.184],[1787969280000,5.04],[1787969580000,4.824],[1787969880000,3.24],[1787970180000,4.752],[1787970480000,5.4],[1787970780000,4.752],[1787971080000,5.616],[1787971380000,4.968],[1787971680000,4.176],[1787971980000,4.104],[1787972280000,3.024],[1787972580000,4.248],[1787972880000,4.968],[1787973180000,5.112],[1787973480000,2.592],[1787973780000,3.312],[1787974080000,3.96],[1787974380000,5.472],[1787974680000,4.752],[1787974980000,3.384],[1787975280000,4.32],[1787975580000,3.312],[1787975880000,4.824],[1787976180000,5.184],[1787976480000,5.904],[1787976780000,4.896],[1787977080000,5.328],[1787977380000,5.112],[1787977680000,6.336],[1787977980000,4.41],], 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.23333333],[1787954580000,143.46000000],[1787954880000,285.04000000],[1787955180000,286.96000000],[1787955480000,74.04000000],[1787955780000,73.34000000],[1787956080000,351.18000000],[1787956380000,143.56000000],[1787956680000,216.94000000],[1787956980000,214.26000000],[1787957280000,214.58000000],[1787957580000,211.86000000],[1787957880000,144.98000000],[1787958180000,283.82000000],[1787958480000,214.86000000],[1787958780000,145.92000000],[1787959080000,354.46000000],[1787959380000,73.86000000],[1787959680000,217.02000000],[1787959980000,355.68000000],[1787960280000,281.72000000],[1787960580000,11.26000000],[1787960880000,355.80000000],[1787961180000,213.68000000],[1787961480000,4.08000000],[1787961780000,212.64000000],[1787962080000,286.36000000],[1787962380000,356.26000000],[1787962680000,212.94000000],[1787962980000,279.94000000],[1787963280000,210.98000000],[1787963580000,278.22000000],[1787963880000,16.60000000],[1787964180000,10.44000000],[1787964480000,144.16000000],[1787964780000,283.52000000],[1787965080000,146.16000000],[1787965380000,211.04000000],[1787965680000,210.76000000],[1787965980000,76.74000000],[1787966280000,88.04000000],[1787966580000,213.70000000],[1787966880000,276.98000000],[1787967180000,211.10000000],[1787967480000,286.82000000],[1787967780000,280.80000000],[1787968080000,274.66000000],[1787968380000,281.08000000],[1787968680000,213.30000000],[1787968980000,212.38000000],[1787969280000,217.74000000],[1787969580000,123.82000000],[1787969880000,129.24000000],[1787970180000,349.96000000],[1787970480000,147.52000000],[1787970780000,81.10000000],[1787971080000,81.86000000],[1787971380000,277.28000000],[1787971680000,81.14000000],[1787971980000,120.04000000],[1787972280000,141.86000000],[1787972580000,221.42000000],[1787972880000,281.80000000],[1787973180000,176.06000000],[1787973480000,139.86000000],[1787973780000,135.30000000],[1787974080000,332.80000000],[1787974380000,216.26000000],[1787974680000,273.96000000],[1787974980000,261.28000000],[1787975280000,251.22000000],[1787975580000,218.80000000],[1787975880000,250.14000000],[1787976180000,208.46000000],[1787976480000,238.84000000],[1787976780000,265.64000000],[1787977080000,249.00000000],[1787977380000,234.66000000],[1787977680000,205.30000000],[1787977980000,208.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; }