var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,9.93333333],[1787954580000,9.90000000],[1787954880000,9.90000000],[1787955180000,10.02000000],[1787955480000,10.08000000],[1787955780000,10.10000000],[1787956080000,10.48000000],[1787956380000,10.52000000],[1787956680000,10.36000000],[1787956980000,10.26000000],[1787957280000,10.22000000],[1787957580000,10.22000000],[1787957880000,10.16000000],[1787958180000,10.10000000],[1787958480000,10.00000000],[1787958780000,10.00000000],[1787959080000,9.98000000],[1787959380000,9.86000000],[1787959680000,9.80000000],[1787959980000,9.70000000],[1787960280000,9.78000000],[1787960580000,9.74000000],[1787960880000,9.76000000],[1787961180000,9.88000000],[1787961480000,9.90000000],[1787961780000,9.90000000],[1787962080000,9.96000000],[1787962380000,10.26000000],[1787962680000,10.24000000],[1787962980000,10.20000000],[1787963280000,10.20000000],[1787963580000,10.12000000],[1787963880000,10.10000000],[1787964180000,10.06000000],[1787964480000,9.98000000],[1787964780000,9.84000000],[1787965080000,9.74000000],[1787965380000,9.60000000],[1787965680000,9.66000000],[1787965980000,9.60000000],[1787966280000,9.60000000],[1787966580000,9.66000000],[1787966880000,9.72000000],[1787967180000,9.80000000],[1787967480000,9.84000000],[1787967780000,10.08000000],[1787968080000,10.16000000],[1787968380000,10.30000000],[1787968680000,10.40000000],[1787968980000,10.44000000],[1787969280000,10.58000000],[1787969580000,10.74000000],[1787969880000,10.84000000],[1787970180000,10.98000000],[1787970480000,11.06000000],[1787970780000,10.94000000],[1787971080000,10.76000000],[1787971380000,10.76000000],[1787971680000,10.84000000],[1787971980000,10.78000000],[1787972280000,10.66000000],[1787972580000,10.60000000],[1787972880000,10.60000000],[1787973180000,10.64000000],[1787973480000,10.70000000],[1787973780000,10.72000000],[1787974080000,10.80000000],[1787974380000,10.84000000],[1787974680000,11.08000000],[1787974980000,11.36000000],[1787975280000,11.64000000],[1787975580000,11.82000000],[1787975880000,11.98000000],[1787976180000,12.12000000],[1787976480000,12.32000000],[1787976780000,12.40000000],[1787977080000,12.32000000],[1787977380000,12.30000000],[1787977680000,12.46000000],[1787977980000,12.66666667],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.8],[1787954580000,6.8],[1787954880000,6.8],[1787955180000,6.9],[1787955480000,6.9],[1787955780000,6.9],[1787956080000,7.2],[1787956380000,7.2],[1787956680000,7.1],[1787956980000,7.1],[1787957280000,7],[1787957580000,7],[1787957880000,7],[1787958180000,6.9],[1787958480000,6.8],[1787958780000,6.8],[1787959080000,6.9],[1787959380000,6.7],[1787959680000,6.7],[1787959980000,6.6],[1787960280000,6.7],[1787960580000,6.6],[1787960880000,6.7],[1787961180000,6.7],[1787961480000,6.8],[1787961780000,6.8],[1787962080000,6.8],[1787962380000,7],[1787962680000,7],[1787962980000,7],[1787963280000,7],[1787963580000,7],[1787963880000,6.9],[1787964180000,6.9],[1787964480000,6.9],[1787964780000,6.8],[1787965080000,6.7],[1787965380000,6.6],[1787965680000,6.6],[1787965980000,6.6],[1787966280000,6.6],[1787966580000,6.7],[1787966880000,6.7],[1787967180000,6.8],[1787967480000,6.9],[1787967780000,7.1],[1787968080000,7.2],[1787968380000,7.3],[1787968680000,7.3],[1787968980000,7.3],[1787969280000,7.4],[1787969580000,7.5],[1787969880000,7.6],[1787970180000,7.7],[1787970480000,7.8],[1787970780000,7.7],[1787971080000,7.6],[1787971380000,7.6],[1787971680000,7.6],[1787971980000,7.6],[1787972280000,7.5],[1787972580000,7.5],[1787972880000,7.4],[1787973180000,7.4],[1787973480000,7.5],[1787973780000,7.5],[1787974080000,7.6],[1787974380000,7.6],[1787974680000,7.8],[1787974980000,7.9],[1787975280000,8.1],[1787975580000,8.1],[1787975880000,8.2],[1787976180000,8.3],[1787976480000,8.3],[1787976780000,8.4],[1787977080000,8.3],[1787977380000,8.4],[1787977680000,8.5],[1787977980000,8.5],], 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,7.70000000],[1787954580000,7.46000000],[1787954880000,7.62000000],[1787955180000,7.84000000],[1787955480000,7.62000000],[1787955780000,8.18000000],[1787956080000,8.58000000],[1787956380000,8.32000000],[1787956680000,7.86000000],[1787956980000,7.86000000],[1787957280000,7.66000000],[1787957580000,7.60000000],[1787957880000,7.54000000],[1787958180000,7.66000000],[1787958480000,7.74000000],[1787958780000,7.58000000],[1787959080000,7.56000000],[1787959380000,7.44000000],[1787959680000,7.48000000],[1787959980000,7.52000000],[1787960280000,7.70000000],[1787960580000,8.00000000],[1787960880000,8.14000000],[1787961180000,8.52000000],[1787961480000,8.44000000],[1787961780000,8.32000000],[1787962080000,8.50000000],[1787962380000,8.68000000],[1787962680000,8.48000000],[1787962980000,8.30000000],[1787963280000,8.14000000],[1787963580000,8.04000000],[1787963880000,7.86000000],[1787964180000,7.84000000],[1787964480000,7.78000000],[1787964780000,7.62000000],[1787965080000,7.88000000],[1787965380000,8.22000000],[1787965680000,8.14000000],[1787965980000,8.06000000],[1787966280000,8.28000000],[1787966580000,8.36000000],[1787966880000,8.50000000],[1787967180000,8.84000000],[1787967480000,9.48000000],[1787967780000,9.64000000],[1787968080000,10.08000000],[1787968380000,10.08000000],[1787968680000,10.02000000],[1787968980000,9.94000000],[1787969280000,10.20000000],[1787969580000,10.74000000],[1787969880000,11.06000000],[1787970180000,10.86000000],[1787970480000,10.38000000],[1787970780000,9.76000000],[1787971080000,9.48000000],[1787971380000,10.04000000],[1787971680000,10.10000000],[1787971980000,9.62000000],[1787972280000,9.42000000],[1787972580000,9.34000000],[1787972880000,9.32000000],[1787973180000,9.62000000],[1787973480000,9.86000000],[1787973780000,10.00000000],[1787974080000,10.18000000],[1787974380000,10.34000000],[1787974680000,10.56000000],[1787974980000,10.84000000],[1787975280000,11.12000000],[1787975580000,11.30000000],[1787975880000,11.10000000],[1787976180000,11.04000000],[1787976480000,11.48000000],[1787976780000,11.74000000],[1787977080000,11.98000000],[1787977380000,12.08000000],[1787977680000,12.42000000],[1787977980000,12.66666667],], 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,80.90000000],[1787954580000,81.10000000],[1787954880000,81.16000000],[1787955180000,81.12000000],[1787955480000,81.06000000],[1787955780000,80.74000000],[1787956080000,80.18000000],[1787956380000,80.24000000],[1787956680000,80.50000000],[1787956980000,80.72000000],[1787957280000,80.74000000],[1787957580000,80.66000000],[1787957880000,80.82000000],[1787958180000,80.86000000],[1787958480000,80.84000000],[1787958780000,80.90000000],[1787959080000,81.10000000],[1787959380000,81.04000000],[1787959680000,81.14000000],[1787959980000,81.20000000],[1787960280000,81.20000000],[1787960580000,81.22000000],[1787960880000,81.26000000],[1787961180000,81.02000000],[1787961480000,81.14000000],[1787961780000,81.24000000],[1787962080000,81.10000000],[1787962380000,80.48000000],[1787962680000,80.70000000],[1787962980000,80.80000000],[1787963280000,80.82000000],[1787963580000,80.90000000],[1787963880000,80.94000000],[1787964180000,81.04000000],[1787964480000,81.14000000],[1787964780000,81.30000000],[1787965080000,81.46000000],[1787965380000,81.60000000],[1787965680000,81.64000000],[1787965980000,81.62000000],[1787966280000,81.74000000],[1787966580000,81.72000000],[1787966880000,81.82000000],[1787967180000,81.72000000],[1787967480000,81.88000000],[1787967780000,81.96000000],[1787968080000,81.82000000],[1787968380000,81.62000000],[1787968680000,81.22000000],[1787968980000,80.88000000],[1787969280000,80.82000000],[1787969580000,80.84000000],[1787969880000,80.64000000],[1787970180000,80.28000000],[1787970480000,80.36000000],[1787970780000,80.54000000],[1787971080000,80.76000000],[1787971380000,80.80000000],[1787971680000,80.78000000],[1787971980000,80.84000000],[1787972280000,80.84000000],[1787972580000,81.06000000],[1787972880000,80.90000000],[1787973180000,80.76000000],[1787973480000,80.68000000],[1787973780000,80.74000000],[1787974080000,80.70000000],[1787974380000,80.64000000],[1787974680000,80.20000000],[1787974980000,79.40000000],[1787975280000,78.98000000],[1787975580000,78.20000000],[1787975880000,77.68000000],[1787976180000,77.52000000],[1787976480000,76.46000000],[1787976780000,76.74000000],[1787977080000,76.66000000],[1787977380000,77.42000000],[1787977680000,77.00000000],[1787977980000,75.86666667],], 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,1.559999988],[1787954580000,2.664],[1787954880000,3.024],[1787955180000,4.248],[1787955480000,2.808],[1787955780000,5.184],[1787956080000,4.104],[1787956380000,3.6],[1787956680000,1.944],[1787956980000,0.792],[1787957280000,0.792],[1787957580000,1.512],[1787957880000,2.16],[1787958180000,2.592],[1787958480000,2.088],[1787958780000,1.8],[1787959080000,1.872],[1787959380000,2.088],[1787959680000,1.08],[1787959980000,1.008],[1787960280000,1.8],[1787960580000,2.088],[1787960880000,4.032],[1787961180000,3.744],[1787961480000,2.016],[1787961780000,2.088],[1787962080000,3.096],[1787962380000,2.016],[1787962680000,2.016],[1787962980000,1.584],[1787963280000,2.088],[1787963580000,1.656],[1787963880000,2.16],[1787964180000,3.6],[1787964480000,2.952],[1787964780000,1.368],[1787965080000,2.448],[1787965380000,4.176],[1787965680000,1.872],[1787965980000,1.656],[1787966280000,1.008],[1787966580000,1.8],[1787966880000,2.16],[1787967180000,1.08],[1787967480000,2.736],[1787967780000,2.952],[1787968080000,2.376],[1787968380000,3.816],[1787968680000,2.952],[1787968980000,3.744],[1787969280000,2.304],[1787969580000,1.656],[1787969880000,2.808],[1787970180000,5.544],[1787970480000,4.68],[1787970780000,2.232],[1787971080000,1.8],[1787971380000,4.824],[1787971680000,2.952],[1787971980000,4.248],[1787972280000,4.68],[1787972580000,4.896],[1787972880000,5.256],[1787973180000,7.92],[1787973480000,6.768],[1787973780000,5.976],[1787974080000,7.92],[1787974380000,5.472],[1787974680000,5.544],[1787974980000,6.624],[1787975280000,4.536],[1787975580000,6.84],[1787975880000,3.96],[1787976180000,5.328],[1787976480000,3.888],[1787976780000,6.192],[1787977080000,8.208],[1787977380000,4.032],[1787977680000,3.96],[1787977980000,2.760000012],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,3.24],[1787954580000,3.744],[1787954880000,3.528],[1787955180000,5.184],[1787955480000,3.312],[1787955780000,6.624],[1787956080000,5.328],[1787956380000,4.32],[1787956680000,2.52],[1787956980000,1.152],[1787957280000,1.224],[1787957580000,2.016],[1787957880000,2.376],[1787958180000,3.096],[1787958480000,2.736],[1787958780000,2.304],[1787959080000,2.376],[1787959380000,2.592],[1787959680000,1.512],[1787959980000,1.224],[1787960280000,2.16],[1787960580000,2.808],[1787960880000,5.04],[1787961180000,4.68],[1787961480000,3.024],[1787961780000,2.88],[1787962080000,4.824],[1787962380000,2.952],[1787962680000,3.24],[1787962980000,2.376],[1787963280000,3.24],[1787963580000,2.304],[1787963880000,2.808],[1787964180000,4.536],[1787964480000,3.672],[1787964780000,1.872],[1787965080000,2.952],[1787965380000,4.896],[1787965680000,2.736],[1787965980000,2.16],[1787966280000,1.656],[1787966580000,2.304],[1787966880000,2.88],[1787967180000,1.44],[1787967480000,3.384],[1787967780000,4.536],[1787968080000,3.672],[1787968380000,4.752],[1787968680000,3.888],[1787968980000,4.752],[1787969280000,3.24],[1787969580000,2.232],[1787969880000,3.672],[1787970180000,6.912],[1787970480000,6.336],[1787970780000,3.096],[1787971080000,2.376],[1787971380000,6.984],[1787971680000,3.96],[1787971980000,5.4],[1787972280000,5.976],[1787972580000,6.768],[1787972880000,6.768],[1787973180000,9.216],[1787973480000,8.352],[1787973780000,8.064],[1787974080000,9.216],[1787974380000,7.848],[1787974680000,9],[1787974980000,8.208],[1787975280000,6.264],[1787975580000,8.064],[1787975880000,5.76],[1787976180000,7.128],[1787976480000,5.328],[1787976780000,7.92],[1787977080000,9.72],[1787977380000,5.76],[1787977680000,6.12],[1787977980000,4.32],], 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,305.93333333],[1787954580000,255.96000000],[1787954880000,269.46000000],[1787955180000,304.14000000],[1787955480000,287.18000000],[1787955780000,303.04000000],[1787956080000,308.74000000],[1787956380000,261.30000000],[1787956680000,228.22000000],[1787956980000,224.36000000],[1787957280000,274.46000000],[1787957580000,206.92000000],[1787957880000,240.86000000],[1787958180000,318.06000000],[1787958480000,333.68000000],[1787958780000,233.00000000],[1787959080000,300.62000000],[1787959380000,231.62000000],[1787959680000,240.12000000],[1787959980000,275.86000000],[1787960280000,250.78000000],[1787960580000,303.74000000],[1787960880000,307.88000000],[1787961180000,297.20000000],[1787961480000,222.24000000],[1787961780000,238.28000000],[1787962080000,283.82000000],[1787962380000,261.20000000],[1787962680000,310.04000000],[1787962980000,253.34000000],[1787963280000,305.42000000],[1787963580000,249.20000000],[1787963880000,173.30000000],[1787964180000,118.70000000],[1787964480000,146.84000000],[1787964780000,196.54000000],[1787965080000,294.02000000],[1787965380000,298.48000000],[1787965680000,257.14000000],[1787965980000,121.98000000],[1787966280000,97.50000000],[1787966580000,167.08000000],[1787966880000,227.06000000],[1787967180000,232.16000000],[1787967480000,187.46000000],[1787967780000,311.24000000],[1787968080000,272.40000000],[1787968380000,239.98000000],[1787968680000,271.56000000],[1787968980000,294.80000000],[1787969280000,143.98000000],[1787969580000,122.46000000],[1787969880000,145.48000000],[1787970180000,99.72000000],[1787970480000,164.44000000],[1787970780000,125.62000000],[1787971080000,56.06000000],[1787971380000,102.56000000],[1787971680000,159.06000000],[1787971980000,262.66000000],[1787972280000,287.64000000],[1787972580000,221.64000000],[1787972880000,287.02000000],[1787973180000,281.52000000],[1787973480000,308.66000000],[1787973780000,301.20000000],[1787974080000,296.52000000],[1787974380000,288.68000000],[1787974680000,318.00000000],[1787974980000,309.36000000],[1787975280000,292.80000000],[1787975580000,298.54000000],[1787975880000,270.60000000],[1787976180000,278.42000000],[1787976480000,321.14000000],[1787976780000,298.60000000],[1787977080000,287.82000000],[1787977380000,280.86000000],[1787977680000,297.42000000],[1787977980000,279.93333333],], 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; }