var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,23.63333333],[1787954580000,23.78000000],[1787954880000,23.86000000],[1787955180000,23.90000000],[1787955480000,23.98000000],[1787955780000,24.12000000],[1787956080000,24.10000000],[1787956380000,24.06000000],[1787956680000,24.08000000],[1787956980000,24.04000000],[1787957280000,24.10000000],[1787957580000,23.90000000],[1787957880000,23.74000000],[1787958180000,23.70000000],[1787958480000,23.88000000],[1787958780000,24.08000000],[1787959080000,24.20000000],[1787959380000,24.32000000],[1787959680000,24.32000000],[1787959980000,24.36000000],[1787960280000,24.24000000],[1787960580000,24.16000000],[1787960880000,24.20000000],[1787961180000,24.20000000],[1787961480000,24.44000000],[1787961780000,24.58000000],[1787962080000,24.54000000],[1787962380000,24.52000000],[1787962680000,24.40000000],[1787962980000,24.28000000],[1787963280000,24.20000000],[1787963580000,24.20000000],[1787963880000,24.14000000],[1787964180000,23.98000000],[1787964480000,23.86000000],[1787964780000,23.84000000],[1787965080000,24.04000000],[1787965380000,24.10000000],[1787965680000,24.14000000],[1787965980000,24.14000000],[1787966280000,23.98000000],[1787966580000,23.72000000],[1787966880000,23.64000000],[1787967180000,23.30000000],[1787967480000,22.90000000],[1787967780000,22.66000000],[1787968080000,22.56000000],[1787968380000,22.48000000],[1787968680000,22.72000000],[1787968980000,22.92000000],[1787969280000,23.08000000],[1787969580000,23.22000000],[1787969880000,23.26000000],[1787970180000,23.28000000],[1787970480000,23.30000000],[1787970780000,23.22000000],[1787971080000,23.06000000],[1787971380000,22.94000000],[1787971680000,22.76000000],[1787971980000,22.62000000],[1787972280000,22.50000000],[1787972580000,22.38000000],[1787972880000,22.26000000],[1787973180000,21.94000000],[1787973480000,21.56000000],[1787973780000,21.12000000],[1787974080000,20.82000000],[1787974380000,20.58000000],[1787974680000,20.34000000],[1787974980000,20.24000000],[1787975280000,20.20000000],[1787975580000,20.12000000],[1787975880000,20.00000000],[1787976180000,19.92000000],[1787976480000,19.84000000],[1787976780000,19.70000000],[1787977080000,19.54000000],[1787977380000,19.42000000],[1787977680000,19.38000000],[1787977980000,19.30000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.9],[1787954580000,6.8],[1787954880000,6.8],[1787955180000,6.9],[1787955480000,6.7],[1787955780000,6.8],[1787956080000,6.8],[1787956380000,6.9],[1787956680000,6.8],[1787956980000,6.8],[1787957280000,6.7],[1787957580000,6.9],[1787957880000,6.8],[1787958180000,6.8],[1787958480000,6.8],[1787958780000,6.9],[1787959080000,6.8],[1787959380000,6.9],[1787959680000,7],[1787959980000,7],[1787960280000,7],[1787960580000,6.9],[1787960880000,7],[1787961180000,7.1],[1787961480000,7.2],[1787961780000,7.3],[1787962080000,7.4],[1787962380000,7.2],[1787962680000,7.3],[1787962980000,7.3],[1787963280000,7.2],[1787963580000,7.4],[1787963880000,7.6],[1787964180000,7.8],[1787964480000,7.7],[1787964780000,7.5],[1787965080000,7.7],[1787965380000,7.8],[1787965680000,7.7],[1787965980000,7.9],[1787966280000,8.4],[1787966580000,8.1],[1787966880000,8.3],[1787967180000,8.3],[1787967480000,8.5],[1787967780000,8.5],[1787968080000,9],[1787968380000,8.9],[1787968680000,9.2],[1787968980000,9.5],[1787969280000,9.5],[1787969580000,9.2],[1787969880000,9.1],[1787970180000,8.6],[1787970480000,8.3],[1787970780000,8],[1787971080000,7.8],[1787971380000,7.7],[1787971680000,7.6],[1787971980000,7.7],[1787972280000,7.5],[1787972580000,7.6],[1787972880000,8.2],[1787973180000,12.1],[1787973480000,14.1],[1787973780000,15.3],[1787974080000,15.7],[1787974380000,16],[1787974680000,16],[1787974980000,16],[1787975280000,15.9],[1787975580000,15.8],[1787975880000,15.7],[1787976180000,15.6],[1787976480000,15.6],[1787976780000,15.6],[1787977080000,15.6],[1787977380000,15.6],[1787977680000,15.6],[1787977980000,15.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,22.56666667],[1787954580000,22.86000000],[1787954880000,23.02000000],[1787955180000,23.00000000],[1787955480000,23.10000000],[1787955780000,23.20000000],[1787956080000,23.20000000],[1787956380000,23.16000000],[1787956680000,23.14000000],[1787956980000,22.96000000],[1787957280000,22.92000000],[1787957580000,22.26000000],[1787957880000,21.88000000],[1787958180000,22.14000000],[1787958480000,22.60000000],[1787958780000,22.90000000],[1787959080000,23.10000000],[1787959380000,23.16000000],[1787959680000,23.04000000],[1787959980000,23.00000000],[1787960280000,22.74000000],[1787960580000,22.76000000],[1787960880000,22.82000000],[1787961180000,22.64000000],[1787961480000,23.18000000],[1787961780000,23.06000000],[1787962080000,22.98000000],[1787962380000,22.78000000],[1787962680000,22.86000000],[1787962980000,22.48000000],[1787963280000,22.34000000],[1787963580000,22.06000000],[1787963880000,21.80000000],[1787964180000,21.12000000],[1787964480000,21.08000000],[1787964780000,21.58000000],[1787965080000,22.24000000],[1787965380000,22.30000000],[1787965680000,22.38000000],[1787965980000,21.88000000],[1787966280000,21.20000000],[1787966580000,20.52000000],[1787966880000,20.88000000],[1787967180000,19.96000000],[1787967480000,19.30000000],[1787967780000,19.56000000],[1787968080000,19.74000000],[1787968380000,19.86000000],[1787968680000,20.22000000],[1787968980000,20.44000000],[1787969280000,20.62000000],[1787969580000,20.96000000],[1787969880000,21.02000000],[1787970180000,21.54000000],[1787970480000,21.80000000],[1787970780000,21.62000000],[1787971080000,21.46000000],[1787971380000,21.30000000],[1787971680000,21.12000000],[1787971980000,20.66000000],[1787972280000,20.42000000],[1787972580000,20.28000000],[1787972880000,20.34000000],[1787973180000,20.56000000],[1787973480000,20.48000000],[1787973780000,20.34000000],[1787974080000,20.26000000],[1787974380000,20.16000000],[1787974680000,20.02000000],[1787974980000,19.92000000],[1787975280000,19.76000000],[1787975580000,19.68000000],[1787975880000,19.54000000],[1787976180000,19.40000000],[1787976480000,19.28000000],[1787976780000,19.06000000],[1787977080000,18.80000000],[1787977380000,18.66000000],[1787977680000,18.60000000],[1787977980000,18.50000000],], 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,34.10000000],[1787954580000,33.76000000],[1787954880000,33.58000000],[1787955180000,33.56000000],[1787955480000,33.12000000],[1787955780000,33.02000000],[1787956080000,33.02000000],[1787956380000,33.26000000],[1787956680000,33.04000000],[1787956980000,33.02000000],[1787957280000,32.84000000],[1787957580000,33.66000000],[1787957880000,33.74000000],[1787958180000,33.74000000],[1787958480000,33.42000000],[1787958780000,33.18000000],[1787959080000,32.88000000],[1787959380000,32.80000000],[1787959680000,33.00000000],[1787959980000,32.98000000],[1787960280000,33.24000000],[1787960580000,33.22000000],[1787960880000,33.34000000],[1787961180000,33.48000000],[1787961480000,33.32000000],[1787961780000,33.26000000],[1787962080000,33.38000000],[1787962380000,33.08000000],[1787962680000,33.48000000],[1787962980000,33.84000000],[1787963280000,33.62000000],[1787963580000,34.28000000],[1787963880000,34.76000000],[1787964180000,35.60000000],[1787964480000,35.52000000],[1787964780000,35.10000000],[1787965080000,35.14000000],[1787965380000,35.26000000],[1787965680000,34.98000000],[1787965980000,35.56000000],[1787966280000,36.98000000],[1787966580000,36.92000000],[1787966880000,37.54000000],[1787967180000,38.46000000],[1787967480000,39.74000000],[1787967780000,40.56000000],[1787968080000,42.00000000],[1787968380000,42.02000000],[1787968680000,42.12000000],[1787968980000,42.68000000],[1787969280000,42.20000000],[1787969580000,41.00000000],[1787969880000,40.50000000],[1787970180000,39.16000000],[1787970480000,38.50000000],[1787970780000,37.86000000],[1787971080000,37.70000000],[1787971380000,37.62000000],[1787971680000,37.74000000],[1787971980000,38.46000000],[1787972280000,38.20000000],[1787972580000,38.84000000],[1787972880000,40.56000000],[1787973180000,53.90000000],[1787973480000,62.62000000],[1787973780000,69.46000000],[1787974080000,72.82000000],[1787974380000,75.10000000],[1787974680000,76.22000000],[1787974980000,76.70000000],[1787975280000,76.66000000],[1787975580000,76.28000000],[1787975880000,76.52000000],[1787976180000,76.22000000],[1787976480000,76.52000000],[1787976780000,77.28000000],[1787977080000,78.00000000],[1787977380000,78.46000000],[1787977680000,78.66000000],[1787977980000,78.80000000],], 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,11.52],[1787954580000,10.152],[1787954880000,12.816],[1787955180000,10.152],[1787955480000,9.648],[1787955780000,12.672],[1787956080000,10.44],[1787956380000,10.872],[1787956680000,12.384],[1787956980000,13.896],[1787957280000,15.192],[1787957580000,9.432],[1787957880000,12.024],[1787958180000,13.392],[1787958480000,10.872],[1787958780000,7.344],[1787959080000,9.576],[1787959380000,8.496],[1787959680000,10.008],[1787959980000,8.568],[1787960280000,6.84],[1787960580000,10.872],[1787960880000,6.84],[1787961180000,6.768],[1787961480000,9.864],[1787961780000,7.056],[1787962080000,9],[1787962380000,8.568],[1787962680000,9.72],[1787962980000,6.48],[1787963280000,6.048],[1787963580000,6.336],[1787963880000,3.6],[1787964180000,3.96],[1787964480000,4.896],[1787964780000,4.752],[1787965080000,8.28],[1787965380000,6.984],[1787965680000,6.624],[1787965980000,2.016],[1787966280000,3.168],[1787966580000,4.536],[1787966880000,3.816],[1787967180000,1.584],[1787967480000,2.664],[1787967780000,3.888],[1787968080000,4.176],[1787968380000,3.528],[1787968680000,4.104],[1787968980000,6.624],[1787969280000,4.824],[1787969580000,9.504],[1787969880000,11.232],[1787970180000,12.888],[1787970480000,11.232],[1787970780000,9.864],[1787971080000,8.136],[1787971380000,6.552],[1787971680000,5.976],[1787971980000,5.472],[1787972280000,5.472],[1787972580000,7.128],[1787972880000,8.28],[1787973180000,10.872],[1787973480000,10.512],[1787973780000,9.432],[1787974080000,8.856],[1787974380000,11.016],[1787974680000,8.352],[1787974980000,5.4],[1787975280000,6.264],[1787975580000,10.728],[1787975880000,8.784],[1787976180000,8.496],[1787976480000,8.208],[1787976780000,10.8],[1787977080000,11.304],[1787977380000,11.016],[1787977680000,10.008],[1787977980000,9.600000012],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,18.839999988],[1787954580000,18.432],[1787954880000,23.328],[1787955180000,18.072],[1787955480000,16.056],[1787955780000,23.544],[1787956080000,18.936],[1787956380000,17.28],[1787956680000,20.16],[1787956980000,21.24],[1787957280000,21.96],[1787957580000,15.408],[1787957880000,19.368],[1787958180000,19.296],[1787958480000,16.848],[1787958780000,13.104],[1787959080000,18.648],[1787959380000,14.904],[1787959680000,17.352],[1787959980000,18.288],[1787960280000,13.176],[1787960580000,18.864],[1787960880000,13.32],[1787961180000,11.592],[1787961480000,17.208],[1787961780000,11.52],[1787962080000,13.32],[1787962380000,14.112],[1787962680000,15.984],[1787962980000,10.728],[1787963280000,8.856],[1787963580000,9.72],[1787963880000,5.472],[1787964180000,5.904],[1787964480000,8.64],[1787964780000,9.072],[1787965080000,13.104],[1787965380000,10.8],[1787965680000,10.584],[1787965980000,4.32],[1787966280000,4.824],[1787966580000,7.128],[1787966880000,5.688],[1787967180000,2.448],[1787967480000,3.672],[1787967780000,5.04],[1787968080000,6.336],[1787968380000,5.472],[1787968680000,5.4],[1787968980000,9.504],[1787969280000,7.56],[1787969580000,12.528],[1787969880000,14.832],[1787970180000,17.928],[1787970480000,16.92],[1787970780000,12.816],[1787971080000,12.816],[1787971380000,10.44],[1787971680000,9.144],[1787971980000,8.568],[1787972280000,8.28],[1787972580000,11.592],[1787972880000,11.664],[1787973180000,17.784],[1787973480000,15.336],[1787973780000,17.136],[1787974080000,17.208],[1787974380000,18.144],[1787974680000,14.832],[1787974980000,10.152],[1787975280000,9.36],[1787975580000,18.792],[1787975880000,15.768],[1787976180000,13.968],[1787976480000,13.968],[1787976780000,19.512],[1787977080000,18.936],[1787977380000,20.52],[1787977680000,18],[1787977980000,14.76],], 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,54.66666667],[1787954580000,61.88000000],[1787954880000,52.14000000],[1787955180000,52.06000000],[1787955480000,60.38000000],[1787955780000,51.88000000],[1787956080000,58.52000000],[1787956380000,44.46000000],[1787956680000,49.66000000],[1787956980000,48.24000000],[1787957280000,39.60000000],[1787957580000,31.24000000],[1787957880000,30.38000000],[1787958180000,42.24000000],[1787958480000,45.94000000],[1787958780000,50.68000000],[1787959080000,60.94000000],[1787959380000,56.48000000],[1787959680000,62.92000000],[1787959980000,54.10000000],[1787960280000,67.22000000],[1787960580000,66.04000000],[1787960880000,60.78000000],[1787961180000,74.18000000],[1787961480000,76.40000000],[1787961780000,58.82000000],[1787962080000,48.02000000],[1787962380000,51.30000000],[1787962680000,54.58000000],[1787962980000,45.88000000],[1787963280000,39.64000000],[1787963580000,111.04000000],[1787963880000,157.76000000],[1787964180000,49.66000000],[1787964480000,28.00000000],[1787964780000,96.92000000],[1787965080000,64.30000000],[1787965380000,36.12000000],[1787965680000,51.16000000],[1787965980000,62.48000000],[1787966280000,120.20000000],[1787966580000,46.36000000],[1787966880000,123.64000000],[1787967180000,275.28000000],[1787967480000,295.82000000],[1787967780000,304.38000000],[1787968080000,322.68000000],[1787968380000,305.70000000],[1787968680000,268.46000000],[1787968980000,240.04000000],[1787969280000,243.50000000],[1787969580000,243.00000000],[1787969880000,239.74000000],[1787970180000,248.72000000],[1787970480000,256.60000000],[1787970780000,237.82000000],[1787971080000,252.52000000],[1787971380000,248.18000000],[1787971680000,242.08000000],[1787971980000,237.44000000],[1787972280000,240.24000000],[1787972580000,228.16000000],[1787972880000,241.44000000],[1787973180000,252.20000000],[1787973480000,251.24000000],[1787973780000,268.14000000],[1787974080000,266.62000000],[1787974380000,274.42000000],[1787974680000,271.28000000],[1787974980000,236.94000000],[1787975280000,321.58000000],[1787975580000,324.00000000],[1787975880000,337.44000000],[1787976180000,327.02000000],[1787976480000,318.96000000],[1787976780000,333.54000000],[1787977080000,329.98000000],[1787977380000,326.86000000],[1787977680000,319.32000000],[1787977980000,327.06666667],], 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; }