var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,17.60000000],[1787954580000,17.56000000],[1787954880000,17.58000000],[1787955180000,17.46000000],[1787955480000,17.36000000],[1787955780000,17.22000000],[1787956080000,17.14000000],[1787956380000,17.10000000],[1787956680000,17.08000000],[1787956980000,17.00000000],[1787957280000,17.02000000],[1787957580000,17.00000000],[1787957880000,16.92000000],[1787958180000,16.90000000],[1787958480000,16.80000000],[1787958780000,16.80000000],[1787959080000,16.80000000],[1787959380000,16.72000000],[1787959680000,16.64000000],[1787959980000,16.60000000],[1787960280000,16.58000000],[1787960580000,16.64000000],[1787960880000,16.60000000],[1787961180000,16.66000000],[1787961480000,16.62000000],[1787961780000,16.72000000],[1787962080000,16.80000000],[1787962380000,16.74000000],[1787962680000,16.64000000],[1787962980000,16.56000000],[1787963280000,16.50000000],[1787963580000,16.40000000],[1787963880000,16.46000000],[1787964180000,16.48000000],[1787964480000,16.36000000],[1787964780000,16.20000000],[1787965080000,16.06000000],[1787965380000,15.90000000],[1787965680000,15.80000000],[1787965980000,15.70000000],[1787966280000,15.80000000],[1787966580000,16.00000000],[1787966880000,16.04000000],[1787967180000,16.14000000],[1787967480000,16.30000000],[1787967780000,16.58000000],[1787968080000,16.82000000],[1787968380000,16.90000000],[1787968680000,17.06000000],[1787968980000,17.22000000],[1787969280000,17.30000000],[1787969580000,17.12000000],[1787969880000,17.00000000],[1787970180000,16.98000000],[1787970480000,17.00000000],[1787970780000,17.08000000],[1787971080000,17.06000000],[1787971380000,16.78000000],[1787971680000,16.56000000],[1787971980000,16.44000000],[1787972280000,16.30000000],[1787972580000,16.38000000],[1787972880000,16.54000000],[1787973180000,16.70000000],[1787973480000,16.70000000],[1787973780000,16.80000000],[1787974080000,16.70000000],[1787974380000,16.86000000],[1787974680000,16.90000000],[1787974980000,16.90000000],[1787975280000,16.82000000],[1787975580000,16.84000000],[1787975880000,16.98000000],[1787976180000,17.00000000],[1787976480000,17.00000000],[1787976780000,17.06000000],[1787977080000,17.10000000],[1787977380000,17.18000000],[1787977680000,17.32000000],[1787977980000,17.34000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.1],[1787954580000,6],[1787954880000,6],[1787955180000,6],[1787955480000,6],[1787955780000,5.9],[1787956080000,5.9],[1787956380000,5.8],[1787956680000,6],[1787956980000,5.9],[1787957280000,5.9],[1787957580000,6.1],[1787957880000,6.1],[1787958180000,6.2],[1787958480000,6.1],[1787958780000,6.2],[1787959080000,6.3],[1787959380000,6.3],[1787959680000,6.3],[1787959980000,6.5],[1787960280000,6.5],[1787960580000,6.4],[1787960880000,6.6],[1787961180000,6.7],[1787961480000,6.4],[1787961780000,6.5],[1787962080000,6.7],[1787962380000,6.9],[1787962680000,6.8],[1787962980000,6.7],[1787963280000,6.8],[1787963580000,6.7],[1787963880000,6.5],[1787964180000,6.5],[1787964480000,6.4],[1787964780000,6.2],[1787965080000,6.1],[1787965380000,6.2],[1787965680000,6.3],[1787965980000,6.2],[1787966280000,6.4],[1787966580000,6.7],[1787966880000,6.7],[1787967180000,7],[1787967480000,7.1],[1787967780000,7],[1787968080000,7],[1787968380000,7.1],[1787968680000,7.2],[1787968980000,7.2],[1787969280000,7.4],[1787969580000,7.5],[1787969880000,7.4],[1787970180000,7.6],[1787970480000,7.5],[1787970780000,7.3],[1787971080000,7.4],[1787971380000,6.9],[1787971680000,6.8],[1787971980000,7.1],[1787972280000,7.1],[1787972580000,7.3],[1787972880000,7.3],[1787973180000,7.3],[1787973480000,7.4],[1787973780000,7.5],[1787974080000,7.5],[1787974380000,7.4],[1787974680000,7.5],[1787974980000,7.6],[1787975280000,7.6],[1787975580000,7.6],[1787975880000,7.6],[1787976180000,7.7],[1787976480000,7.6],[1787976780000,7.6],[1787977080000,7.8],[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,13.53333333],[1787954580000,13.36000000],[1787954880000,13.64000000],[1787955180000,13.40000000],[1787955480000,12.92000000],[1787955780000,13.14000000],[1787956080000,13.00000000],[1787956380000,12.94000000],[1787956680000,13.08000000],[1787956980000,13.30000000],[1787957280000,13.34000000],[1787957580000,13.32000000],[1787957880000,13.04000000],[1787958180000,12.80000000],[1787958480000,12.68000000],[1787958780000,13.12000000],[1787959080000,13.06000000],[1787959380000,12.88000000],[1787959680000,12.70000000],[1787959980000,12.72000000],[1787960280000,12.84000000],[1787960580000,13.40000000],[1787960880000,13.90000000],[1787961180000,14.00000000],[1787961480000,13.86000000],[1787961780000,14.16000000],[1787962080000,14.44000000],[1787962380000,13.74000000],[1787962680000,13.14000000],[1787962980000,12.92000000],[1787963280000,12.74000000],[1787963580000,12.84000000],[1787963880000,13.24000000],[1787964180000,13.22000000],[1787964480000,12.80000000],[1787964780000,12.66000000],[1787965080000,12.58000000],[1787965380000,12.64000000],[1787965680000,12.44000000],[1787965980000,12.94000000],[1787966280000,13.36000000],[1787966580000,13.60000000],[1787966880000,13.44000000],[1787967180000,13.90000000],[1787967480000,14.66000000],[1787967780000,15.00000000],[1787968080000,15.50000000],[1787968380000,15.66000000],[1787968680000,15.84000000],[1787968980000,16.00000000],[1787969280000,16.10000000],[1787969580000,15.88000000],[1787969880000,15.76000000],[1787970180000,15.72000000],[1787970480000,15.54000000],[1787970780000,15.54000000],[1787971080000,15.60000000],[1787971380000,15.44000000],[1787971680000,15.08000000],[1787971980000,14.52000000],[1787972280000,13.98000000],[1787972580000,13.92000000],[1787972880000,14.14000000],[1787973180000,14.32000000],[1787973480000,14.30000000],[1787973780000,14.62000000],[1787974080000,14.36000000],[1787974380000,14.90000000],[1787974680000,14.94000000],[1787974980000,14.98000000],[1787975280000,15.06000000],[1787975580000,15.42000000],[1787975880000,15.82000000],[1787976180000,15.72000000],[1787976480000,15.52000000],[1787976780000,15.76000000],[1787977080000,15.78000000],[1787977380000,16.18000000],[1787977680000,16.34000000],[1787977980000,16.16000000],], 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,46.96666667],[1787954580000,46.94000000],[1787954880000,46.74000000],[1787955180000,47.06000000],[1787955480000,47.36000000],[1787955780000,47.54000000],[1787956080000,47.78000000],[1787956380000,47.44000000],[1787956680000,48.32000000],[1787956980000,48.22000000],[1787957280000,48.30000000],[1787957580000,48.84000000],[1787957880000,48.96000000],[1787958180000,49.66000000],[1787958480000,49.52000000],[1787958780000,49.94000000],[1787959080000,50.30000000],[1787959380000,50.28000000],[1787959680000,50.64000000],[1787959980000,51.42000000],[1787960280000,51.42000000],[1787960580000,51.18000000],[1787960880000,52.02000000],[1787961180000,52.04000000],[1787961480000,51.22000000],[1787961780000,51.28000000],[1787962080000,51.48000000],[1787962380000,52.36000000],[1787962680000,52.58000000],[1787962980000,52.52000000],[1787963280000,52.86000000],[1787963580000,53.02000000],[1787963880000,52.14000000],[1787964180000,51.86000000],[1787964480000,51.86000000],[1787964780000,51.72000000],[1787965080000,51.88000000],[1787965380000,52.76000000],[1787965680000,53.34000000],[1787965980000,53.54000000],[1787966280000,53.66000000],[1787966580000,54.32000000],[1787966880000,54.22000000],[1787967180000,54.78000000],[1787967480000,54.82000000],[1787967780000,53.20000000],[1787968080000,52.50000000],[1787968380000,52.78000000],[1787968680000,52.52000000],[1787968980000,51.88000000],[1787969280000,52.26000000],[1787969580000,53.32000000],[1787969880000,53.46000000],[1787970180000,54.18000000],[1787970480000,53.74000000],[1787970780000,52.92000000],[1787971080000,53.32000000],[1787971380000,52.52000000],[1787971680000,52.88000000],[1787971980000,54.16000000],[1787972280000,54.70000000],[1787972580000,55.22000000],[1787972880000,54.64000000],[1787973180000,54.20000000],[1787973480000,54.46000000],[1787973780000,54.52000000],[1787974080000,54.70000000],[1787974380000,54.06000000],[1787974680000,53.96000000],[1787974980000,54.32000000],[1787975280000,54.94000000],[1787975580000,54.60000000],[1787975880000,54.24000000],[1787976180000,54.32000000],[1787976480000,54.16000000],[1787976780000,53.82000000],[1787977080000,54.58000000],[1787977380000,53.86000000],[1787977680000,53.80000000],[1787977980000,53.58000000],], 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.8],[1787954580000,2.088],[1787954880000,1.872],[1787955180000,1.656],[1787955480000,0.936],[1787955780000,0.936],[1787956080000,1.44],[1787956380000,1.872],[1787956680000,2.016],[1787956980000,2.16],[1787957280000,2.16],[1787957580000,2.016],[1787957880000,1.224],[1787958180000,1.152],[1787958480000,1.512],[1787958780000,2.16],[1787959080000,1.44],[1787959380000,0.936],[1787959680000,1.296],[1787959980000,1.44],[1787960280000,1.728],[1787960580000,1.944],[1787960880000,2.232],[1787961180000,1.656],[1787961480000,2.016],[1787961780000,1.44],[1787962080000,1.872],[1787962380000,1.512],[1787962680000,1.152],[1787962980000,1.008],[1787963280000,1.008],[1787963580000,1.152],[1787963880000,1.584],[1787964180000,2.016],[1787964480000,1.872],[1787964780000,1.656],[1787965080000,1.224],[1787965380000,1.296],[1787965680000,0.864],[1787965980000,1.368],[1787966280000,1.656],[1787966580000,0.936],[1787966880000,1.08],[1787967180000,1.512],[1787967480000,1.656],[1787967780000,2.592],[1787968080000,1.944],[1787968380000,1.512],[1787968680000,1.728],[1787968980000,3.024],[1787969280000,1.224],[1787969580000,1.296],[1787969880000,1.368],[1787970180000,1.368],[1787970480000,2.16],[1787970780000,2.232],[1787971080000,1.8],[1787971380000,1.872],[1787971680000,2.232],[1787971980000,2.016],[1787972280000,2.16],[1787972580000,2.376],[1787972880000,3.888],[1787973180000,3.816],[1787973480000,3.168],[1787973780000,1.296],[1787974080000,2.664],[1787974380000,2.232],[1787974680000,2.088],[1787974980000,0.936],[1787975280000,2.448],[1787975580000,2.304],[1787975880000,2.664],[1787976180000,2.016],[1787976480000,2.808],[1787976780000,2.16],[1787977080000,2.088],[1787977380000,2.592],[1787977680000,1.728],[1787977980000,2.376],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,2.279999988],[1787954580000,2.448],[1787954880000,2.304],[1787955180000,2.16],[1787955480000,1.368],[1787955780000,1.224],[1787956080000,1.8],[1787956380000,2.664],[1787956680000,2.52],[1787956980000,2.952],[1787957280000,2.592],[1787957580000,2.592],[1787957880000,1.656],[1787958180000,1.8],[1787958480000,1.872],[1787958780000,2.736],[1787959080000,2.232],[1787959380000,1.512],[1787959680000,1.872],[1787959980000,1.8],[1787960280000,2.232],[1787960580000,2.376],[1787960880000,2.952],[1787961180000,2.232],[1787961480000,2.592],[1787961780000,1.872],[1787962080000,2.016],[1787962380000,2.016],[1787962680000,1.728],[1787962980000,1.44],[1787963280000,1.584],[1787963580000,1.8],[1787963880000,2.736],[1787964180000,3.312],[1787964480000,2.448],[1787964780000,2.376],[1787965080000,1.584],[1787965380000,1.872],[1787965680000,1.368],[1787965980000,2.52],[1787966280000,2.808],[1787966580000,1.584],[1787966880000,2.088],[1787967180000,2.664],[1787967480000,2.88],[1787967780000,4.608],[1787968080000,3.456],[1787968380000,3.096],[1787968680000,3.168],[1787968980000,4.752],[1787969280000,2.088],[1787969580000,2.016],[1787969880000,2.52],[1787970180000,2.52],[1787970480000,3.096],[1787970780000,3.6],[1787971080000,2.664],[1787971380000,2.592],[1787971680000,2.952],[1787971980000,3.024],[1787972280000,3.24],[1787972580000,3.96],[1787972880000,6.264],[1787973180000,6.264],[1787973480000,5.544],[1787973780000,2.376],[1787974080000,4.824],[1787974380000,4.32],[1787974680000,3.816],[1787974980000,1.944],[1787975280000,3.672],[1787975580000,3.744],[1787975880000,4.392],[1787976180000,3.384],[1787976480000,4.032],[1787976780000,3.456],[1787977080000,3.024],[1787977380000,3.672],[1787977680000,3.168],[1787977980000,4.248],], 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,20.80000000],[1787954580000,24.56000000],[1787954880000,23.26000000],[1787955180000,31.94000000],[1787955480000,205.50000000],[1787955780000,215.42000000],[1787956080000,209.36000000],[1787956380000,20.26000000],[1787956680000,23.58000000],[1787956980000,23.40000000],[1787957280000,27.98000000],[1787957580000,32.84000000],[1787957880000,81.50000000],[1787958180000,74.68000000],[1787958480000,34.88000000],[1787958780000,218.18000000],[1787959080000,159.80000000],[1787959380000,165.82000000],[1787959680000,45.26000000],[1787959980000,32.56000000],[1787960280000,14.78000000],[1787960580000,30.90000000],[1787960880000,20.26000000],[1787961180000,153.58000000],[1787961480000,148.50000000],[1787961780000,340.64000000],[1787962080000,138.72000000],[1787962380000,34.10000000],[1787962680000,36.52000000],[1787962980000,78.96000000],[1787963280000,185.42000000],[1787963580000,246.78000000],[1787963880000,180.60000000],[1787964180000,204.54000000],[1787964480000,222.90000000],[1787964780000,204.78000000],[1787965080000,183.10000000],[1787965380000,124.98000000],[1787965680000,149.76000000],[1787965980000,285.62000000],[1787966280000,237.96000000],[1787966580000,163.20000000],[1787966880000,192.06000000],[1787967180000,233.42000000],[1787967480000,246.82000000],[1787967780000,223.64000000],[1787968080000,161.56000000],[1787968380000,180.38000000],[1787968680000,133.04000000],[1787968980000,344.34000000],[1787969280000,235.94000000],[1787969580000,217.86000000],[1787969880000,249.52000000],[1787970180000,150.54000000],[1787970480000,273.18000000],[1787970780000,219.70000000],[1787971080000,179.94000000],[1787971380000,198.16000000],[1787971680000,231.22000000],[1787971980000,227.66000000],[1787972280000,240.88000000],[1787972580000,231.72000000],[1787972880000,246.38000000],[1787973180000,209.02000000],[1787973480000,264.14000000],[1787973780000,276.54000000],[1787974080000,234.98000000],[1787974380000,268.62000000],[1787974680000,240.20000000],[1787974980000,147.76000000],[1787975280000,320.14000000],[1787975580000,274.32000000],[1787975880000,211.48000000],[1787976180000,205.74000000],[1787976480000,141.30000000],[1787976780000,93.84000000],[1787977080000,151.38000000],[1787977380000,26.90000000],[1787977680000,215.60000000],[1787977980000,203.70000000],], 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; }