var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1600120810000,21.80000000],[1600121409000,21.80000000],[1600122009000,21.70000000],[1600122610000,21.70000000],[1600123209000,21.70000000],[1600123809000,21.80000000],[1600124410000,21.80000000],[1600125009000,21.70000000],[1600125609000,21.70000000],[1600126209000,21.50000000],[1600126809000,21.30000000],[1600127409000,21.40000000],[1600128010000,21.30000000],[1600128609000,20.90000000],[1600129210000,20.50000000],[1600129809000,20.20000000],[1600130409000,20.00000000],[1600131009000,20.00000000],[1600131609000,20.20000000],[1600132210000,19.90000000],[1600132810000,19.70000000],[1600133409000,19.40000000],[1600134009000,19.10000000],[1600134610000,19.30000000],[1600135210000,19.10000000],[1600135809000,19.00000000],[1600136409000,19.30000000],[1600137010000,19.50000000],[1600137609000,19.80000000],[1600138210000,20.00000000],[1600138810000,20.00000000],[1600139409000,20.00000000],[1600140010000,20.10000000],[1600140610000,20.20000000],[1600141209000,20.20000000],[1600141809000,20.30000000],[1600142410000,20.30000000],[1600143009000,20.30000000],[1600143610000,20.20000000],[1600144210000,20.10000000],[1600144809000,20.10000000],[1600145410000,20.40000000],[1600146010000,20.80000000],[1600146609000,21.40000000],[1600147209000,21.90000000],[1600147810000,22.50000000],[1600148410000,22.90000000],[1600149010000,23.40000000],[1600149610000,23.80000000],[1600150210000,23.80000000],[1600150809000,24.20000000],[1600151410000,24.30000000],[1600152010000,24.30000000],[1600152609000,23.90000000],[1600153209000,23.90000000],[1600153810000,23.70000000],[1600154409000,24.00000000],[1600155010000,24.20000000],[1600155610000,24.50000000],[1600156209000,24.60000000],[1600156810000,24.60000000],[1600157410000,24.90000000],[1600158009000,25.00000000],[1600158610000,25.10000000],[1600159209000,25.40000000],[1600159809000,25.60000000],[1600160410000,25.90000000],[1600161009000,25.90000000],[1600161610000,25.90000000],[1600162210000,26.20000000],[1600162809000,26.00000000],[1600163409000,26.40000000],[1600164010000,26.90000000],[1600164610000,26.80000000],[1600165209000,26.80000000],[1600165810000,26.90000000],[1600166410000,26.90000000],[1600167010000,26.80000000],[1600167610000,27.20000000],[1600168210000,27.10000000],[1600168809000,27.40000000],[1600169410000,27.60000000],[1600170010000,27.40000000],[1600170609000,27.30000000],[1600171210000,27.60000000],[1600171810000,27.70000000],[1600172410000,27.70000000],[1600173010000,27.50000000],[1600173610000,27.60000000],[1600174210000,27.70000000],[1600174810000,27.70000000],[1600175409000,27.60000000],[1600176009000,27.70000000],[1600176609000,27.70000000],[1600177210000,27.60000000],[1600177809000,27.70000000],[1600178410000,27.60000000],[1600179010000,27.50000000],[1600179609000,27.40000000],[1600180210000,27.30000000],[1600180810000,27.30000000],[1600181409000,27.20000000],[1600182010000,27.20000000],[1600182610000,27.20000000],[1600183209000,26.90000000],[1600183810000,26.80000000],[1600184410000,26.60000000],[1600185010000,26.40000000],[1600185610000,26.30000000],[1600186210000,25.90000000],[1600186809000,25.50000000],[1600187410000,25.30000000],[1600188010000,25.10000000],[1600188609000,24.90000000],[1600189210000,24.60000000],[1600189810000,24.30000000],[1600190409000,24.10000000],[1600191010000,24.00000000],[1600191610000,23.80000000],[1600192210000,23.60000000],[1600192810000,23.40000000],[1600193410000,23.30000000],[1600194010000,23.20000000],[1600194610000,23.20000000],[1600195210000,23.30000000],[1600195809000,23.30000000],[1600196410000,23.20000000],[1600197010000,23.20000000],[1600197609000,23.10000000],[1600198210000,23.00000000],[1600198810000,23.10000000],[1600199410000,23.00000000],[1600200010000,22.90000000],[1600200610000,23.00000000],[1600201210000,22.90000000],[1600201810000,22.90000000],[1600202410000,22.80000000],[1600203010000,22.80000000],[1600203610000,22.60000000],[1600204210000,22.40000000],[1600204810000,22.30000000],[1600205410000,22.30000000],[1600206010000,22.40000000],[1600206610000,22.30000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1600120810000,15],[1600121409000,15],[1600122009000,15.1],[1600122610000,15.2],[1600123209000,15.2],[1600123809000,15.3],[1600124410000,15.3],[1600125009000,15.3],[1600125609000,15.4],[1600126209000,15.3],[1600126809000,15.2],[1600127409000,15.4],[1600128010000,15.3],[1600128609000,15.2],[1600129210000,15],[1600129809000,15],[1600130409000,15],[1600131009000,15],[1600131609000,15.1],[1600132210000,14.9],[1600132810000,15],[1600133409000,14.8],[1600134009000,14.7],[1600134610000,14.9],[1600135210000,14.8],[1600135809000,14.9],[1600136409000,15],[1600137010000,15],[1600137609000,15.1],[1600138210000,14.9],[1600138810000,14.7],[1600139409000,14.5],[1600140010000,14.2],[1600140610000,13.9],[1600141209000,13.7],[1600141809000,13.4],[1600142410000,13.1],[1600143009000,12.8],[1600143610000,12.5],[1600144210000,12.4],[1600144809000,12.2],[1600145410000,12.3],[1600146010000,12.4],[1600146609000,12.7],[1600147209000,12.7],[1600147810000,12.8],[1600148410000,12.9],[1600149010000,13.2],[1600149610000,13.1],[1600150210000,13.5],[1600150809000,13.6],[1600151410000,13.7],[1600152010000,13.6],[1600152609000,14.8],[1600153209000,15.5],[1600153810000,15.3],[1600154409000,15],[1600155010000,14.7],[1600155610000,14.7],[1600156209000,14.2],[1600156810000,13.9],[1600157410000,13.8],[1600158009000,13.8],[1600158610000,13.9],[1600159209000,14.3],[1600159809000,14.3],[1600160410000,14.7],[1600161009000,14.5],[1600161610000,14.5],[1600162210000,14.3],[1600162809000,13.9],[1600163409000,14.2],[1600164010000,14.5],[1600164610000,14.3],[1600165209000,14.5],[1600165810000,14.5],[1600166410000,14.8],[1600167010000,14.9],[1600167610000,15.2],[1600168210000,15.1],[1600168809000,15.4],[1600169410000,15.3],[1600170010000,15.2],[1600170609000,15.3],[1600171210000,15.7],[1600171810000,15.8],[1600172410000,16],[1600173010000,15.6],[1600173610000,15.8],[1600174210000,15.8],[1600174810000,15.8],[1600175409000,15.9],[1600176009000,15.7],[1600176609000,15.7],[1600177210000,15.5],[1600177809000,15.4],[1600178410000,15.5],[1600179010000,15.7],[1600179609000,15.5],[1600180210000,15.5],[1600180810000,15.8],[1600181409000,15.7],[1600182010000,15.8],[1600182610000,16],[1600183209000,16],[1600183810000,15.9],[1600184410000,16.1],[1600185010000,16.2],[1600185610000,16.1],[1600186210000,15.9],[1600186809000,15.4],[1600187410000,15.3],[1600188010000,15.2],[1600188609000,15.1],[1600189210000,15],[1600189810000,15.2],[1600190409000,15.4],[1600191010000,15.5],[1600191610000,15.6],[1600192210000,15.7],[1600192810000,15.8],[1600193410000,15.9],[1600194010000,15.9],[1600194610000,15.9],[1600195210000,16],[1600195809000,16.1],[1600196410000,16],[1600197010000,16.1],[1600197609000,16],[1600198210000,16],[1600198810000,16],[1600199410000,15.9],[1600200010000,15.9],[1600200610000,16],[1600201210000,15.9],[1600201810000,15.9],[1600202410000,15.9],[1600203010000,15.9],[1600203610000,15.8],[1600204210000,15.8],[1600204810000,15.8],[1600205410000,15.8],[1600206010000,15.8],[1600206610000,15.7],], 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: [[1600120810000,65.40000000],[1600121409000,65.60000000],[1600122009000,66.20000000],[1600122610000,66.60000000],[1600123209000,66.60000000],[1600123809000,66.60000000],[1600124410000,66.80000000],[1600125009000,67.20000000],[1600125609000,67.40000000],[1600126209000,67.80000000],[1600126809000,68.40000000],[1600127409000,68.60000000],[1600128010000,68.60000000],[1600128609000,69.80000000],[1600129210000,71.00000000],[1600129809000,72.20000000],[1600130409000,73.00000000],[1600131009000,73.20000000],[1600131609000,72.60000000],[1600132210000,73.20000000],[1600132810000,74.20000000],[1600133409000,75.00000000],[1600134009000,76.00000000],[1600134610000,76.00000000],[1600135210000,76.20000000],[1600135809000,77.00000000],[1600136409000,76.40000000],[1600137010000,75.60000000],[1600137609000,74.40000000],[1600138210000,72.60000000],[1600138810000,71.60000000],[1600139409000,70.60000000],[1600140010000,69.00000000],[1600140610000,67.40000000],[1600141209000,66.20000000],[1600141809000,64.60000000],[1600142410000,63.40000000],[1600143009000,62.20000000],[1600143610000,61.60000000],[1600144210000,61.20000000],[1600144809000,60.60000000],[1600145410000,60.00000000],[1600146010000,58.60000000],[1600146609000,57.60000000],[1600147209000,56.20000000],[1600147810000,54.40000000],[1600148410000,53.40000000],[1600149010000,52.80000000],[1600149610000,51.20000000],[1600150210000,52.60000000],[1600150809000,51.60000000],[1600151410000,51.60000000],[1600152010000,51.40000000],[1600152609000,57.00000000],[1600153209000,59.60000000],[1600153810000,59.40000000],[1600154409000,57.20000000],[1600155010000,55.40000000],[1600155610000,54.40000000],[1600156209000,52.60000000],[1600156810000,51.40000000],[1600157410000,50.20000000],[1600158009000,49.80000000],[1600158610000,50.00000000],[1600159209000,50.40000000],[1600159809000,49.80000000],[1600160410000,50.00000000],[1600161009000,49.40000000],[1600161610000,49.60000000],[1600162210000,47.80000000],[1600162809000,47.20000000],[1600163409000,47.00000000],[1600164010000,46.60000000],[1600164610000,46.40000000],[1600165209000,46.80000000],[1600165810000,46.60000000],[1600166410000,47.60000000],[1600167010000,48.00000000],[1600167610000,47.80000000],[1600168210000,48.00000000],[1600168809000,47.80000000],[1600169410000,47.20000000],[1600170010000,47.20000000],[1600170609000,47.80000000],[1600171210000,48.40000000],[1600171810000,48.20000000],[1600172410000,48.80000000],[1600173010000,48.20000000],[1600173610000,48.60000000],[1600174210000,48.40000000],[1600174810000,48.20000000],[1600175409000,49.00000000],[1600176009000,48.00000000],[1600176609000,48.00000000],[1600177210000,47.60000000],[1600177809000,47.20000000],[1600178410000,47.80000000],[1600179010000,48.60000000],[1600179609000,48.40000000],[1600180210000,48.60000000],[1600180810000,49.40000000],[1600181409000,49.60000000],[1600182010000,49.80000000],[1600182610000,50.40000000],[1600183209000,51.20000000],[1600183810000,51.40000000],[1600184410000,52.40000000],[1600185010000,53.40000000],[1600185610000,53.60000000],[1600186210000,54.20000000],[1600186809000,53.80000000],[1600187410000,53.80000000],[1600188010000,54.20000000],[1600188609000,54.60000000],[1600189210000,55.20000000],[1600189810000,57.00000000],[1600190409000,58.20000000],[1600191010000,59.20000000],[1600191610000,60.20000000],[1600192210000,61.40000000],[1600192810000,62.40000000],[1600193410000,63.20000000],[1600194010000,63.60000000],[1600194610000,63.80000000],[1600195210000,63.80000000],[1600195809000,64.00000000],[1600196410000,64.20000000],[1600197010000,64.40000000],[1600197609000,64.60000000],[1600198210000,64.80000000],[1600198810000,64.60000000],[1600199410000,64.60000000],[1600200010000,65.00000000],[1600200610000,64.80000000],[1600201210000,64.80000000],[1600201810000,64.80000000],[1600202410000,65.00000000],[1600203010000,65.20000000],[1600203610000,65.60000000],[1600204210000,66.20000000],[1600204810000,66.60000000],[1600205410000,66.60000000],[1600206010000,66.20000000],[1600206610000,66.20000000],], 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: [[1600120810000,1029.7],[1600121409000,1029.6],[1600122009000,1029.6],[1600122610000,1029.5],[1600123209000,1029.4],[1600123809000,1029.4],[1600124410000,1029.4],[1600125009000,1029.4],[1600125609000,1029.3],[1600126209000,1029.4],[1600126809000,1029.3],[1600127409000,1029.4],[1600128010000,1029.4],[1600128609000,1029.5],[1600129210000,1029.6],[1600129809000,1029.7],[1600130409000,1029.1],[1600131009000,1029.2],[1600131609000,1029.6],[1600132210000,1028.9],[1600132810000,1028.8],[1600133409000,1028.8],[1600134009000,1028.7],[1600134610000,1028.6],[1600135210000,1028.6],[1600135809000,1028.6],[1600136409000,1028.4],[1600137010000,1028.3],[1600137609000,1028.1],[1600138210000,1027.9],[1600138810000,1027.9],[1600139409000,1028],[1600140010000,1028.7],[1600140610000,1029],[1600141209000,1028.9],[1600141809000,1028.8],[1600142410000,1028.8],[1600143009000,1028.8],[1600143610000,1028.8],[1600144210000,1028.8],[1600144809000,1028.7],[1600145410000,1028.6],[1600146010000,1028.5],[1600146609000,1028.4],[1600147209000,1028.2],[1600147810000,1028.1],[1600148410000,1028],[1600149010000,1027.9],[1600149610000,1027.8],[1600150210000,1027.7],[1600150809000,1027.6],[1600151410000,1027.6],[1600152010000,1027.7],[1600152609000,1027.8],[1600153209000,1027.8],[1600153810000,1027.9],[1600154409000,1027.9],[1600155010000,1027.9],[1600155610000,1027.9],[1600156209000,1027.9],[1600156810000,1027.9],[1600157410000,1027.9],[1600158009000,1027.9],[1600158610000,1027.8],[1600159209000,1027.7],[1600159809000,1027.6],[1600160410000,1027.4],[1600161009000,1027.5],[1600161610000,1027.5],[1600162210000,1027.3],[1600162809000,1027.3],[1600163409000,1027.2],[1600164010000,1027],[1600164610000,1027],[1600165209000,1026.9],[1600165810000,1026.8],[1600166410000,1026.8],[1600167010000,1026.7],[1600167610000,1026.6],[1600168210000,1026.6],[1600168809000,1026.4],[1600169410000,1026.3],[1600170010000,1026.2],[1600170609000,1026.2],[1600171210000,1026.1],[1600171810000,1026],[1600172410000,1025.8],[1600173010000,1025.8],[1600173610000,1025.7],[1600174210000,1025.6],[1600174810000,1025.5],[1600175409000,1025.4],[1600176009000,1025.4],[1600176609000,1025.2],[1600177210000,1025.1],[1600177809000,1024.9],[1600178410000,1024.8],[1600179010000,1024.9],[1600179609000,1024.8],[1600180210000,1024.8],[1600180810000,1024.7],[1600181409000,1024.5],[1600182010000,1024.4],[1600182610000,1024.3],[1600183209000,1024.3],[1600183810000,1024.3],[1600184410000,1024.3],[1600185010000,1024.3],[1600185610000,1024.3],[1600186210000,1024.3],[1600186809000,1024.4],[1600187410000,1024.4],[1600188010000,1024.4],[1600188609000,1024.4],[1600189210000,1024.5],[1600189810000,1024.6],[1600190409000,1024.7],[1600191010000,1024.7],[1600191610000,1024.8],[1600192210000,1024.9],[1600192810000,1025],[1600193410000,1025],[1600194010000,1025.1],[1600194610000,1025.1],[1600195210000,1025.1],[1600195809000,1025.1],[1600196410000,1025.1],[1600197010000,1025.1],[1600197609000,1025],[1600198210000,1025],[1600198810000,1025],[1600199410000,1025],[1600200010000,1024.9],[1600200610000,1024.9],[1600201210000,1024.8],[1600201810000,1024.8],[1600202410000,1024.9],[1600203010000,1024.9],[1600203610000,1024.9],[1600204210000,1025],[1600204810000,1025],[1600205410000,1025],[1600206010000,1025],[1600206610000,1025],], 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: [[1600120810000,0.00000000],[1600121409000,0.00000000],[1600122009000,0.00000000],[1600122610000,0.00000000],[1600123209000,0.00000000],[1600123809000,0.00000000],[1600124410000,0.00000000],[1600125009000,0.00000000],[1600125609000,0.00000000],[1600126209000,0.00000000],[1600126809000,0.00000000],[1600127409000,0.00000000],[1600128010000,0.00000000],[1600128609000,0.00000000],[1600129210000,0.00000000],[1600129809000,0.00000000],[1600130409000,0.00000000],[1600131009000,0.00000000],[1600131609000,0.00000000],[1600132210000,0.00000000],[1600132810000,0.00000000],[1600133409000,0.00000000],[1600134009000,0.00000000],[1600134610000,0.00000000],[1600135210000,0.00000000],[1600135809000,0.00000000],[1600136409000,0.00000000],[1600137010000,0.00000000],[1600137609000,0.00000000],[1600138210000,0.00000000],[1600138810000,0.00000000],[1600139409000,0.00000000],[1600140010000,0.00000000],[1600140610000,0.00000000],[1600141209000,0.00000000],[1600141809000,0.00000000],[1600142410000,0.00000000],[1600143009000,0.00000000],[1600143610000,2.00000000],[1600144210000,4.00000000],[1600144809000,12.00000000],[1600145410000,20.00000000],[1600146010000,34.00000000],[1600146609000,52.00000000],[1600147209000,72.00000000],[1600147810000,94.00000000],[1600148410000,120.00000000],[1600149010000,144.00000000],[1600149610000,170.00000000],[1600150210000,198.00000000],[1600150809000,224.00000000],[1600151410000,250.00000000],[1600152010000,278.00000000],[1600152609000,306.00000000],[1600153209000,334.00000000],[1600153810000,362.00000000],[1600154409000,388.00000000],[1600155010000,414.00000000],[1600155610000,438.00000000],[1600156209000,462.00000000],[1600156810000,484.00000000],[1600157410000,506.00000000],[1600158009000,528.00000000],[1600158610000,548.00000000],[1600159209000,566.00000000],[1600159809000,584.00000000],[1600160410000,600.00000000],[1600161009000,614.00000000],[1600161610000,628.00000000],[1600162210000,640.00000000],[1600162809000,652.00000000],[1600163409000,662.00000000],[1600164010000,672.00000000],[1600164610000,678.00000000],[1600165209000,682.00000000],[1600165810000,686.00000000],[1600166410000,690.00000000],[1600167010000,690.00000000],[1600167610000,690.00000000],[1600168210000,686.00000000],[1600168809000,680.00000000],[1600169410000,674.00000000],[1600170010000,664.00000000],[1600170609000,656.00000000],[1600171210000,646.00000000],[1600171810000,580.00000000],[1600172410000,622.00000000],[1600173010000,606.00000000],[1600173610000,588.00000000],[1600174210000,576.00000000],[1600174810000,552.00000000],[1600175409000,538.00000000],[1600176009000,520.00000000],[1600176609000,494.00000000],[1600177210000,476.00000000],[1600177809000,454.00000000],[1600178410000,426.00000000],[1600179010000,400.00000000],[1600179609000,376.00000000],[1600180210000,348.00000000],[1600180810000,324.00000000],[1600181409000,298.00000000],[1600182010000,268.00000000],[1600182610000,236.00000000],[1600183209000,210.00000000],[1600183810000,180.00000000],[1600184410000,156.00000000],[1600185010000,132.00000000],[1600185610000,98.00000000],[1600186210000,40.00000000],[1600186809000,28.00000000],[1600187410000,22.00000000],[1600188010000,16.00000000],[1600188609000,10.00000000],[1600189210000,4.00000000],[1600189810000,2.00000000],[1600190409000,0.00000000],[1600191010000,0.00000000],[1600191610000,0.00000000],[1600192210000,0.00000000],[1600192810000,0.00000000],[1600193410000,0.00000000],[1600194010000,0.00000000],[1600194610000,0.00000000],[1600195210000,0.00000000],[1600195809000,0.00000000],[1600196410000,0.00000000],[1600197010000,0.00000000],[1600197609000,0.00000000],[1600198210000,0.00000000],[1600198810000,0.00000000],[1600199410000,0.00000000],[1600200010000,0.00000000],[1600200610000,0.00000000],[1600201210000,0.00000000],[1600201810000,0.00000000],[1600202410000,0.00000000],[1600203010000,0.00000000],[1600203610000,0.00000000],[1600204210000,0.00000000],[1600204810000,0.00000000],[1600205410000,0.00000000],[1600206010000,0.00000000],[1600206610000,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; }