var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,18.40000000],[1787954580000,18.30000000],[1787954880000,18.26000000],[1787955180000,18.20000000],[1787955480000,18.22000000],[1787955780000,18.30000000],[1787956080000,18.36000000],[1787956380000,18.30000000],[1787956680000,18.30000000],[1787956980000,18.30000000],[1787957280000,18.28000000],[1787957580000,18.20000000],[1787957880000,18.20000000],[1787958180000,18.20000000],[1787958480000,18.24000000],[1787958780000,18.30000000],[1787959080000,18.30000000],[1787959380000,18.34000000],[1787959680000,18.30000000],[1787959980000,18.30000000],[1787960280000,18.24000000],[1787960580000,18.18000000],[1787960880000,18.08000000],[1787961180000,18.00000000],[1787961480000,17.96000000],[1787961780000,17.82000000],[1787962080000,17.72000000],[1787962380000,17.70000000],[1787962680000,17.72000000],[1787962980000,17.74000000],[1787963280000,17.70000000],[1787963580000,17.64000000],[1787963880000,17.56000000],[1787964180000,17.44000000],[1787964480000,17.32000000],[1787964780000,17.40000000],[1787965080000,18.06000000],[1787965380000,18.38000000],[1787965680000,18.32000000],[1787965980000,18.30000000],[1787966280000,18.30000000],[1787966580000,18.30000000],[1787966880000,18.32000000],[1787967180000,18.38000000],[1787967480000,18.26000000],[1787967780000,18.20000000],[1787968080000,18.20000000],[1787968380000,18.18000000],[1787968680000,18.08000000],[1787968980000,17.94000000],[1787969280000,17.98000000],[1787969580000,17.92000000],[1787969880000,18.02000000],[1787970180000,18.38000000],[1787970480000,18.24000000],[1787970780000,18.08000000],[1787971080000,17.98000000],[1787971380000,17.90000000],[1787971680000,17.90000000],[1787971980000,17.88000000],[1787972280000,17.80000000],[1787972580000,17.80000000],[1787972880000,17.92000000],[1787973180000,18.02000000],[1787973480000,18.20000000],[1787973780000,18.20000000],[1787974080000,18.20000000],[1787974380000,18.20000000],[1787974680000,18.22000000],[1787974980000,18.34000000],[1787975280000,18.40000000],[1787975580000,18.50000000],[1787975880000,18.50000000],[1787976180000,18.44000000],[1787976480000,18.42000000],[1787976780000,18.36000000],[1787977080000,18.28000000],[1787977380000,18.20000000],[1787977680000,18.16000000],[1787977980000,18.10000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,8.3],[1787954580000,7.8],[1787954880000,8],[1787955180000,8],[1787955480000,7.9],[1787955780000,7.9],[1787956080000,8],[1787956380000,7.8],[1787956680000,7.7],[1787956980000,7.8],[1787957280000,7.9],[1787957580000,7.8],[1787957880000,7.9],[1787958180000,8.3],[1787958480000,8.1],[1787958780000,8.5],[1787959080000,8.5],[1787959380000,8.9],[1787959680000,8.9],[1787959980000,9.3],[1787960280000,9.6],[1787960580000,8.9],[1787960880000,9],[1787961180000,8.7],[1787961480000,8.7],[1787961780000,8.6],[1787962080000,8.8],[1787962380000,8.8],[1787962680000,8.2],[1787962980000,8.5],[1787963280000,8.7],[1787963580000,8.6],[1787963880000,8.7],[1787964180000,8.7],[1787964480000,8.5],[1787964780000,8.2],[1787965080000,7.9],[1787965380000,8.6],[1787965680000,9.9],[1787965980000,9.7],[1787966280000,9.5],[1787966580000,9.2],[1787966880000,9],[1787967180000,9.6],[1787967480000,9.2],[1787967780000,8.9],[1787968080000,8.3],[1787968380000,8.6],[1787968680000,8.5],[1787968980000,8.5],[1787969280000,8.5],[1787969580000,8.7],[1787969880000,8.5],[1787970180000,8.3],[1787970480000,9.1],[1787970780000,9.1],[1787971080000,9],[1787971380000,9],[1787971680000,9.3],[1787971980000,9.1],[1787972280000,9.1],[1787972580000,9.1],[1787972880000,9.2],[1787973180000,9.6],[1787973480000,10],[1787973780000,9.5],[1787974080000,9.4],[1787974380000,9.4],[1787974680000,9.4],[1787974980000,9.1],[1787975280000,9.1],[1787975580000,9],[1787975880000,9.2],[1787976180000,9.3],[1787976480000,9.3],[1787976780000,9.3],[1787977080000,9.4],[1787977380000,9.5],[1787977680000,9.7],[1787977980000,9.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,16.20000000],[1787954580000,16.44000000],[1787954880000,16.12000000],[1787955180000,16.44000000],[1787955480000,16.60000000],[1787955780000,16.64000000],[1787956080000,16.52000000],[1787956380000,16.36000000],[1787956680000,16.18000000],[1787956980000,16.20000000],[1787957280000,16.10000000],[1787957580000,16.28000000],[1787957880000,16.56000000],[1787958180000,16.82000000],[1787958480000,17.18000000],[1787958780000,17.40000000],[1787959080000,17.50000000],[1787959380000,17.54000000],[1787959680000,17.48000000],[1787959980000,17.34000000],[1787960280000,16.94000000],[1787960580000,16.44000000],[1787960880000,16.26000000],[1787961180000,15.98000000],[1787961480000,16.04000000],[1787961780000,15.54000000],[1787962080000,15.48000000],[1787962380000,15.52000000],[1787962680000,15.72000000],[1787962980000,16.14000000],[1787963280000,16.02000000],[1787963580000,15.70000000],[1787963880000,15.68000000],[1787964180000,15.60000000],[1787964480000,15.50000000],[1787964780000,15.58000000],[1787965080000,15.78000000],[1787965380000,16.24000000],[1787965680000,16.60000000],[1787965980000,16.98000000],[1787966280000,17.28000000],[1787966580000,17.24000000],[1787966880000,17.26000000],[1787967180000,16.96000000],[1787967480000,16.34000000],[1787967780000,15.94000000],[1787968080000,15.74000000],[1787968380000,15.86000000],[1787968680000,15.88000000],[1787968980000,15.64000000],[1787969280000,15.40000000],[1787969580000,15.54000000],[1787969880000,15.86000000],[1787970180000,15.90000000],[1787970480000,15.88000000],[1787970780000,15.74000000],[1787971080000,15.62000000],[1787971380000,15.72000000],[1787971680000,16.20000000],[1787971980000,15.98000000],[1787972280000,15.92000000],[1787972580000,16.48000000],[1787972880000,17.02000000],[1787973180000,17.32000000],[1787973480000,17.40000000],[1787973780000,17.48000000],[1787974080000,17.46000000],[1787974380000,17.40000000],[1787974680000,17.44000000],[1787974980000,17.42000000],[1787975280000,17.50000000],[1787975580000,17.40000000],[1787975880000,17.20000000],[1787976180000,16.88000000],[1787976480000,16.86000000],[1787976780000,16.74000000],[1787977080000,16.70000000],[1787977380000,16.74000000],[1787977680000,16.64000000],[1787977980000,16.77500000],], 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,52.03333333],[1787954580000,50.66000000],[1787954880000,51.20000000],[1787955180000,51.60000000],[1787955480000,51.16000000],[1787955780000,50.88000000],[1787956080000,50.92000000],[1787956380000,50.60000000],[1787956680000,50.30000000],[1787956980000,50.50000000],[1787957280000,51.06000000],[1787957580000,50.76000000],[1787957880000,51.22000000],[1787958180000,52.62000000],[1787958480000,51.68000000],[1787958780000,52.90000000],[1787959080000,52.94000000],[1787959380000,54.14000000],[1787959680000,54.60000000],[1787959980000,55.96000000],[1787960280000,57.40000000],[1787960580000,55.00000000],[1787960880000,55.40000000],[1787961180000,54.64000000],[1787961480000,54.94000000],[1787961780000,55.18000000],[1787962080000,55.92000000],[1787962380000,56.34000000],[1787962680000,53.88000000],[1787962980000,54.92000000],[1787963280000,55.64000000],[1787963580000,55.68000000],[1787963880000,56.16000000],[1787964180000,56.60000000],[1787964480000,56.54000000],[1787964780000,54.96000000],[1787965080000,51.50000000],[1787965380000,53.18000000],[1787965680000,57.96000000],[1787965980000,57.44000000],[1787966280000,56.72000000],[1787966580000,55.62000000],[1787966880000,54.68000000],[1787967180000,56.94000000],[1787967480000,55.58000000],[1787967780000,54.76000000],[1787968080000,52.74000000],[1787968380000,53.60000000],[1787968680000,53.76000000],[1787968980000,54.22000000],[1787969280000,54.14000000],[1787969580000,54.88000000],[1787969880000,53.86000000],[1787970180000,52.18000000],[1787970480000,55.50000000],[1787970780000,55.86000000],[1787971080000,55.86000000],[1787971380000,56.04000000],[1787971680000,57.26000000],[1787971980000,56.72000000],[1787972280000,56.76000000],[1787972580000,56.92000000],[1787972880000,57.04000000],[1787973180000,58.00000000],[1787973480000,58.94000000],[1787973780000,57.16000000],[1787974080000,56.64000000],[1787974380000,56.58000000],[1787974680000,56.42000000],[1787974980000,55.18000000],[1787975280000,54.92000000],[1787975580000,54.08000000],[1787975880000,54.72000000],[1787976180000,55.48000000],[1787976480000,55.36000000],[1787976780000,55.58000000],[1787977080000,56.44000000],[1787977380000,57.16000000],[1787977680000,57.78000000],[1787977980000,58.75000000],], 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,5.159999988],[1787954580000,5.472],[1787954880000,2.88],[1787955180000,5.4],[1787955480000,3.96],[1787955780000,3.6],[1787956080000,3.96],[1787956380000,3.816],[1787956680000,4.536],[1787956980000,3.6],[1787957280000,2.448],[1787957580000,4.536],[1787957880000,3.744],[1787958180000,3.528],[1787958480000,3.024],[1787958780000,4.464],[1787959080000,3.456],[1787959380000,4.248],[1787959680000,3.672],[1787959980000,4.896],[1787960280000,3.672],[1787960580000,2.808],[1787960880000,4.968],[1787961180000,4.248],[1787961480000,4.392],[1787961780000,2.304],[1787962080000,4.536],[1787962380000,3.024],[1787962680000,3.024],[1787962980000,5.112],[1787963280000,4.968],[1787963580000,4.248],[1787963880000,5.328],[1787964180000,4.752],[1787964480000,4.968],[1787964780000,3.888],[1787965080000,1.368],[1787965380000,3.384],[1787965680000,2.88],[1787965980000,1.8],[1787966280000,3.168],[1787966580000,1.44],[1787966880000,4.32],[1787967180000,4.032],[1787967480000,3.6],[1787967780000,2.016],[1787968080000,1.944],[1787968380000,3.528],[1787968680000,3.168],[1787968980000,2.232],[1787969280000,1.656],[1787969580000,3.96],[1787969880000,3.168],[1787970180000,2.52],[1787970480000,2.592],[1787970780000,2.232],[1787971080000,3.096],[1787971380000,3.096],[1787971680000,5.688],[1787971980000,3.312],[1787972280000,4.32],[1787972580000,2.304],[1787972880000,2.52],[1787973180000,3.456],[1787973480000,1.944],[1787973780000,3.96],[1787974080000,3.888],[1787974380000,3.312],[1787974680000,3.096],[1787974980000,2.736],[1787975280000,2.592],[1787975580000,2.304],[1787975880000,2.592],[1787976180000,3.384],[1787976480000,2.952],[1787976780000,3.24],[1787977080000,2.52],[1787977380000,3.24],[1787977680000,2.16],[1787977980000,3.51],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,6.720000012],[1787954580000,6.912],[1787954880000,3.384],[1787955180000,7.344],[1787955480000,5.832],[1787955780000,4.896],[1787956080000,5.328],[1787956380000,5.184],[1787956680000,5.616],[1787956980000,4.968],[1787957280000,3.024],[1787957580000,5.688],[1787957880000,4.536],[1787958180000,4.392],[1787958480000,3.744],[1787958780000,5.76],[1787959080000,4.32],[1787959380000,5.904],[1787959680000,4.392],[1787959980000,6.48],[1787960280000,4.536],[1787960580000,3.24],[1787960880000,6.48],[1787961180000,6.048],[1787961480000,6.48],[1787961780000,2.88],[1787962080000,5.832],[1787962380000,3.456],[1787962680000,3.672],[1787962980000,6.624],[1787963280000,6.336],[1787963580000,5.688],[1787963880000,6.624],[1787964180000,6.768],[1787964480000,6.264],[1787964780000,5.904],[1787965080000,2.232],[1787965380000,4.824],[1787965680000,4.176],[1787965980000,2.88],[1787966280000,4.104],[1787966580000,2.376],[1787966880000,5.4],[1787967180000,5.4],[1787967480000,4.392],[1787967780000,2.664],[1787968080000,2.376],[1787968380000,4.176],[1787968680000,3.744],[1787968980000,2.88],[1787969280000,2.52],[1787969580000,5.904],[1787969880000,3.816],[1787970180000,3.744],[1787970480000,3.6],[1787970780000,3.024],[1787971080000,3.96],[1787971380000,4.32],[1787971680000,7.704],[1787971980000,4.896],[1787972280000,6.192],[1787972580000,3.096],[1787972880000,3.024],[1787973180000,4.608],[1787973480000,2.88],[1787973780000,4.968],[1787974080000,4.752],[1787974380000,4.752],[1787974680000,4.536],[1787974980000,4.824],[1787975280000,3.888],[1787975580000,2.736],[1787975880000,3.24],[1787976180000,5.112],[1787976480000,3.672],[1787976780000,4.248],[1787977080000,3.096],[1787977380000,4.032],[1787977680000,2.376],[1787977980000,4.05],], 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,317.93333333],[1787954580000,314.42000000],[1787954880000,313.36000000],[1787955180000,318.08000000],[1787955480000,300.56000000],[1787955780000,303.90000000],[1787956080000,304.46000000],[1787956380000,308.36000000],[1787956680000,320.46000000],[1787956980000,303.18000000],[1787957280000,312.56000000],[1787957580000,307.16000000],[1787957880000,305.16000000],[1787958180000,312.62000000],[1787958480000,309.04000000],[1787958780000,319.40000000],[1787959080000,326.42000000],[1787959380000,315.46000000],[1787959680000,322.58000000],[1787959980000,329.68000000],[1787960280000,314.06000000],[1787960580000,312.64000000],[1787960880000,326.22000000],[1787961180000,292.26000000],[1787961480000,329.72000000],[1787961780000,290.90000000],[1787962080000,317.30000000],[1787962380000,300.92000000],[1787962680000,299.04000000],[1787962980000,324.44000000],[1787963280000,317.14000000],[1787963580000,317.32000000],[1787963880000,323.70000000],[1787964180000,321.60000000],[1787964480000,314.64000000],[1787964780000,276.88000000],[1787965080000,203.58000000],[1787965380000,256.66000000],[1787965680000,210.12000000],[1787965980000,291.76000000],[1787966280000,327.40000000],[1787966580000,217.32000000],[1787966880000,312.68000000],[1787967180000,318.50000000],[1787967480000,290.06000000],[1787967780000,285.38000000],[1787968080000,274.30000000],[1787968380000,325.90000000],[1787968680000,296.14000000],[1787968980000,264.72000000],[1787969280000,270.74000000],[1787969580000,223.08000000],[1787969880000,262.24000000],[1787970180000,242.14000000],[1787970480000,214.90000000],[1787970780000,252.92000000],[1787971080000,331.20000000],[1787971380000,326.74000000],[1787971680000,323.96000000],[1787971980000,286.46000000],[1787972280000,297.50000000],[1787972580000,275.82000000],[1787972880000,275.86000000],[1787973180000,294.00000000],[1787973480000,300.32000000],[1787973780000,322.66000000],[1787974080000,322.58000000],[1787974380000,308.34000000],[1787974680000,285.32000000],[1787974980000,265.40000000],[1787975280000,269.56000000],[1787975580000,281.66000000],[1787975880000,311.62000000],[1787976180000,299.64000000],[1787976480000,298.20000000],[1787976780000,300.76000000],[1787977080000,304.04000000],[1787977380000,308.00000000],[1787977680000,302.88000000],[1787977980000,334.12500000],], 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; }