- Home
- Weather Forecasts
- UK Forecasts
- 14 Day Forecast
Time |
---|
Weather | Temp | Rain Risk | Wind | Air Pressure | Cloud Cover | Confidence |
---|---|---|---|---|---|---|
"+df(jjx);}else{var inc=1;if (exts[row] % 3 ==0){inc=3;} to=df(hx)+"
to
"+df(hx+inc);}hx="tm"+row;document.getElementById(hx).innerHTML=to;var hidden=""; if (exts[row] <=1 && exts[row] % 3 != 0 && expanded==0){hidden="none";}hx="row"+row;$(document).find("."+hx).each(function(){this.style.display=hidden;});var tempa=decodetemp(forecastdata.substr((row*linelength)+0,2));var winddira=dk64(forecastdata.substr((row*linelength)+2,2));var windspeeda=roundit(dk64(forecastdata.substr((row*linelength)+4,2))/10,0);var airpressurea=decodeairpressure(forecastdata.substr((row*linelength)+6,2));var eprecchance=dk64(forecastdata.substr((row*linelength)+8,2));var cloudcovera=dk64(forecastdata.substr((row*linelength)+10,2));var imagea=dk64(forecastdata.substr((row*linelength)+12,1));var cloudcovers=dk64(forecastdata.substr((row*linelength)+13,2));var precs=dk64(forecastdata.substr((row*linelength)+15,3));var temps=decodetemp(forecastdata.substr((row*linelength)+18,2));var windspeeds=(dk64(forecastdata.substr((row*linelength)+20,2)));var airpressures=dk64(forecastdata.substr((row*linelength)+22,2));;if (rd==0 && exts[row]<1 && exts[row] % 3==0) { var row2=row+1; var row3=row+2;}var desc=pictodesc(numtopic(imagea)); var imageout=''; hx="we"+row; document.getElementById(hx).innerHTML=imageout;var bc=gett2mcolour(roundit(tempa,0)); temp='
'+roundit(tempa,0)+"°c
"; hx="te"+row; document.getElementById(hx).innerHTML=temp;var cl=getriskcol(eprecchance); hx="pr"+row; var eprecchance='
'+eprecchance+"%
"; document.getElementById(hx).innerHTML=eprecchance; var wo=""; wo=windspeeda+"mph"; var hold=windwords(winddira); var holdb=new Array(); holdb=hold.split(","); var windout='
'+''+wo; hx="wi"+row; document.getElementById(hx).innerHTML=windout;airpressure=roundit(airpressurea,0)+"mb"; hx="ap"+row; document.getElementById(hx).innerHTML=airpressure;var cl=getcloudcol(cloudcovera); hx="cl"+row; cloudcovera='
'+cloudcovera+"%
"; document.getElementById(hx).innerHTML=cloudcovera;hx="co"+row;var conf=getconfidence(precs,cloudcovers,temps,windspeeds,airpressures);var cl=getriskcol(conf);document.getElementById(hx).innerHTML='
'+conf+"%
";if (corf=="c"){}else{ctof();} // if (expanded==1 && firstx != 1){ // for (var i=0;i < exts.length;i++) // { // if (i% 3 != 0){continue;} // toggleexpand(i,expanded);// // }if (expanded==1 && exts[0] <=1){ document.getElementById("expb").innerHTML="Hide Hourly";document.getElementById("expbb").innerHTML="Hide Hourly";}else if (exts[0]<=1){document.getElementById("expb").innerHTML="Show Hourly";document.getElementById("expbb").innerHTML="Show Hourly";}}var hmm=0;function updatenwforecast(){var rows=forecastdata.length/linelength; displayrows=rows; var cc=0;if (hmm==1) { document.location="index.cgi?action=world;loc=U,WD231JX~WD231JX;sess="; } for (var rowxx=0;rowxx < 24;rowxx++) { if (rowxx >= rows) { var hx="row"+rowxx; $(document).find("."+hx).each(function(){this.style.display='none';}); continue; }var hidden=""; if (exts[rowxx] <=1 && exts[rowxx] % 3 != 0){hidden="none";}updatenwforecastrow(rowxx,expanded,1);}}function roundit(value,dp) { var dpx=Math.pow(10,dp); return(Math.round(value * dpx) / dpx);}function df(inx){ inx=inx%24; if (inx==24){inx="00";} inx+=""; if (inx.length<2){inx="0"+inx;} inx+=":00"; return inx;}function convctf(inx){ if (inx==corf){return;} corf=inx; setCookie("corf",inx,999);if (inx=="c") { ftoc(); } else { ctof(); }}function doexpand(){if (1==1){return;} if (expanded==0) { expanded=1; document.getElementById("expb").innerHTML="Hide Hourly";document.getElementById("expbb").innerHTML="Hide Hourly"; setCookie("exfc",1,999);//if (andr==1 && docwidth<840){loadpagex(page,1);} } else { expanded=0; document.getElementById("expb").innerHTML="Show Hourly";document.getElementById("expbb").innerHTML="Show Hourly"; setCookie("exfc",0,999); } for (var i=0;i < exts.length;i++) { if (i% 3 != 0){continue;} toggleexpand(i,expanded); }}function toggleexpand(inx,dx){if (exts[inx]>1-3){return;}if (1==1){return;} while (inx % 3 != 0) { inx-=1; } var stx=inx; var iny=inx+1; var rowx="row"+iny; var hold=document.getElementById(rowx).style.display;if (hold == "none" || dx==1) {var h1="tm"+iny;if (document.getElementById(h1).innerHTML.indexOf("NaN")>-1){ $(document).find("."+rowx).each(function(){this.style.display='none';});}else{ $(document).find("."+rowx).each(function(){this.style.display='';});} iny+=1; rowx="row"+iny;h1="tm"+iny;if (document.getElementById(h1).innerHTML.indexOf("NaN")>-1) { $(document).find("."+rowx).each(function(){this.style.display='none';}); } else{ $(document).find("."+rowx).each(function(){this.style.display='';}); } updatenwforecastrow(stx,1,1); } else { $(document).find("."+rowx).each(function(){this.style.display='none';}); iny+=1; rowx="row"+iny; $(document).find("."+rowx).each(function(){this.style.display='none';}); updatenwforecastrow(stx,0,1); }}function submitplace(){ var hold=document.getElementById("fcnewloc").value;; var holdb=document.getElementById("ctid").value; if (holdb){hold=holdb+"~"+hold;} var url="index.cgi?action="+program+";ct="+hold+"#forecasts"; document.location=url;}function getpriority(inx){inx=inx+""; var out=0; inx=inx.replace("_nt",""); if (inx=="snow") {out=1;} else if (inx=="snowy") {out=2;} else if (inx=="flurries") {out=3;} else if (inx=="rainsnow") {out=4;} else if (inx=="icyrainsnow") {out=5;} else if (inx=="rainicy") {out=6;} else if (inx=="thunderstorm") {out=7;} else if (inx=="sunthunderstorm"){out=8;} else if (inx=="sunthund") {out=9;} else if (inx=="hail") {out=10;} else if (inx=="heavyrain") {out=11;} else if (inx=="rainwindy") {out=12;} else if (inx=="rain") {out=13;} else if (inx=="scatrain") {out=14;} else if (inx=="scshowers") {out=15;} else if (inx=="sunrain") {out=16;} else if (inx=="mscloudy") {out=17;} else if (inx=="ptcloudy") {out=18;} else if (inx=="cloudy") {out=19;} else if (inx=="windy") {out=20;} else if (inx=="hot") {out=21;} else if (inx=="clr") {out=22;} else if (inx=="dust") {out=23;} else if (inx=="smoke") {out=24;}if (out==0){out=9999;} return out;}var tcolour=new Array();function gett2mcolour(inx){ inx+=16; inx=roundit(inx/2,0);if (inx<0){inx=0;}if (inx>29){inx=29;} return tcolour[inx];}tcolour[0]="bf5ebf;";tcolour[1]="bf5ebf;";tcolour[2]="bf5ebf;";tcolour[3]="bf5ebf;";tcolour[4]="c989c9;";tcolour[5]="1ca2ff;";tcolour[6]="54b9ff;";tcolour[7]="79c7fd;";tcolour[8]="99d5ff;";tcolour[9]="00bc6a;";tcolour[10]="00bc1f;";tcolour[11]="01db25;";tcolour[12]="59ed00;";tcolour[13]="99ff33;";tcolour[14]="ccff33;";tcolour[15]="ccff00;";tcolour[16]="ffff00;";tcolour[17]="ffcc00;";tcolour[18]="ffcc33;";tcolour[19]="ff9900;";tcolour[20]="ff6600;";tcolour[21]="ff3300; color: #ffffff;";tcolour[22]="ff1800; color: #ffffff;";tcolour[23]="ff0000; color: #ffffff;";tcolour[24]="ff0000; color: #ffffff;";tcolour[25]="ff0000; color: #ffffff;";tcolour[26]="ff0000; color: #ffffff;";tcolour[27]="ff0000; color: #ffffff;";tcolour[28]="ff0000; color: #ffffff;";tcolour[29]="ff0000; color: #ffffff;";function gethumidcolour(outx){ var humcol="";if (outx <= 10) {humcol="dafffa";}else if (outx <= 20) {humcol="92dfff";}else if (outx <= 30) {humcol="9cff92";}else if (outx <= 40) {humcol="5bfe4a";}else if (outx <= 50) {humcol="cdfe4a";}else if (outx <= 60) {humcol="f0ff00";}else if (outx <= 70) {humcol="ffc600";}else if (outx <= 80) {humcol="ff9600;";}else if (outx <= 90) {humcol="ff4800; color: #ffffff;";}else if (outx <= 100) {humcol="ff0000; color: #ffffff;";}return humcol;}function getpreccol(outx){ var preccol=""; if (outx <= 0) {preccol="ffffff";}else if (outx < 1) {preccol="aefeff";}else if (outx <= 2) {preccol="56d2fb";}else if (outx <= 5) {preccol="37ef19";}else if (outx <= 10) {preccol="fcff00";}else if (outx > 10) {preccol="ff9600; color: #ffffff;";} return preccol;}function getcloudcol(inx){ var cloudout=""; if (inx < 10) {cloudout="ffffff; color: #000000;";} else if (inx < 20) {cloudout="eeeeee; color: #000000;";} else if (inx < 30) {cloudout="dddddd; color: #000000;";} else if (inx < 40) {cloudout="cccccc; color: #000000;";} else if (inx < 50) {cloudout="bbbbbb; color: #000000;";} else if (inx < 60) {cloudout="aaaaaa; color: #000000;";} else if (inx < 70) {cloudout="999999; color: #ffffff;";} else if (inx < 80) {cloudout="888888; color: #ffffff;";} else if (inx < 90) {cloudout="777777; color: #ffffff;";} else {cloudout="555555; color: #ffffff;";} return cloudout;}function getriskcol(perc){ var snrcol=""; if (perc <= 10) {snrcol="dafffa";}else if (perc <= 20) {snrcol="92dfff";}else if (perc <= 30) {snrcol="9cff92";}else if (perc <= 40) {snrcol="5bfe4a";}else if (perc <= 50) {snrcol="cdfe4a";}else if (perc <= 60) {snrcol="f0ff00";}else if (perc <= 70) {snrcol="ffc600";}else if (perc <= 80) {snrcol="ff9600; color: #ffffff;";}else if (perc <= 90) {snrcol="ff4800; color: #ffffff;";}else if (perc <= 100) {snrcol="ff0000; color: #ffffff;";} return snrcol;}function ftoc(){ $('div[name="tfc"]').each( function(){ var h=this.innerHTML; var t=h.match(/F/); if (t != "F"){return;} var numb=h; numb=h.replace(/[^0-9.-]+/g, ''); //var numb = h.match(/^-{0,1}\d+/)[0]; numb=5.0/9.0 * (numb - 32.0); this.innerHTML=roundit(numb,1)+'°c'; }); $('div[name="pfc"]').each( function(){ var h=this.innerHTML; var t=h.match(/\"/); if (t != "\""){return;} //var numb=h.match(/^-{0,1}\d*\.{0,1}\d+/)[0]; var numb=h; numb=h.replace(/[^0-9.-]+/g, ''); numb*=25.4; numb=roundit(numb,2); this.innerHTML=numb+'mm'; } );$('td[name="tfc"]').each( function(){ var h=this.innerHTML; var t=h.match(/F/); if (t != "F"){return;} var numb=h; numb=h.replace(/[^0-9.-]+/g, ''); //var numb = h.match(/^-{0,1}\d+/)[0]; numb=5.0/9.0 * (numb - 32.0); this.innerHTML=roundit(numb,1)+'°c'; }); $('td[name="pfc"]').each( function(){ var h=this.innerHTML; var t=h.match(/\"/); if (t != "\""){return;} //var numb=h.match(/^-{0,1}\d*\.{0,1}\d+/)[0]; var numb=h; numb=h.replace(/[^0-9.-]+/g, ''); numb*=25.4; numb=roundit(numb,2); this.innerHTML=numb+'mm'; } );}function ctof(){ $('div[name="tfc"]').each( function(){ var h=this.innerHTML; var t=h.match(/c/); if (t != "c"){return;} //var numb = h.match(/^-{0,1}\d+/)[0]; var numb=h; numb=h.replace(/[^0-9.-]+/g, ''); numb=9/5 * numb + 32; this.innerHTML=roundit(numb,1)+'°F'; }); $('div[name="pfc"]').each( function(){ var h=this.innerHTML; var t=h.match(/mm/) if (t != "mm"){return;} var numb=h; numb=h.replace(/[^0-9.-]+/g, ''); numb*=0.0393700787; numb=roundit(numb,3); this.innerHTML=numb+'"'; }); $('td[name="tfc"]').each( function(){ var h=this.innerHTML; var t=h.match(/c/); if (t != "c"){return;} //var numb = h.match(/^-{0,1}\d+/)[0]; var numb=h; numb=h.replace(/[^0-9.-]+/g, ''); numb=9/5 * numb + 32; this.innerHTML=roundit(numb,1)+'°F'; }); $('td[name="pfc"]').each( function(){ var h=this.innerHTML; var t=h.match(/mm/) if (t != "mm"){return;} var numb=h; numb=h.replace(/[^0-9.-]+/g, ''); numb*=0.0393700787; numb=roundit(numb,3); this.innerHTML=numb+'"'; });}function precwords(outx,coutx){ var outs=""; //if (outx<0.15){outx=0;} if (outx == 0) {outs="None";}else if ( outx < 2 && outx >= 0.15) {outs="Showers";} // else if (outx < 1) {outs="V Light";} // else if (outx >= 1 && outx < 2) {outs="Light";} else if (outx >= 2 && outx < 5) {outs="Moderate";} else if (outx >= 5 && outx < 10){outs="Heavy";} else if (outx >= 10) {outs="Torrential";}else if ( outx < 2 && outx >= 0.15) {outs="Showers";} return outs;}function setCookie(c_name,value,expiredays){ var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString())+"; path=/";}function getCookie(c_name){ if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return "";}function getconfidence(prats,clouds,temps,outms,aps){ var average=0; prats/=100; prats=roundit(((5-prats)/5)*100,0);prats=roundit(prats*.7,0);if (prats <20){prats=20;}clouds=roundit((Math.abs(100-clouds)/100)*100,1);temps=roundit((Math.abs(10-temps)/10)*100,1);outms/=10;outms=roundit(((Math.abs(20-outms))/20)*100,1);aps/=100;aps=roundit((Math.abs(15-aps)/15)*100,1);average=(prats+clouds+temps+outms+aps)/5;average-=20;average=roundit(average,0); return average;}
Remove Ads?
Remove Ads?
Email Weather Updates
Join Over 50,000 People Who Receive Our Free Weather News And Forecasts
Weather Forecast Info
The 14 day forecasts are updated four times a day and use our in house and use the GEFS ensembles to give a probablistic forecast and confidence levels, as at the 7-14 day range, the weather can change quite considerably.
Email Weather Updates
Join Over 50,000 People Who Receive Our Free Weather News And Forecasts