var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,19.50000000],[1787954580000,19.50000000],[1787954880000,19.50000000],[1787955180000,19.48000000],[1787955480000,19.40000000],[1787955780000,19.40000000],[1787956080000,19.28000000],[1787956380000,19.16000000],[1787956680000,19.14000000],[1787956980000,19.08000000],[1787957280000,19.10000000],[1787957580000,19.06000000],[1787957880000,18.94000000],[1787958180000,18.96000000],[1787958480000,18.98000000],[1787958780000,18.94000000],[1787959080000,18.98000000],[1787959380000,18.90000000],[1787959680000,18.82000000],[1787959980000,18.80000000],[1787960280000,18.92000000],[1787960580000,19.08000000],[1787960880000,19.24000000],[1787961180000,19.30000000],[1787961480000,19.18000000],[1787961780000,19.10000000],[1787962080000,19.04000000],[1787962440000,18.90000000],[1787962680000,18.90000000],[1787962980000,18.82000000],[1787963280000,18.72000000],[1787963580000,18.70000000],[1787963880000,18.62000000],[1787964180000,18.60000000],[1787964480000,18.64000000],[1787964780000,18.62000000],[1787965080000,18.60000000],[1787965380000,18.50000000],[1787965680000,18.44000000],[1787965980000,18.54000000],[1787966280000,18.64000000],[1787966580000,18.72000000],[1787966880000,18.70000000],[1787967180000,18.70000000],[1787967480000,18.62000000],[1787967780000,18.56000000],[1787968080000,18.50000000],[1787968380000,18.50000000],[1787968680000,18.52000000],[1787968980000,18.54000000],[1787969280000,18.50000000],[1787969580000,18.44000000],[1787969880000,18.36000000],[1787970180000,18.24000000],[1787970480000,18.14000000],[1787970780000,18.10000000],[1787971080000,18.10000000],[1787971380000,18.10000000],[1787971680000,18.10000000],[1787971980000,18.10000000],[1787972280000,18.02000000],[1787972580000,17.94000000],[1787972880000,17.80000000],[1787973180000,17.54000000],[1787973480000,17.34000000],[1787973780000,17.22000000],[1787974080000,17.04000000],[1787974380000,16.92000000],[1787974680000,16.80000000],[1787974980000,16.80000000],[1787975280000,16.90000000],[1787975580000,16.90000000],[1787975880000,16.98000000],[1787976180000,17.04000000],[1787976480000,17.10000000],[1787976780000,17.26000000],[1787977080000,17.38000000],[1787977380000,17.40000000],[1787977680000,17.48000000],[1787977980000,17.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6],[1787954580000,6],[1787954880000,6],[1787955180000,6],[1787955480000,6],[1787955780000,6],[1787956080000,6.2],[1787956380000,6.1],[1787956680000,6.2],[1787956980000,6.1],[1787957280000,6.1],[1787957580000,6.2],[1787957880000,6.1],[1787958180000,6.1],[1787958480000,6.2],[1787958780000,6.2],[1787959080000,6.3],[1787959380000,6.3],[1787959680000,6.4],[1787959980000,6.4],[1787960280000,6.4],[1787960580000,6.5],[1787960880000,6.5],[1787961180000,6.5],[1787961480000,6.5],[1787961780000,6.5],[1787962080000,6.6],[1787962440000,6.5],[1787962680000,6.5],[1787962980000,6.5],[1787963280000,6.5],[1787963580000,6.5],[1787963880000,6.6],[1787964180000,6.6],[1787964480000,6.6],[1787964780000,6.7],[1787965080000,6.8],[1787965380000,6.8],[1787965680000,6.9],[1787965980000,6.8],[1787966280000,6.8],[1787966580000,6.9],[1787966880000,6.9],[1787967180000,6.9],[1787967480000,7],[1787967780000,7],[1787968080000,7.1],[1787968380000,7.1],[1787968680000,7.1],[1787968980000,7.3],[1787969280000,7.2],[1787969580000,7.2],[1787969880000,7.2],[1787970180000,7.2],[1787970480000,7.2],[1787970780000,7.3],[1787971080000,7.3],[1787971380000,7.3],[1787971680000,7.3],[1787971980000,7.3],[1787972280000,7.3],[1787972580000,7.3],[1787972880000,7.3],[1787973180000,7.2],[1787973480000,7.3],[1787973780000,7.3],[1787974080000,7.3],[1787974380000,7.4],[1787974680000,7.5],[1787974980000,7.4],[1787975280000,7.5],[1787975580000,7.4],[1787975880000,7.6],[1787976180000,7.7],[1787976480000,7.6],[1787976780000,7.6],[1787977080000,7.6],[1787977380000,7.7],[1787977680000,7.8],[1787977980000,7.8],], 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,17.86666667],[1787954580000,18.04000000],[1787954880000,18.10000000],[1787955180000,18.02000000],[1787955480000,17.74000000],[1787955780000,17.96000000],[1787956080000,17.58000000],[1787956380000,17.36000000],[1787956680000,17.22000000],[1787956980000,17.30000000],[1787957280000,17.90000000],[1787957580000,17.90000000],[1787957880000,17.48000000],[1787958180000,18.22000000],[1787958480000,17.86000000],[1787958780000,17.66000000],[1787959080000,17.72000000],[1787959380000,18.02000000],[1787959680000,17.90000000],[1787959980000,17.80000000],[1787960280000,18.24000000],[1787960580000,18.56000000],[1787960880000,18.66000000],[1787961180000,18.40000000],[1787961480000,17.78000000],[1787961780000,17.78000000],[1787962080000,17.78000000],[1787962440000,17.75000000],[1787962680000,17.80000000],[1787962980000,17.92000000],[1787963280000,17.58000000],[1787963580000,17.56000000],[1787963880000,17.88000000],[1787964180000,18.00000000],[1787964480000,18.20000000],[1787964780000,18.32000000],[1787965080000,18.18000000],[1787965380000,18.02000000],[1787965680000,17.90000000],[1787965980000,18.20000000],[1787966280000,18.32000000],[1787966580000,18.48000000],[1787966880000,18.26000000],[1787967180000,18.06000000],[1787967480000,17.94000000],[1787967780000,17.94000000],[1787968080000,17.98000000],[1787968380000,17.84000000],[1787968680000,18.04000000],[1787968980000,17.90000000],[1787969280000,17.74000000],[1787969580000,17.54000000],[1787969880000,17.16000000],[1787970180000,17.06000000],[1787970480000,17.24000000],[1787970780000,17.60000000],[1787971080000,17.68000000],[1787971380000,17.50000000],[1787971680000,17.36000000],[1787971980000,17.44000000],[1787972280000,17.34000000],[1787972580000,17.18000000],[1787972880000,16.92000000],[1787973180000,16.46000000],[1787973480000,16.28000000],[1787973780000,16.30000000],[1787974080000,15.86000000],[1787974380000,15.24000000],[1787974680000,15.06000000],[1787974980000,15.24000000],[1787975280000,15.48000000],[1787975580000,15.76000000],[1787975880000,16.10000000],[1787976180000,16.48000000],[1787976480000,16.76000000],[1787976780000,16.84000000],[1787977080000,17.18000000],[1787977380000,17.08000000],[1787977680000,16.90000000],[1787977980000,17.15000000],], 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,41.46666667],[1787954580000,41.42000000],[1787954880000,41.46000000],[1787955180000,41.54000000],[1787955480000,41.68000000],[1787955780000,41.82000000],[1787956080000,42.62000000],[1787956380000,42.66000000],[1787956680000,42.86000000],[1787956980000,42.98000000],[1787957280000,42.78000000],[1787957580000,43.16000000],[1787957880000,43.34000000],[1787958180000,43.18000000],[1787958480000,43.44000000],[1787958780000,43.46000000],[1787959080000,43.62000000],[1787959380000,43.98000000],[1787959680000,44.40000000],[1787959980000,44.40000000],[1787960280000,44.22000000],[1787960580000,43.94000000],[1787960880000,43.70000000],[1787961180000,43.58000000],[1787961480000,43.88000000],[1787961780000,44.12000000],[1787962080000,44.32000000],[1787962440000,44.52500000],[1787962680000,44.48000000],[1787962980000,44.70000000],[1787963280000,45.06000000],[1787963580000,45.14000000],[1787963880000,45.66000000],[1787964180000,45.70000000],[1787964480000,45.60000000],[1787964780000,46.02000000],[1787965080000,46.44000000],[1787965380000,46.78000000],[1787965680000,47.00000000],[1787965980000,46.56000000],[1787966280000,46.38000000],[1787966580000,46.28000000],[1787966880000,46.52000000],[1787967180000,46.48000000],[1787967480000,46.88000000],[1787967780000,47.16000000],[1787968080000,47.52000000],[1787968380000,47.58000000],[1787968680000,47.64000000],[1787968980000,48.00000000],[1787969280000,47.96000000],[1787969580000,48.02000000],[1787969880000,48.34000000],[1787970180000,48.82000000],[1787970480000,49.18000000],[1787970780000,49.40000000],[1787971080000,49.58000000],[1787971380000,49.58000000],[1787971680000,49.54000000],[1787971980000,49.58000000],[1787972280000,49.90000000],[1787972580000,50.14000000],[1787972880000,50.52000000],[1787973180000,51.08000000],[1787973480000,51.76000000],[1787973780000,52.30000000],[1787974080000,53.08000000],[1787974380000,53.74000000],[1787974680000,54.28000000],[1787974980000,54.16000000],[1787975280000,54.04000000],[1787975580000,53.90000000],[1787975880000,54.08000000],[1787976180000,54.54000000],[1787976480000,53.84000000],[1787976780000,53.10000000],[1787977080000,52.94000000],[1787977380000,53.04000000],[1787977680000,53.16000000],[1787977980000,53.02500000],], 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,4.200000012],[1787954580000,3.384],[1787954880000,2.88],[1787955180000,2.88],[1787955480000,3.672],[1787955780000,3.24],[1787956080000,2.52],[1787956380000,2.304],[1787956680000,3.024],[1787956980000,2.736],[1787957280000,3.672],[1787957580000,3.024],[1787957880000,2.592],[1787958180000,2.448],[1787958480000,2.88],[1787958780000,3.816],[1787959080000,3.024],[1787959380000,3.096],[1787959680000,3.384],[1787959980000,2.448],[1787960280000,4.032],[1787960580000,4.176],[1787960880000,4.464],[1787961180000,2.88],[1787961480000,2.016],[1787961780000,2.664],[1787962080000,3.312],[1787962440000,5.31],[1787962680000,4.104],[1787962980000,5.184],[1787963280000,3.6],[1787963580000,4.032],[1787963880000,2.736],[1787964180000,3.384],[1787964480000,4.032],[1787964780000,4.752],[1787965080000,3.384],[1787965380000,3.312],[1787965680000,4.392],[1787965980000,5.184],[1787966280000,4.68],[1787966580000,3.744],[1787966880000,2.16],[1787967180000,2.736],[1787967480000,3.672],[1787967780000,3.168],[1787968080000,2.736],[1787968380000,2.016],[1787968680000,3.24],[1787968980000,2.448],[1787969280000,3.24],[1787969580000,2.808],[1787969880000,2.304],[1787970180000,2.736],[1787970480000,3.312],[1787970780000,4.176],[1787971080000,4.752],[1787971380000,4.752],[1787971680000,5.184],[1787971980000,3.24],[1787972280000,5.4],[1787972580000,4.824],[1787972880000,3.384],[1787973180000,3.6],[1787973480000,3.528],[1787973780000,3.528],[1787974080000,2.088],[1787974380000,1.8],[1787974680000,1.584],[1787974980000,3.096],[1787975280000,1.584],[1787975580000,1.656],[1787975880000,2.808],[1787976180000,3.456],[1787976480000,3.96],[1787976780000,3.96],[1787977080000,6.192],[1787977380000,3.096],[1787977680000,2.304],[1787977980000,3.24],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,8.759999988],[1787954580000,6.264],[1787954880000,6.48],[1787955180000,5.832],[1787955480000,7.272],[1787955780000,6.12],[1787956080000,4.608],[1787956380000,4.248],[1787956680000,5.832],[1787956980000,5.904],[1787957280000,6.408],[1787957580000,5.256],[1787957880000,4.68],[1787958180000,5.184],[1787958480000,5.832],[1787958780000,7.488],[1787959080000,6.48],[1787959380000,6.768],[1787959680000,6.264],[1787959980000,4.248],[1787960280000,6.264],[1787960580000,6.624],[1787960880000,7.704],[1787961180000,5.04],[1787961480000,4.752],[1787961780000,5.184],[1787962080000,6.336],[1787962440000,9.99],[1787962680000,8.136],[1787962980000,8.568],[1787963280000,7.128],[1787963580000,8.28],[1787963880000,5.328],[1787964180000,6.408],[1787964480000,6.912],[1787964780000,8.352],[1787965080000,5.256],[1787965380000,6.192],[1787965680000,6.264],[1787965980000,8.424],[1787966280000,7.848],[1787966580000,6.84],[1787966880000,3.816],[1787967180000,5.112],[1787967480000,6.192],[1787967780000,6.12],[1787968080000,5.472],[1787968380000,3.384],[1787968680000,5.76],[1787968980000,4.32],[1787969280000,5.544],[1787969580000,5.4],[1787969880000,4.392],[1787970180000,4.824],[1787970480000,7.2],[1787970780000,8.28],[1787971080000,8.352],[1787971380000,10.08],[1787971680000,10.728],[1787971980000,6.336],[1787972280000,10.008],[1787972580000,9.216],[1787972880000,5.688],[1787973180000,7.056],[1787973480000,6.48],[1787973780000,5.904],[1787974080000,3.456],[1787974380000,2.952],[1787974680000,3.312],[1787974980000,4.968],[1787975280000,3.528],[1787975580000,2.952],[1787975880000,4.32],[1787976180000,5.76],[1787976480000,6.84],[1787976780000,6.552],[1787977080000,9.144],[1787977380000,5.256],[1787977680000,4.608],[1787977980000,5.49],], 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,105.26666667],[1787954580000,100.26000000],[1787954880000,71.98000000],[1787955180000,60.84000000],[1787955480000,121.20000000],[1787955780000,115.88000000],[1787956080000,162.12000000],[1787956380000,145.78000000],[1787956680000,168.10000000],[1787956980000,158.20000000],[1787957280000,122.50000000],[1787957580000,135.08000000],[1787957880000,197.62000000],[1787958180000,181.38000000],[1787958480000,207.42000000],[1787958780000,219.56000000],[1787959080000,134.98000000],[1787959380000,134.02000000],[1787959680000,113.10000000],[1787959980000,239.14000000],[1787960280000,169.20000000],[1787960580000,209.36000000],[1787960880000,103.80000000],[1787961180000,149.88000000],[1787961480000,213.54000000],[1787961780000,160.58000000],[1787962080000,188.42000000],[1787962440000,112.10000000],[1787962680000,109.40000000],[1787962980000,112.74000000],[1787963280000,144.42000000],[1787963580000,130.00000000],[1787963880000,174.62000000],[1787964180000,161.00000000],[1787964480000,233.54000000],[1787964780000,135.76000000],[1787965080000,177.98000000],[1787965380000,130.44000000],[1787965680000,108.88000000],[1787965980000,117.60000000],[1787966280000,132.00000000],[1787966580000,159.96000000],[1787966880000,164.74000000],[1787967180000,92.46000000],[1787967480000,89.36000000],[1787967780000,120.58000000],[1787968080000,129.82000000],[1787968380000,173.84000000],[1787968680000,156.04000000],[1787968980000,88.30000000],[1787969280000,93.84000000],[1787969580000,159.32000000],[1787969880000,186.42000000],[1787970180000,210.66000000],[1787970480000,181.84000000],[1787970780000,140.32000000],[1787971080000,121.92000000],[1787971380000,124.72000000],[1787971680000,93.42000000],[1787971980000,121.90000000],[1787972280000,108.26000000],[1787972580000,123.88000000],[1787972880000,177.02000000],[1787973180000,108.10000000],[1787973480000,122.64000000],[1787973780000,154.20000000],[1787974080000,133.02000000],[1787974380000,143.76000000],[1787974680000,149.42000000],[1787974980000,176.24000000],[1787975280000,167.68000000],[1787975580000,259.22000000],[1787975880000,19.80000000],[1787976180000,117.50000000],[1787976480000,96.74000000],[1787976780000,113.76000000],[1787977080000,118.02000000],[1787977380000,122.22000000],[1787977680000,117.42000000],[1787977980000,135.85000000],], 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],[1787957340000,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],[1787962440000,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],[1787975640000,0],[1787975880000,0],[1787976180000,0],[1787976480000,0],[1787976840000,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; }