var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,15.30000000],[1787954580000,15.72000000],[1787954880000,16.20000000],[1787955180000,16.76000000],[1787955480000,17.08000000],[1787955780000,17.40000000],[1787956080000,17.64000000],[1787956380000,17.82000000],[1787956680000,17.90000000],[1787956980000,17.90000000],[1787957280000,17.74000000],[1787957580000,17.56000000],[1787957880000,17.52000000],[1787958180000,17.70000000],[1787958480000,17.44000000],[1787958780000,17.48000000],[1787959080000,17.68000000],[1787959380000,17.80000000],[1787959680000,17.76000000],[1787959980000,17.74000000],[1787960280000,17.58000000],[1787960580000,17.50000000],[1787960880000,17.50000000],[1787961180000,17.66000000],[1787961480000,17.86000000],[1787961780000,18.08000000],[1787962080000,18.26000000],[1787962380000,18.28000000],[1787962680000,18.24000000],[1787962980000,18.20000000],[1787963280000,18.22000000],[1787963580000,18.20000000],[1787963880000,18.24000000],[1787964180000,18.30000000],[1787964480000,18.38000000],[1787964780000,18.40000000],[1787965080000,18.40000000],[1787965380000,18.38000000],[1787965680000,18.28000000],[1787965980000,18.20000000],[1787966280000,18.20000000],[1787966580000,18.12000000],[1787966880000,18.06000000],[1787967180000,18.00000000],[1787967480000,17.90000000],[1787967780000,17.78000000],[1787968080000,17.80000000],[1787968380000,17.70000000],[1787968680000,17.70000000],[1787968980000,17.64000000],[1787969280000,17.60000000],[1787969580000,17.68000000],[1787969880000,17.64000000],[1787970180000,17.60000000],[1787970480000,17.60000000],[1787970780000,17.54000000],[1787971080000,17.44000000],[1787971380000,17.40000000],[1787971680000,17.40000000],[1787971980000,17.42000000],[1787972280000,17.50000000],[1787972580000,17.50000000],[1787972880000,17.50000000],[1787973180000,17.50000000],[1787973480000,17.50000000],[1787973780000,17.50000000],[1787974080000,17.50000000],[1787974380000,17.46000000],[1787974680000,17.36000000],[1787974980000,17.30000000],[1787975280000,17.38000000],[1787975580000,17.40000000],[1787975880000,17.44000000],[1787976180000,17.50000000],[1787976480000,17.56000000],[1787976780000,17.46000000],[1787977080000,17.40000000],[1787977380000,17.40000000],[1787977680000,17.40000000],[1787977980000,17.30000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.8],[1787954580000,7],[1787954880000,6.8],[1787955180000,6.8],[1787955480000,6.8],[1787955780000,6.9],[1787956080000,6.9],[1787956380000,6.9],[1787956680000,6.9],[1787956980000,7],[1787957280000,6.9],[1787957580000,6.9],[1787957880000,6.9],[1787958180000,7.1],[1787958480000,7],[1787958780000,7],[1787959080000,7.1],[1787959380000,7.2],[1787959680000,7.3],[1787959980000,7.4],[1787960280000,7.5],[1787960580000,7.5],[1787960880000,7.4],[1787961180000,7.5],[1787961480000,7.6],[1787961780000,7.6],[1787962080000,7.6],[1787962380000,7.7],[1787962680000,7.7],[1787962980000,7.7],[1787963280000,7.9],[1787963580000,7.8],[1787963880000,7.9],[1787964180000,7.9],[1787964480000,7.9],[1787964780000,7.9],[1787965080000,7.9],[1787965380000,7.9],[1787965680000,8],[1787965980000,8],[1787966280000,8.1],[1787966580000,8.1],[1787966880000,8.1],[1787967180000,8],[1787967480000,8.1],[1787967780000,8.2],[1787968080000,8.2],[1787968380000,8.2],[1787968680000,8.2],[1787968980000,8.2],[1787969280000,8.2],[1787969580000,8.3],[1787969880000,8.3],[1787970180000,8.3],[1787970480000,8.3],[1787970780000,8.3],[1787971080000,8.3],[1787971380000,8.3],[1787971680000,8.3],[1787971980000,8.2],[1787972280000,8.3],[1787972580000,8.4],[1787972880000,8.3],[1787973180000,8.3],[1787973480000,8.3],[1787973780000,8.3],[1787974080000,8.3],[1787974380000,8.3],[1787974680000,8.3],[1787974980000,8.2],[1787975280000,8.1],[1787975580000,8.2],[1787975880000,8.1],[1787976180000,8.1],[1787976480000,8],[1787976780000,8],[1787977080000,8],[1787977380000,8],[1787977680000,8.1],[1787977980000,8.1],], 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,8.36666667],[1787954580000,8.50000000],[1787954880000,9.14000000],[1787955180000,9.40000000],[1787955480000,9.08000000],[1787955780000,9.74000000],[1787956080000,11.10000000],[1787956380000,11.02000000],[1787956680000,11.00000000],[1787956980000,10.42000000],[1787957280000,9.80000000],[1787957580000,9.52000000],[1787957880000,9.82000000],[1787958180000,9.82000000],[1787958480000,9.38000000],[1787958780000,10.24000000],[1787959080000,10.94000000],[1787959380000,10.98000000],[1787959680000,11.50000000],[1787959980000,13.30000000],[1787960280000,12.70000000],[1787960580000,12.28000000],[1787960880000,12.84000000],[1787961180000,13.50000000],[1787961480000,13.96000000],[1787961780000,14.18000000],[1787962080000,14.90000000],[1787962380000,15.26000000],[1787962680000,15.34000000],[1787962980000,15.64000000],[1787963280000,15.88000000],[1787963580000,16.04000000],[1787963880000,16.22000000],[1787964180000,15.78000000],[1787964480000,15.96000000],[1787964780000,15.92000000],[1787965080000,16.08000000],[1787965380000,15.98000000],[1787965680000,15.64000000],[1787965980000,15.64000000],[1787966280000,15.74000000],[1787966580000,15.36000000],[1787966880000,15.56000000],[1787967180000,15.16000000],[1787967480000,15.10000000],[1787967780000,14.58000000],[1787968080000,14.98000000],[1787968380000,15.46000000],[1787968680000,15.78000000],[1787968980000,15.90000000],[1787969280000,16.04000000],[1787969580000,16.20000000],[1787969880000,15.74000000],[1787970180000,15.88000000],[1787970480000,15.90000000],[1787970780000,15.66000000],[1787971080000,15.38000000],[1787971380000,15.54000000],[1787971680000,15.78000000],[1787971980000,16.12000000],[1787972280000,16.34000000],[1787972580000,16.24000000],[1787972880000,16.24000000],[1787973180000,16.12000000],[1787973480000,16.20000000],[1787973780000,16.00000000],[1787974080000,16.10000000],[1787974380000,16.20000000],[1787974680000,16.06000000],[1787974980000,16.02000000],[1787975280000,16.28000000],[1787975580000,16.38000000],[1787975880000,16.40000000],[1787976180000,16.66000000],[1787976480000,16.60000000],[1787976780000,16.36000000],[1787977080000,16.38000000],[1787977380000,16.32000000],[1787977680000,16.10000000],[1787977980000,15.90000000],], 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,57.26666667],[1787954580000,56.26000000],[1787954880000,54.02000000],[1787955180000,51.98000000],[1787955480000,51.00000000],[1787955780000,50.46000000],[1787956080000,49.68000000],[1787956380000,49.08000000],[1787956680000,48.84000000],[1787956980000,48.96000000],[1787957280000,49.38000000],[1787957580000,49.88000000],[1787957880000,49.88000000],[1787958180000,49.92000000],[1787958480000,50.68000000],[1787958780000,50.54000000],[1787959080000,50.18000000],[1787959380000,50.04000000],[1787959680000,50.72000000],[1787959980000,51.10000000],[1787960280000,51.72000000],[1787960580000,51.94000000],[1787960880000,51.90000000],[1787961180000,51.60000000],[1787961480000,51.12000000],[1787961780000,50.42000000],[1787962080000,49.96000000],[1787962380000,50.18000000],[1787962680000,50.42000000],[1787962980000,50.58000000],[1787963280000,51.00000000],[1787963580000,51.02000000],[1787963880000,51.06000000],[1787964180000,50.74000000],[1787964480000,50.54000000],[1787964780000,50.60000000],[1787965080000,50.66000000],[1787965380000,50.80000000],[1787965680000,51.34000000],[1787965980000,51.56000000],[1787966280000,51.88000000],[1787966580000,52.18000000],[1787966880000,52.38000000],[1787967180000,52.38000000],[1787967480000,53.06000000],[1787967780000,53.58000000],[1787968080000,53.78000000],[1787968380000,53.96000000],[1787968680000,54.08000000],[1787968980000,54.24000000],[1787969280000,54.28000000],[1787969580000,54.24000000],[1787969880000,54.48000000],[1787970180000,54.52000000],[1787970480000,54.64000000],[1787970780000,54.94000000],[1787971080000,55.24000000],[1787971380000,55.44000000],[1787971680000,55.26000000],[1787971980000,55.04000000],[1787972280000,55.14000000],[1787972580000,55.20000000],[1787972880000,55.04000000],[1787973180000,55.00000000],[1787973480000,55.04000000],[1787973780000,54.84000000],[1787974080000,54.96000000],[1787974380000,55.10000000],[1787974680000,55.38000000],[1787974980000,55.18000000],[1787975280000,54.80000000],[1787975580000,54.90000000],[1787975880000,54.60000000],[1787976180000,54.18000000],[1787976480000,53.86000000],[1787976780000,54.20000000],[1787977080000,54.34000000],[1787977380000,54.36000000],[1787977680000,54.46000000],[1787977980000,54.87500000],], 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,3.96],[1787954880000,3.168],[1787955180000,3.096],[1787955480000,5.112],[1787955780000,5.976],[1787956080000,6.696],[1787956380000,4.392],[1787956680000,3.672],[1787956980000,3.24],[1787957280000,2.808],[1787957580000,2.16],[1787957880000,4.392],[1787958180000,2.52],[1787958480000,3.24],[1787958780000,4.32],[1787959080000,4.824],[1787959380000,2.952],[1787959680000,5.76],[1787959980000,5.904],[1787960280000,5.04],[1787960580000,5.4],[1787960880000,5.76],[1787961180000,7.56],[1787961480000,7.488],[1787961780000,5.76],[1787962080000,8.496],[1787962380000,7.992],[1787962680000,7.992],[1787962980000,11.808],[1787963280000,11.232],[1787963580000,12.888],[1787963880000,11.952],[1787964180000,8.712],[1787964480000,9.288],[1787964780000,9.72],[1787965080000,9.36],[1787965380000,11.736],[1787965680000,7.56],[1787965980000,9.432],[1787966280000,9.864],[1787966580000,7.992],[1787966880000,9.288],[1787967180000,5.688],[1787967480000,9.648],[1787967780000,6.84],[1787968080000,9.936],[1787968380000,13.752],[1787968680000,12.24],[1787968980000,15.192],[1787969280000,13.248],[1787969580000,10.512],[1787969880000,8.784],[1787970180000,14.544],[1787970480000,11.304],[1787970780000,10.944],[1787971080000,9.144],[1787971380000,11.448],[1787971680000,9.72],[1787971980000,10.944],[1787972280000,13.32],[1787972580000,9.504],[1787972880000,7.488],[1787973180000,7.92],[1787973480000,8.424],[1787973780000,9.216],[1787974080000,11.808],[1787974380000,11.664],[1787974680000,12.888],[1787974980000,14.256],[1787975280000,12.312],[1787975580000,12.168],[1787975880000,15.84],[1787976180000,17.568],[1787976480000,14.832],[1787976780000,11.664],[1787977080000,12.456],[1787977380000,10.728],[1787977680000,11.52],[1787977980000,9],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,5.4],[1787954580000,6.264],[1787954880000,5.4],[1787955180000,4.824],[1787955480000,7.632],[1787955780000,9.432],[1787956080000,10.728],[1787956380000,7.272],[1787956680000,5.616],[1787956980000,5.256],[1787957280000,4.176],[1787957580000,3.6],[1787957880000,7.272],[1787958180000,3.96],[1787958480000,6.048],[1787958780000,6.264],[1787959080000,8.424],[1787959380000,5.112],[1787959680000,9.792],[1787959980000,10.44],[1787960280000,7.848],[1787960580000,9],[1787960880000,9.504],[1787961180000,12.312],[1787961480000,11.664],[1787961780000,11.304],[1787962080000,13.968],[1787962380000,13.536],[1787962680000,11.232],[1787962980000,20.088],[1787963280000,15.48],[1787963580000,17.64],[1787963880000,19.512],[1787964180000,16.056],[1787964480000,16.272],[1787964780000,16.92],[1787965080000,16.272],[1787965380000,19.296],[1787965680000,12.168],[1787965980000,17.568],[1787966280000,15.984],[1787966580000,15.336],[1787966880000,15.336],[1787967180000,9.72],[1787967480000,15.336],[1787967780000,11.592],[1787968080000,15.48],[1787968380000,20.52],[1787968680000,16.56],[1787968980000,22.392],[1787969280000,20.736],[1787969580000,20.376],[1787969880000,15.912],[1787970180000,23.184],[1787970480000,17.712],[1787970780000,16.128],[1787971080000,18.216],[1787971380000,20.16],[1787971680000,15.408],[1787971980000,19.224],[1787972280000,21.168],[1787972580000,15.264],[1787972880000,14.184],[1787973180000,14.616],[1787973480000,14.904],[1787973780000,16.776],[1787974080000,20.304],[1787974380000,22.536],[1787974680000,21.096],[1787974980000,21.816],[1787975280000,21.456],[1787975580000,18.864],[1787975880000,28.368],[1787976180000,25.848],[1787976480000,22.32],[1787976780000,22.464],[1787977080000,22.392],[1787977380000,18.216],[1787977680000,20.664],[1787977980000,14.4],], 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,67.10000000],[1787954580000,102.80000000],[1787954880000,122.46000000],[1787955180000,120.96000000],[1787955480000,97.40000000],[1787955780000,100.10000000],[1787956080000,98.98000000],[1787956380000,135.94000000],[1787956680000,135.60000000],[1787956980000,127.12000000],[1787957280000,132.06000000],[1787957580000,229.68000000],[1787957880000,191.06000000],[1787958180000,132.90000000],[1787958480000,131.36000000],[1787958780000,143.40000000],[1787959080000,185.52000000],[1787959380000,233.76000000],[1787959680000,195.36000000],[1787959980000,169.00000000],[1787960280000,197.86000000],[1787960580000,185.68000000],[1787960880000,165.08000000],[1787961180000,166.12000000],[1787961480000,165.98000000],[1787961780000,154.18000000],[1787962080000,164.42000000],[1787962380000,184.62000000],[1787962680000,184.72000000],[1787962980000,176.78000000],[1787963280000,183.18000000],[1787963580000,180.86000000],[1787963880000,178.46000000],[1787964180000,167.54000000],[1787964480000,161.00000000],[1787964780000,141.90000000],[1787965080000,152.34000000],[1787965380000,154.70000000],[1787965680000,152.88000000],[1787965980000,143.84000000],[1787966280000,129.80000000],[1787966580000,137.12000000],[1787966880000,143.08000000],[1787967180000,152.80000000],[1787967480000,159.06000000],[1787967780000,147.88000000],[1787968080000,168.56000000],[1787968380000,180.68000000],[1787968680000,175.28000000],[1787968980000,175.82000000],[1787969280000,168.88000000],[1787969580000,164.26000000],[1787969880000,154.74000000],[1787970180000,161.24000000],[1787970480000,162.94000000],[1787970780000,186.22000000],[1787971080000,158.26000000],[1787971380000,155.76000000],[1787971680000,155.70000000],[1787971980000,158.30000000],[1787972280000,163.74000000],[1787972580000,165.04000000],[1787972880000,151.74000000],[1787973180000,148.68000000],[1787973480000,143.52000000],[1787973780000,148.24000000],[1787974080000,146.40000000],[1787974380000,163.56000000],[1787974680000,167.88000000],[1787974980000,171.68000000],[1787975280000,165.66000000],[1787975580000,173.32000000],[1787975880000,175.82000000],[1787976180000,173.40000000],[1787976480000,166.66000000],[1787976780000,165.70000000],[1787977080000,155.10000000],[1787977380000,150.00000000],[1787977680000,123.70000000],[1787977980000,121.55000000],], 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; }