var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1592863210000,18.40000000],[1592863811000,18.40000000],[1592864411000,18.40000000],[1592865010000,18.50000000],[1592865611000,18.50000000],[1592866211000,18.50000000],[1592866810000,18.50000000],[1592867411000,18.40000000],[1592868011000,18.30000000],[1592868610000,18.40000000],[1592869211000,18.40000000],[1592869811000,18.50000000],[1592870411000,18.40000000],[1592871011000,18.40000000],[1592871611000,18.40000000],[1592872211000,18.30000000],[1592872811000,18.20000000],[1592873411000,18.00000000],[1592874011000,18.00000000],[1592874611000,17.90000000],[1592875211000,17.90000000],[1592875811000,17.90000000],[1592876411000,17.80000000],[1592877011000,17.70000000],[1592877611000,17.70000000],[1592878211000,17.60000000],[1592878811000,17.50000000],[1592879411000,17.70000000],[1592880011000,17.70000000],[1592880611000,17.70000000],[1592881211000,17.60000000],[1592881811000,17.60000000],[1592882411000,17.70000000],[1592883011000,17.80000000],[1592883611000,17.80000000],[1592884211000,17.60000000],[1592884811000,17.60000000],[1592885411000,17.70000000],[1592886011000,17.70000000],[1592886611000,17.80000000],[1592887211000,17.70000000],[1592887811000,17.90000000],[1592888411000,17.90000000],[1592889011000,18.10000000],[1592889611000,18.10000000],[1592890211000,18.20000000],[1592890811000,18.20000000],[1592891411000,18.50000000],[1592892011000,18.70000000],[1592892611000,18.90000000],[1592893211000,19.00000000],[1592893811000,19.40000000],[1592894411000,19.40000000],[1592895011000,19.40000000],[1592895611000,19.40000000],[1592896212000,19.70000000],[1592896811000,19.90000000],[1592897411000,19.90000000],[1592898012000,20.00000000],[1592898611000,20.50000000],[1592899211000,20.60000000],[1592899812000,20.50000000],[1592900411000,20.70000000],[1592901011000,21.00000000],[1592901612000,21.00000000],[1592902211000,21.20000000],[1592902811000,21.50000000],[1592903412000,21.30000000],[1592904011000,21.00000000],[1592904611000,21.10000000],[1592905212000,21.40000000],[1592905811000,21.40000000],[1592906411000,21.70000000],[1592907012000,22.00000000],[1592907611000,21.80000000],[1592908211000,22.30000000],[1592908812000,22.40000000],[1592909411000,22.60000000],[1592910011000,22.80000000],[1592910612000,22.30000000],[1592911211000,22.50000000],[1592911811000,22.30000000],[1592912412000,22.40000000],[1592913011000,22.50000000],[1592913611000,22.70000000],[1592914211000,22.50000000],[1592914811000,22.60000000],[1592915411000,22.80000000],[1592916012000,23.00000000],[1592916611000,22.80000000],[1592917212000,22.40000000],[1592917812000,22.50000000],[1592918411000,22.30000000],[1592919011000,22.60000000],[1592919612000,22.30000000],[1592920211000,22.50000000],[1592920811000,22.30000000],[1592921412000,22.50000000],[1592922011000,22.60000000],[1592922612000,22.70000000],[1592923212000,22.60000000],[1592923811000,22.60000000],[1592924411000,22.60000000],[1592925011000,22.30000000],[1592925611000,22.30000000],[1592926212000,22.20000000],[1592926812000,22.20000000],[1592927411000,21.90000000],[1592928011000,21.80000000],[1592928612000,22.00000000],[1592929211000,21.60000000],[1592929811000,21.50000000],[1592930412000,21.20000000],[1592931011000,21.00000000],[1592931611000,20.80000000],[1592932212000,20.40000000],[1592932811000,19.90000000],[1592933411000,19.70000000],[1592934012000,19.40000000],[1592934611000,19.20000000],[1592935211000,19.10000000],[1592935811000,18.90000000],[1592936412000,18.70000000],[1592937011000,18.50000000],[1592937611000,18.40000000],[1592938212000,18.30000000],[1592938811000,18.30000000],[1592939411000,18.10000000],[1592940012000,17.90000000],[1592940611000,17.70000000],[1592941212000,17.50000000],[1592941811000,17.40000000],[1592942411000,17.30000000],[1592943012000,17.30000000],[1592943612000,17.10000000],[1592944211000,17.00000000],[1592944812000,16.90000000],[1592945412000,16.80000000],[1592946011000,16.90000000],[1592946612000,16.80000000],[1592947212000,16.70000000],[1592947811000,16.60000000],[1592948412000,16.50000000],[1592949012000,16.60000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1592863210000,12.6],[1592863811000,12.7],[1592864411000,12.8],[1592865010000,12.9],[1592865611000,12.8],[1592866211000,12.3],[1592866810000,11.9],[1592867411000,11.7],[1592868011000,11.3],[1592868610000,11],[1592869211000,10.7],[1592869811000,10.5],[1592870411000,10.2],[1592871011000,10.1],[1592871611000,10.1],[1592872211000,9.9],[1592872811000,9.9],[1592873411000,9.8],[1592874011000,9.8],[1592874611000,9.7],[1592875211000,9.8],[1592875811000,9.7],[1592876411000,9.6],[1592877011000,9.5],[1592877611000,9.5],[1592878211000,9.5],[1592878811000,9.5],[1592879411000,9.6],[1592880011000,9.6],[1592880611000,9.6],[1592881211000,9.5],[1592881811000,9.6],[1592882411000,9.7],[1592883011000,9.8],[1592883611000,9.9],[1592884211000,9.8],[1592884811000,10],[1592885411000,10.2],[1592886011000,10.2],[1592886611000,10.3],[1592887211000,10.4],[1592887811000,10.6],[1592888411000,10.8],[1592889011000,10.9],[1592889611000,10.9],[1592890211000,10.9],[1592890811000,10.7],[1592891411000,11],[1592892011000,11],[1592892611000,11.2],[1592893211000,11.2],[1592893811000,11.5],[1592894411000,11.3],[1592895011000,11.2],[1592895611000,11.2],[1592896212000,11.4],[1592896811000,11.4],[1592897411000,11.3],[1592898012000,11.5],[1592898611000,12],[1592899211000,12],[1592899812000,11.7],[1592900411000,11.8],[1592901011000,12.1],[1592901612000,11.6],[1592902211000,11.9],[1592902811000,12.3],[1592903412000,11.6],[1592904011000,11.2],[1592904611000,11.2],[1592905212000,11.7],[1592905811000,11.4],[1592906411000,11.9],[1592907012000,12.1],[1592907611000,11.6],[1592908211000,12.5],[1592908812000,12.4],[1592909411000,12.7],[1592910011000,12.8],[1592910612000,12.2],[1592911211000,12.4],[1592911811000,11.9],[1592912412000,12.2],[1592913011000,12.2],[1592913611000,12.4],[1592914211000,12.1],[1592914811000,12.1],[1592915411000,12.4],[1592916012000,12.5],[1592916611000,12],[1592917212000,11.6],[1592917812000,11.6],[1592918411000,11.3],[1592919011000,11.6],[1592919612000,11.2],[1592920211000,11.6],[1592920811000,11],[1592921412000,11.3],[1592922011000,11.6],[1592922612000,11.8],[1592923212000,11.5],[1592923811000,11.4],[1592924411000,11.4],[1592925011000,10.9],[1592925611000,11.1],[1592926212000,11.1],[1592926812000,10.8],[1592927411000,10.5],[1592928011000,10.7],[1592928612000,11.1],[1592929211000,10.9],[1592929811000,11],[1592930412000,10.7],[1592931011000,10.6],[1592931611000,10.7],[1592932212000,10.5],[1592932811000,10.2],[1592933411000,10.2],[1592934012000,10.3],[1592934611000,10.2],[1592935211000,10.1],[1592935811000,10],[1592936412000,9.7],[1592937011000,9.3],[1592937611000,9],[1592938212000,8.8],[1592938811000,8.8],[1592939411000,8.8],[1592940012000,8.7],[1592940611000,8.7],[1592941212000,8.7],[1592941811000,8.7],[1592942411000,8.6],[1592943012000,8.7],[1592943612000,8.6],[1592944211000,8.6],[1592944812000,8.6],[1592945412000,8.6],[1592946011000,8.8],[1592946612000,8.7],[1592947212000,8.7],[1592947811000,8.7],[1592948412000,8.8],[1592949012000,8.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() { dataset = [ { label: 'Vlhkosť (%)', data: [[1592863210000,69.00000000],[1592863811000,69.40000000],[1592864411000,70.20000000],[1592865010000,70.20000000],[1592865611000,69.40000000],[1592866211000,67.40000000],[1592866810000,65.60000000],[1592867411000,65.00000000],[1592868011000,63.80000000],[1592868610000,62.20000000],[1592869211000,61.20000000],[1592869811000,60.00000000],[1592870411000,59.20000000],[1592871011000,58.60000000],[1592871611000,58.60000000],[1592872211000,58.40000000],[1592872811000,58.60000000],[1592873411000,59.00000000],[1592874011000,58.80000000],[1592874611000,59.00000000],[1592875211000,59.20000000],[1592875811000,59.00000000],[1592876411000,59.00000000],[1592877011000,59.00000000],[1592877611000,59.00000000],[1592878211000,59.20000000],[1592878811000,59.60000000],[1592879411000,59.40000000],[1592880011000,59.40000000],[1592880611000,59.20000000],[1592881211000,59.40000000],[1592881811000,59.60000000],[1592882411000,59.80000000],[1592883011000,59.80000000],[1592883611000,60.00000000],[1592884211000,60.60000000],[1592884811000,61.20000000],[1592885411000,61.60000000],[1592886011000,61.80000000],[1592886611000,61.80000000],[1592887211000,62.40000000],[1592887811000,62.40000000],[1592888411000,63.20000000],[1592889011000,63.00000000],[1592889611000,63.00000000],[1592890211000,62.60000000],[1592890811000,61.80000000],[1592891411000,61.80000000],[1592892011000,61.20000000],[1592892611000,61.00000000],[1592893211000,60.80000000],[1592893811000,60.60000000],[1592894411000,59.80000000],[1592895011000,59.40000000],[1592895611000,59.20000000],[1592896212000,59.00000000],[1592896811000,58.20000000],[1592897411000,58.00000000],[1592898012000,58.20000000],[1592898611000,58.20000000],[1592899211000,58.00000000],[1592899812000,57.20000000],[1592900411000,57.00000000],[1592901011000,56.80000000],[1592901612000,55.20000000],[1592902211000,55.40000000],[1592902811000,55.80000000],[1592903412000,54.00000000],[1592904011000,53.80000000],[1592904611000,53.20000000],[1592905212000,54.00000000],[1592905811000,53.00000000],[1592906411000,53.80000000],[1592907012000,53.40000000],[1592907611000,52.60000000],[1592908211000,54.00000000],[1592908812000,53.40000000],[1592909411000,53.60000000],[1592910011000,53.40000000],[1592910612000,52.80000000],[1592911211000,53.00000000],[1592911811000,51.80000000],[1592912412000,52.60000000],[1592913011000,52.40000000],[1592913611000,52.40000000],[1592914211000,51.80000000],[1592914811000,51.60000000],[1592915411000,52.00000000],[1592916012000,51.80000000],[1592916611000,50.60000000],[1592917212000,50.60000000],[1592917812000,50.20000000],[1592918411000,49.80000000],[1592919011000,50.00000000],[1592919612000,49.40000000],[1592920211000,50.40000000],[1592920811000,49.00000000],[1592921412000,49.40000000],[1592922011000,50.00000000],[1592922612000,50.40000000],[1592923212000,49.60000000],[1592923811000,49.20000000],[1592924411000,49.20000000],[1592925011000,48.60000000],[1592925611000,49.20000000],[1592926212000,49.40000000],[1592926812000,48.60000000],[1592927411000,48.60000000],[1592928011000,49.40000000],[1592928612000,50.20000000],[1592929211000,50.60000000],[1592929811000,51.20000000],[1592930412000,51.20000000],[1592931011000,51.60000000],[1592931611000,52.40000000],[1592932212000,53.00000000],[1592932811000,53.80000000],[1592933411000,54.60000000],[1592934012000,56.00000000],[1592934611000,56.20000000],[1592935211000,56.20000000],[1592935811000,56.40000000],[1592936412000,56.20000000],[1592937011000,55.40000000],[1592937611000,54.60000000],[1592938212000,54.20000000],[1592938811000,54.00000000],[1592939411000,54.60000000],[1592940012000,55.20000000],[1592940611000,55.80000000],[1592941212000,56.40000000],[1592941811000,56.80000000],[1592942411000,56.80000000],[1592943012000,57.20000000],[1592943612000,57.60000000],[1592944211000,58.00000000],[1592944812000,58.40000000],[1592945412000,58.80000000],[1592946011000,59.00000000],[1592946612000,59.20000000],[1592947212000,59.60000000],[1592947811000,60.00000000],[1592948412000,60.40000000],[1592949012000,60.60000000],], 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: 'Atmosférický tlak (hPa)', data: [[1592863210000,1016.9],[1592863811000,1017],[1592864411000,1017.1],[1592865010000,1017.2],[1592865611000,1017.3],[1592866211000,1017.3],[1592866810000,1017.3],[1592867411000,1017.4],[1592868011000,1017.4],[1592868610000,1017.3],[1592869211000,1017.2],[1592869811000,1017.1],[1592870411000,1017],[1592871011000,1016.9],[1592871611000,1016.8],[1592872211000,1016.8],[1592872811000,1016.7],[1592873411000,1016.8],[1592874011000,1016.6],[1592874611000,1016.6],[1592875211000,1016.7],[1592875811000,1016.7],[1592876411000,1016.8],[1592877011000,1016.9],[1592877611000,1016.9],[1592878211000,1017],[1592878811000,1017.1],[1592879411000,1017.1],[1592880011000,1017.4],[1592880611000,1017.5],[1592881211000,1017.5],[1592881811000,1017.5],[1592882411000,1017.6],[1592883011000,1017.6],[1592883611000,1017.6],[1592884211000,1017.6],[1592884811000,1017.6],[1592885411000,1017.7],[1592886011000,1017.8],[1592886611000,1017.8],[1592887211000,1017.7],[1592887811000,1017.6],[1592888411000,1017.6],[1592889011000,1017.4],[1592889611000,1017.5],[1592890211000,1017.5],[1592890811000,1017.5],[1592891411000,1017.4],[1592892011000,1017.3],[1592892611000,1017.3],[1592893211000,1017.3],[1592893811000,1017.5],[1592894411000,1017.6],[1592895011000,1017.7],[1592895611000,1017.7],[1592896212000,1017.8],[1592896811000,1017.9],[1592897411000,1018.6],[1592898012000,1019.4],[1592898611000,1019.4],[1592899211000,1019.3],[1592899812000,1019.5],[1592900411000,1019.7],[1592901011000,1019.6],[1592901612000,1019.8],[1592902211000,1019.9],[1592902811000,1020.1],[1592903412000,1020.3],[1592904011000,1020.4],[1592904611000,1020.4],[1592905212000,1020.3],[1592905811000,1020.4],[1592906411000,1020.3],[1592907012000,1020.3],[1592907611000,1020.4],[1592908211000,1020.2],[1592908812000,1020.3],[1592909411000,1020.2],[1592910011000,1020.1],[1592910612000,1020.3],[1592911211000,1020.2],[1592911811000,1020.4],[1592912412000,1020.4],[1592913011000,1020.4],[1592913611000,1020.3],[1592914211000,1020.3],[1592914811000,1020.3],[1592915411000,1020.1],[1592916012000,1020.1],[1592916611000,1020.3],[1592917212000,1020.4],[1592917812000,1020.4],[1592918411000,1020.4],[1592919011000,1020.3],[1592919612000,1020.1],[1592920211000,1020.1],[1592920811000,1020.2],[1592921412000,1020.1],[1592922011000,1020.1],[1592922612000,1020.2],[1592923212000,1020.2],[1592923811000,1020.1],[1592924411000,1020.1],[1592925011000,1020.3],[1592925611000,1020.3],[1592926212000,1020.3],[1592926812000,1020.4],[1592927411000,1020.4],[1592928011000,1020.5],[1592928612000,1020.5],[1592929211000,1020.7],[1592929811000,1020.8],[1592930412000,1020.9],[1592931011000,1021],[1592931611000,1021],[1592932212000,1021.2],[1592932811000,1020.8],[1592933411000,1020.3],[1592934012000,1020.4],[1592934611000,1020.5],[1592935211000,1020.5],[1592935811000,1020.5],[1592936412000,1020.5],[1592937011000,1020.6],[1592937611000,1020.6],[1592938212000,1020.8],[1592938811000,1020.9],[1592939411000,1021.1],[1592940012000,1021.3],[1592940611000,1021.4],[1592941212000,1021.5],[1592941811000,1021.6],[1592942411000,1021.8],[1592943012000,1021.9],[1592943612000,1022],[1592944211000,1022.1],[1592944812000,1022.2],[1592945412000,1022.2],[1592946011000,1022.1],[1592946612000,1022.2],[1592947212000,1022.2],[1592947811000,1022.3],[1592948412000,1022.3],[1592949012000,1022.3],], color: '#000000' } ]; var options = { xaxes: [{ axisLabel: 'pressure', }], 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.1hPa' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-pressure-legend' } }; graphs['#chart-pressure'] = $.plot('#chart-pressure', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Slnečné žiarenie (W/m2)', data: [[1592863210000,0.00000000],[1592863811000,0.00000000],[1592864411000,0.00000000],[1592865010000,0.00000000],[1592865611000,0.00000000],[1592866211000,0.00000000],[1592866810000,0.00000000],[1592867411000,0.00000000],[1592868011000,0.00000000],[1592868610000,0.00000000],[1592869211000,0.00000000],[1592869811000,0.00000000],[1592870411000,0.00000000],[1592871011000,0.00000000],[1592871611000,0.00000000],[1592872211000,0.00000000],[1592872811000,0.00000000],[1592873411000,0.00000000],[1592874011000,0.00000000],[1592874611000,0.00000000],[1592875211000,0.00000000],[1592875811000,0.00000000],[1592876411000,0.00000000],[1592877011000,0.00000000],[1592877611000,0.00000000],[1592878211000,0.00000000],[1592878811000,0.00000000],[1592879411000,0.00000000],[1592880011000,0.00000000],[1592880611000,2.00000000],[1592881211000,4.00000000],[1592881811000,14.00000000],[1592882411000,24.00000000],[1592883011000,34.00000000],[1592883611000,40.00000000],[1592884211000,48.00000000],[1592884811000,72.00000000],[1592885411000,96.00000000],[1592886011000,116.00000000],[1592886611000,130.00000000],[1592887211000,152.00000000],[1592887811000,186.00000000],[1592888411000,216.00000000],[1592889011000,244.00000000],[1592889611000,272.00000000],[1592890211000,294.00000000],[1592890811000,322.00000000],[1592891411000,360.00000000],[1592892011000,406.00000000],[1592892611000,444.00000000],[1592893211000,474.00000000],[1592893811000,486.00000000],[1592894411000,508.00000000],[1592895011000,530.00000000],[1592895611000,556.00000000],[1592896212000,584.00000000],[1592896811000,610.00000000],[1592897411000,634.00000000],[1592898012000,656.00000000],[1592898611000,680.00000000],[1592899211000,706.00000000],[1592899812000,730.00000000],[1592900411000,746.00000000],[1592901011000,766.00000000],[1592901612000,788.00000000],[1592902211000,828.00000000],[1592902811000,822.00000000],[1592903412000,812.00000000],[1592904011000,856.00000000],[1592904611000,864.00000000],[1592905212000,880.00000000],[1592905811000,892.00000000],[1592906411000,904.00000000],[1592907012000,912.00000000],[1592907611000,920.00000000],[1592908211000,926.00000000],[1592908812000,928.00000000],[1592909411000,932.00000000],[1592910011000,936.00000000],[1592910612000,932.00000000],[1592911211000,928.00000000],[1592911811000,922.00000000],[1592912412000,914.00000000],[1592913011000,910.00000000],[1592913611000,904.00000000],[1592914211000,896.00000000],[1592914811000,886.00000000],[1592915411000,874.00000000],[1592916012000,862.00000000],[1592916611000,846.00000000],[1592917212000,824.00000000],[1592917812000,808.00000000],[1592918411000,790.00000000],[1592919011000,774.00000000],[1592919612000,758.00000000],[1592920211000,734.00000000],[1592920811000,712.00000000],[1592921412000,688.00000000],[1592922011000,662.00000000],[1592922612000,636.00000000],[1592923212000,610.00000000],[1592923811000,584.00000000],[1592924411000,560.00000000],[1592925011000,530.00000000],[1592925611000,500.00000000],[1592926212000,470.00000000],[1592926812000,440.00000000],[1592927411000,408.00000000],[1592928011000,380.00000000],[1592928612000,350.00000000],[1592929211000,318.00000000],[1592929811000,288.00000000],[1592930412000,256.00000000],[1592931011000,226.00000000],[1592931611000,198.00000000],[1592932212000,54.00000000],[1592932811000,36.00000000],[1592933411000,34.00000000],[1592934012000,30.00000000],[1592934611000,26.00000000],[1592935211000,22.00000000],[1592935811000,18.00000000],[1592936412000,16.00000000],[1592937011000,12.00000000],[1592937611000,8.00000000],[1592938212000,4.00000000],[1592938811000,2.00000000],[1592939411000,0.00000000],[1592940012000,0.00000000],[1592940611000,0.00000000],[1592941212000,0.00000000],[1592941811000,0.00000000],[1592942411000,0.00000000],[1592943012000,0.00000000],[1592943612000,0.00000000],[1592944211000,0.00000000],[1592944812000,0.00000000],[1592945412000,0.00000000],[1592946011000,0.00000000],[1592946612000,0.00000000],[1592947212000,0.00000000],[1592947811000,0.00000000],[1592948412000,0.00000000],[1592949012000,0.00000000],], color: '#ffb92f' } ]; var options = { xaxes: [{ axisLabel: 'solar_radiation', }], 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.1W/m2' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-solar-radiation-legend' } }; graphs['#chart-solar-radiation'] = $.plot('#chart-solar-radiation', 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; }