var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,18.40000000],[1787954580000,18.56000000],[1787954880000,18.86000000],[1787955180000,18.82000000],[1787955480000,18.68000000],[1787955780000,18.84000000],[1787956080000,18.76000000],[1787956380000,19.12000000],[1787956680000,19.62000000],[1787956980000,20.00000000],[1787957280000,19.76000000],[1787957580000,19.32000000],[1787957880000,19.20000000],[1787958180000,18.84000000],[1787958480000,18.70000000],[1787958780000,18.56000000],[1787959080000,18.76000000],[1787959380000,19.48000000],[1787959680000,19.82000000],[1787959980000,20.06000000],[1787960280000,20.08000000],[1787960580000,19.68000000],[1787960880000,19.36000000],[1787961180000,19.02000000],[1787961480000,18.84000000],[1787961780000,18.80000000],[1787962080000,18.86000000],[1787962380000,18.76000000],[1787962680000,18.92000000],[1787962980000,19.44000000],[1787963280000,19.28000000],[1787963580000,19.04000000],[1787963880000,18.72000000],[1787964180000,18.40000000],[1787964480000,18.32000000],[1787964780000,18.34000000],[1787965080000,18.20000000],[1787965380000,18.16000000],[1787965680000,18.28000000],[1787965980000,18.38000000],[1787966280000,18.32000000],[1787966580000,18.48000000],[1787966880000,18.58000000],[1787967180000,18.88000000],[1787967480000,19.50000000],[1787967780000,19.78000000],[1787968080000,19.58000000],[1787968380000,19.48000000],[1787968680000,19.44000000],[1787968980000,19.40000000],[1787969280000,19.30000000],[1787969580000,19.12000000],[1787969880000,19.12000000],[1787970180000,19.24000000],[1787970480000,19.18000000],[1787970780000,19.10000000],[1787971080000,19.12000000],[1787971380000,19.06000000],[1787971680000,18.98000000],[1787971980000,18.68000000],[1787972280000,18.60000000],[1787972580000,18.64000000],[1787972880000,18.56000000],[1787973180000,18.58000000],[1787973480000,18.62000000],[1787973780000,18.48000000],[1787974080000,18.52000000],[1787974380000,19.24000000],[1787974680000,19.98000000],[1787974980000,20.40000000],[1787975280000,20.58000000],[1787975580000,20.56000000],[1787975880000,20.40000000],[1787976180000,20.26000000],[1787976480000,20.12000000],[1787976780000,20.04000000],[1787977080000,19.96000000],[1787977380000,19.84000000],[1787977680000,19.80000000],[1787977980000,19.70000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,10.8],[1787954580000,10.4],[1787954880000,10.6],[1787955180000,11],[1787955480000,11],[1787955780000,11.3],[1787956080000,11.3],[1787956380000,10.9],[1787956680000,10.1],[1787956980000,10.5],[1787957280000,11.1],[1787957580000,11.3],[1787957880000,11],[1787958180000,11.2],[1787958480000,10.8],[1787958780000,11.4],[1787959080000,11.1],[1787959380000,10.8],[1787959680000,10.7],[1787959980000,10.4],[1787960280000,10.7],[1787960580000,11.6],[1787960880000,11.5],[1787961180000,11.4],[1787961480000,11.3],[1787961780000,11.1],[1787962080000,11.3],[1787962380000,11.3],[1787962680000,10.6],[1787962980000,10.1],[1787963280000,10.9],[1787963580000,10.4],[1787963880000,11.2],[1787964180000,11.3],[1787964480000,10.4],[1787964780000,11.1],[1787965080000,11.2],[1787965380000,11.4],[1787965680000,11.4],[1787965980000,11.5],[1787966280000,11.8],[1787966580000,11.1],[1787966880000,11],[1787967180000,10.3],[1787967480000,9.6],[1787967780000,10.5],[1787968080000,11.2],[1787968380000,11.1],[1787968680000,11],[1787968980000,11.2],[1787969280000,11.7],[1787969580000,11.5],[1787969880000,11.1],[1787970180000,10.9],[1787970480000,11.5],[1787970780000,11.4],[1787971080000,12],[1787971380000,11.4],[1787971680000,11.9],[1787971980000,12.1],[1787972280000,11.4],[1787972580000,11.8],[1787972880000,12.4],[1787973180000,11.5],[1787973480000,12.3],[1787973780000,12.3],[1787974080000,12.1],[1787974380000,13],[1787974680000,13.1],[1787974980000,13.1],[1787975280000,13.4],[1787975580000,13.8],[1787975880000,14],[1787976180000,14.1],[1787976480000,14.3],[1787976780000,14.3],[1787977080000,14.6],[1787977380000,14.7],[1787977680000,14.9],[1787977980000,14.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,17.20000000],[1787954580000,17.16000000],[1787954880000,17.20000000],[1787955180000,17.28000000],[1787955480000,17.44000000],[1787955780000,17.54000000],[1787956080000,17.66000000],[1787956380000,17.80000000],[1787956680000,17.82000000],[1787956980000,17.90000000],[1787957280000,17.84000000],[1787957580000,17.52000000],[1787957880000,17.30000000],[1787958180000,17.28000000],[1787958480000,17.38000000],[1787958780000,17.48000000],[1787959080000,17.46000000],[1787959380000,17.52000000],[1787959680000,17.60000000],[1787959980000,17.66000000],[1787960280000,17.76000000],[1787960580000,17.80000000],[1787960880000,17.84000000],[1787961180000,17.82000000],[1787961480000,17.78000000],[1787961780000,17.72000000],[1787962080000,17.70000000],[1787962380000,17.76000000],[1787962680000,17.86000000],[1787962980000,17.88000000],[1787963280000,17.76000000],[1787963580000,17.62000000],[1787963880000,17.54000000],[1787964180000,17.56000000],[1787964480000,17.48000000],[1787964780000,17.38000000],[1787965080000,17.54000000],[1787965380000,17.54000000],[1787965680000,17.52000000],[1787965980000,17.60000000],[1787966280000,17.60000000],[1787966580000,17.70000000],[1787966880000,17.76000000],[1787967180000,17.80000000],[1787967480000,17.90000000],[1787967780000,17.90000000],[1787968080000,17.90000000],[1787968380000,17.98000000],[1787968680000,18.00000000],[1787968980000,17.92000000],[1787969280000,17.90000000],[1787969580000,18.00000000],[1787969880000,18.00000000],[1787970180000,18.00000000],[1787970480000,18.02000000],[1787970780000,18.00000000],[1787971080000,18.00000000],[1787971380000,18.00000000],[1787971680000,17.96000000],[1787971980000,17.88000000],[1787972280000,17.72000000],[1787972580000,17.70000000],[1787972880000,17.80000000],[1787973180000,17.80000000],[1787973480000,17.86000000],[1787973780000,17.80000000],[1787974080000,17.80000000],[1787974380000,17.72000000],[1787974680000,17.66000000],[1787974980000,17.64000000],[1787975280000,17.60000000],[1787975580000,17.62000000],[1787975880000,17.74000000],[1787976180000,17.80000000],[1787976480000,17.80000000],[1787976780000,17.80000000],[1787977080000,17.72000000],[1787977380000,17.76000000],[1787977680000,17.80000000],[1787977980000,17.73333333],], 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,61.46666667],[1787954580000,59.24000000],[1787954880000,59.08000000],[1787955180000,60.82000000],[1787955480000,61.00000000],[1787955780000,61.78000000],[1787956080000,62.02000000],[1787956380000,59.22000000],[1787956680000,54.28000000],[1787956980000,54.56000000],[1787957280000,57.66000000],[1787957580000,59.80000000],[1787957880000,59.36000000],[1787958180000,61.24000000],[1787958480000,60.38000000],[1787958780000,63.24000000],[1787959080000,61.16000000],[1787959380000,57.36000000],[1787959680000,55.70000000],[1787959980000,53.90000000],[1787960280000,54.90000000],[1787960580000,59.84000000],[1787960880000,60.54000000],[1787961180000,61.46000000],[1787961480000,61.74000000],[1787961780000,61.06000000],[1787962080000,61.66000000],[1787962380000,62.14000000],[1787962680000,58.76000000],[1787962980000,54.88000000],[1787963280000,58.70000000],[1787963580000,57.36000000],[1787963880000,61.96000000],[1787964180000,63.56000000],[1787964480000,60.24000000],[1787964780000,62.88000000],[1787965080000,63.90000000],[1787965380000,64.96000000],[1787965680000,64.34000000],[1787965980000,64.34000000],[1787966280000,65.90000000],[1787966580000,62.38000000],[1787966880000,61.70000000],[1787967180000,57.80000000],[1787967480000,52.82000000],[1787967780000,55.18000000],[1787968080000,58.50000000],[1787968380000,58.60000000],[1787968680000,58.42000000],[1787968980000,59.18000000],[1787969280000,61.52000000],[1787969580000,61.30000000],[1787969880000,59.86000000],[1787970180000,58.68000000],[1787970480000,61.18000000],[1787970780000,61.14000000],[1787971080000,63.62000000],[1787971380000,61.42000000],[1787971680000,63.76000000],[1787971980000,65.94000000],[1787972280000,62.94000000],[1787972580000,64.42000000],[1787972880000,67.36000000],[1787973180000,63.46000000],[1787973480000,66.98000000],[1787973780000,67.40000000],[1787974080000,66.52000000],[1787974380000,67.40000000],[1787974680000,64.74000000],[1787974980000,63.10000000],[1787975280000,63.42000000],[1787975580000,65.32000000],[1787975880000,66.86000000],[1787976180000,68.08000000],[1787976480000,69.44000000],[1787976780000,69.82000000],[1787977080000,71.24000000],[1787977380000,72.62000000],[1787977680000,73.28000000],[1787977980000,73.73333333],], 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,3.6],[1787954580000,4.968],[1787954880000,4.104],[1787955180000,3.6],[1787955480000,3.024],[1787955780000,3.528],[1787956080000,2.52],[1787956380000,2.52],[1787956680000,4.464],[1787956980000,4.032],[1787957280000,2.592],[1787957580000,2.808],[1787957880000,3.168],[1787958180000,4.68],[1787958480000,3.384],[1787958780000,4.536],[1787959080000,3.312],[1787959380000,4.176],[1787959680000,5.616],[1787959980000,4.536],[1787960280000,2.808],[1787960580000,3.384],[1787960880000,1.44],[1787961180000,2.088],[1787961480000,2.52],[1787961780000,2.16],[1787962080000,1.08],[1787962380000,2.52],[1787962680000,4.968],[1787962980000,3.744],[1787963280000,2.808],[1787963580000,3.456],[1787963880000,3.096],[1787964180000,1.512],[1787964480000,3.528],[1787964780000,3.096],[1787965080000,1.44],[1787965380000,2.232],[1787965680000,4.032],[1787965980000,2.52],[1787966280000,1.872],[1787966580000,2.592],[1787966880000,2.736],[1787967180000,5.832],[1787967480000,4.032],[1787967780000,2.088],[1787968080000,2.304],[1787968380000,2.448],[1787968680000,2.664],[1787968980000,3.096],[1787969280000,3.456],[1787969580000,3.744],[1787969880000,3.168],[1787970180000,3.168],[1787970480000,2.304],[1787970780000,2.88],[1787971080000,1.944],[1787971380000,3.456],[1787971680000,3.168],[1787971980000,1.368],[1787972280000,2.592],[1787972580000,2.304],[1787972880000,2.016],[1787973180000,3.384],[1787973480000,2.016],[1787973780000,3.672],[1787974080000,3.096],[1787974380000,5.184],[1787974680000,9.36],[1787974980000,9.576],[1787975280000,7.848],[1787975580000,11.016],[1787975880000,7.992],[1787976180000,8.352],[1787976480000,7.848],[1787976780000,3.816],[1787977080000,11.304],[1787977380000,7.776],[1787977680000,9.144],[1787977980000,9.36],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,5.4],[1787954580000,7.272],[1787954880000,5.184],[1787955180000,4.536],[1787955480000,5.04],[1787955780000,5.184],[1787956080000,4.176],[1787956380000,4.608],[1787956680000,6.48],[1787956980000,5.904],[1787957280000,3.888],[1787957580000,3.6],[1787957880000,4.032],[1787958180000,6.768],[1787958480000,5.184],[1787958780000,6.12],[1787959080000,4.824],[1787959380000,5.328],[1787959680000,7.704],[1787959980000,6.336],[1787960280000,3.744],[1787960580000,4.608],[1787960880000,2.448],[1787961180000,2.592],[1787961480000,3.888],[1787961780000,3.096],[1787962080000,1.728],[1787962380000,3.312],[1787962680000,6.408],[1787962980000,5.4],[1787963280000,3.96],[1787963580000,5.184],[1787963880000,4.32],[1787964180000,2.376],[1787964480000,5.112],[1787964780000,4.32],[1787965080000,1.872],[1787965380000,3.096],[1787965680000,5.544],[1787965980000,3.6],[1787966280000,2.88],[1787966580000,3.096],[1787966880000,4.032],[1787967180000,8.064],[1787967480000,7.704],[1787967780000,4.032],[1787968080000,2.88],[1787968380000,3.096],[1787968680000,3.168],[1787968980000,3.816],[1787969280000,4.824],[1787969580000,4.968],[1787969880000,4.464],[1787970180000,4.32],[1787970480000,3.24],[1787970780000,3.6],[1787971080000,2.664],[1787971380000,4.392],[1787971680000,4.392],[1787971980000,1.944],[1787972280000,3.24],[1787972580000,3.024],[1787972880000,2.664],[1787973180000,3.888],[1787973480000,2.664],[1787973780000,5.04],[1787974080000,5.544],[1787974380000,8.136],[1787974680000,14.688],[1787974980000,14.616],[1787975280000,12.96],[1787975580000,14.184],[1787975880000,11.016],[1787976180000,12.744],[1787976480000,11.808],[1787976780000,6.696],[1787977080000,16.992],[1787977380000,13.104],[1787977680000,14.4],[1787977980000,14.519999988],], 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,180.60000000],[1787954580000,158.14000000],[1787954880000,219.94000000],[1787955180000,242.76000000],[1787955480000,208.72000000],[1787955780000,203.18000000],[1787956080000,193.70000000],[1787956380000,128.78000000],[1787956680000,151.10000000],[1787956980000,61.66000000],[1787957280000,176.04000000],[1787957580000,214.16000000],[1787957880000,255.96000000],[1787958180000,241.38000000],[1787958480000,167.00000000],[1787958780000,200.72000000],[1787959080000,133.28000000],[1787959380000,96.24000000],[1787959680000,79.92000000],[1787959980000,76.34000000],[1787960280000,144.86000000],[1787960580000,142.88000000],[1787960880000,111.56000000],[1787961180000,211.58000000],[1787961480000,184.62000000],[1787961780000,221.00000000],[1787962080000,205.84000000],[1787962380000,158.86000000],[1787962680000,77.90000000],[1787962980000,54.24000000],[1787963280000,80.48000000],[1787963580000,74.30000000],[1787963880000,201.56000000],[1787964180000,95.94000000],[1787964480000,175.44000000],[1787964780000,209.34000000],[1787965080000,163.82000000],[1787965380000,165.86000000],[1787965680000,163.02000000],[1787965980000,207.50000000],[1787966280000,208.72000000],[1787966580000,129.14000000],[1787966880000,69.50000000],[1787967180000,97.66000000],[1787967480000,88.56000000],[1787967780000,143.38000000],[1787968080000,196.08000000],[1787968380000,72.72000000],[1787968680000,29.14000000],[1787968980000,142.52000000],[1787969280000,200.80000000],[1787969580000,143.28000000],[1787969880000,158.76000000],[1787970180000,127.56000000],[1787970480000,160.30000000],[1787970780000,80.18000000],[1787971080000,145.82000000],[1787971380000,74.58000000],[1787971680000,224.32000000],[1787971980000,203.24000000],[1787972280000,42.40000000],[1787972580000,143.86000000],[1787972880000,85.52000000],[1787973180000,76.96000000],[1787973480000,202.90000000],[1787973780000,238.34000000],[1787974080000,107.56000000],[1787974380000,307.72000000],[1787974680000,332.88000000],[1787974980000,330.38000000],[1787975280000,340.12000000],[1787975580000,213.08000000],[1787975880000,281.34000000],[1787976180000,285.76000000],[1787976480000,338.90000000],[1787976780000,267.02000000],[1787977080000,346.44000000],[1787977380000,265.92000000],[1787977680000,326.16000000],[1787977980000,325.03333333],], 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; }