Home |
Search |
Today's Posts |
![]() |
|
uk.sci.weather (UK Weather) (uk.sci.weather) For the discussion of daily weather events, chiefly affecting the UK and adjacent parts of Europe, both past and predicted. The discussion is open to all, but contributions on a practical scientific level are encouraged. |
Reply |
|
LinkBack | Thread Tools | Display Modes |
#1
![]() |
|||
|
|||
![]()
Can anyone tell me whether the aviation subscription (ie £56.40ish)
version of the UKMO rainfall radar image is any larger than the free aviation version, which seems to be just 300x283px and hence rather small? I know that the subscription version refreshes more often, that Avbrief do a larger version and that even the small image probably captures all the information that is readily available (ie assuming that 1px might represent a 5km or 10km square). But I'd still like to see a larger image from the UKMO if it's on offer. JGD |
#2
![]() |
|||
|
|||
![]()
John Dann wrote:
Can anyone tell me whether the aviation subscription (ie £56.40ish) version of the UKMO rainfall radar image is any larger than the free aviation version, which seems to be just 300x283px and hence rather small? I know that the subscription version refreshes more often, that Avbrief do a larger version and that even the small image probably captures all the information that is readily available (ie assuming that 1px might represent a 5km or 10km square). But I'd still like to see a larger image from the UKMO if it's on offer. JGD 541 x 511, 15 min intervals. |
#3
![]() |
|||
|
|||
![]() "John Dann" wrote in message ... Can anyone tell me whether the aviation subscription (ie £56.40ish) version of the UKMO rainfall radar image is any larger than the free aviation version, which seems to be just 300x283px and hence rather small? I know that the subscription version refreshes more often, that Avbrief do a larger version and that even the small image probably captures all the information that is readily available (ie assuming that 1px might represent a 5km or 10km square). But I'd still like to see a larger image from the UKMO if it's on offer. JGD Hi John, Yes it is larger at 541x511 pixels (at least that is what doing a "properties" on the image gives). Will. -- " Ah yet another day to enjoy " ------------------------------------------------------------------------------- A COL BH site in East Dartmoor at Haytor, Devon 310m asl (1017 feet). mailto: www: http://www.lyneside.demon.co.uk/Hayt...antage_Pro.htm DISCLAIMER - All views and opinions expressed by myself are personal and do not necessarily represent those of my employer. ------------------------------------------------------------------------------- |
#4
![]() |
|||
|
|||
![]() "John Dann" wrote in message ... Can anyone tell me whether the aviation subscription (ie £56.40ish) version of the UKMO rainfall radar image is any larger than the free aviation version, which seems to be just 300x283px and hence rather small? I know that the subscription version refreshes more often, that Avbrief do a larger version and that even the small image probably captures all the information that is readily available (ie assuming that 1px might represent a 5km or 10km square). But I'd still like to see a larger image from the UKMO if it's on offer. JGD If you just want bigger i.e. there is no improvement in resolution, then paste the followig code into your text editor and save as radarloop.html, or whatever you fancy. Then just point your browser at the file, or open it in windows explorer etc. code begins...... html head META HTTP-EQUIV="Refresh" CONTENT=120 titleGFS sequence/title script language="javascript" !-- hide the script from old browsers -- //================================================== ========== // jsImagePlayer 1.0 // for Netscape3.0+, September 1996 //================================================== ========== // by (c)BASTaRT 1996, 1997 // Praha, Czech Republic, Europe // // feel free to copy and use as long as the credits are given // by having this header in the code // // contact: // http://sgi.felk.cvut.cz/~xholecko // //================================================== ========== // Thanx to Karel & Martin for beta testing and suggestions! //================================================== ========== //********* SET UP THESE VARIABLES - MUST BE CORRECT!!!********************* first_image=1; last_image=8; animation_height = 740; animation_width = 800; //************************************************** ************************ //************************************************** ************************ //=== THE CODE STARTS HERE - no need to change anything below === //=== global variables ==== theImages = new Array(); normal_delay = 400; delay = normal_delay; //delay between frames in 1/100 seconds delay_end = 4000; delay_max = 4000; delay_min = 10; delay_step = 25; current_image = first_image; //number of the current image timeID = null; status = 0; // 0-stopped, 1-playing play_mode = 0; // 0-continuous, 1-normal, 2-swing size_valid = 0; //=== preload the images - gets executed first, while downloading the page theImages[1] = new Image(); theImages[1].src = "http://www.metoffice.gov.uk/weather/europe/uk/radar/data/3EF_PS_1.GIF"; theImages[2] = new Image(); theImages[2].src = "http://www.metoffice.gov.uk/weather/europe/uk/radar/data/3EF_PS_2.GIF"; theImages[3] = new Image(); theImages[3].src = "http://www.metoffice.gov.uk/weather/europe/uk/radar/data/3EF_PS_3.GIF"; theImages[4] = new Image(); theImages[4].src = "http://www.metoffice.gov.uk/weather/europe/uk/radar/data/3EF_PS_4.GIF"; theImages[5] = new Image(); theImages[5].src = "http://www.metoffice.gov.uk/weather/europe/uk/radar/data/3EF_PS_5.GIF"; theImages[6] = new Image(); theImages[6].src = "http://www.metoffice.gov.uk/weather/europe/uk/radar/data/3EF_PS_6.GIF"; theImages[7] = new Image(); theImages[7].src = "http://www.metoffice.gov.uk/weather/europe/uk/radar/data/3EF_PS_7.GIF"; theImages[8] = new Image(); theImages[8].src = "http://www.metoffice.gov.uk/weather/europe/uk/radar/data/3EF_PS_8.GIF"; //=== displays image depending on the play mode in forward direction function animate_fwd() { current_image++; if(current_image last_image) { if (play_mode == 1) { current_image = last_image; status=0; return; }; //NORMAL if (play_mode == 0) { current_image = first_image; //LOOP }; if (play_mode == 2) { current_image = last_image; animate_rev(); return; }; }; if(current_image last_image) { delay = normal_delay; document.animation.src = theImages[current_image].src; document.control_form.frame_nr.value = current_image; timeID = setTimeout("animate_fwd()", delay); }; if(current_image == last_image) { delay = delay_end; document.animation.src = theImages[current_image].src; document.control_form.frame_nr.value = current_image; timeID = setTimeout("animate_fwd()", delay); delay = normal_delay; }; } //=== displays image depending on the play mode in reverse direction function animate_rev() { current_image--; if(current_image first_image) { if (play_mode == 1) { current_image = first_image; status=0; return; }; //NORMAL if (play_mode == 0) { current_image = last_image; //LOOP }; if (play_mode == 2) { current_image = first_image; animate_fwd(); return; }; }; if(current_image 1) { delay = normal_delay; document.animation.src = theImages[current_image].src; document.control_form.frame_nr.value = current_image; timeID = setTimeout("animate_rev()", delay); }; if(current_image == 1) { delay = delay_end; document.animation.src = theImages[current_image].src; document.control_form.frame_nr.value = current_image; timeID = setTimeout("animate_rev()", delay); delay = normal_delay; }; } //=== changes playing speed by adding to or substracting from the delay between frames function change_speed(dv) { normal_delay+=dv; if(normal_delay delay_max) normal_delay = delay_max; if(normal_delay delay_min) normal_delay = delay_min; } //=== stop the movie function stop() { if (status == 1) clearTimeout (timeID); status = 0; } //=== "play forward" function fwd() { stop(); status = 1; animate_fwd(); } //=== jumps to a given image number function go2image(number) { stop(); if (number last_image) number = last_image; if (number first_image) number = first_image; current_image = number; document.animation.src = theImages[current_image].src; document.control_form.frame_nr.value = current_image; } //=== "play reverse" function rev() { stop(); status = 1; animate_rev(); } //=== changes play mode (normal, continuous, swing) function change_mode(mode) { play_mode = mode; } //=== sets everything once the whole page and the images are loaded (onLoad handler in body) function launch() { stop(); current_image = last_image; document.animation.src = theImages[current_image].src; document.control_form.frame_nr.value = current_image; // this is trying to set the text (Value property) on the START and END buttons // to S(first_image number), E(last_image number). Its supposed (according to // JavaScript Authoring Guide) to be a read only value but for some reason // it works on win3.11 (on IRIX it doesnt). document.control_form.start_but.value = " FIRST(" + first_image + ") "; document.control_form.end_but.value = " LAST(" + last_image + ") "; // this needs to be done to set the right mode when the page is manualy reloaded change_mode (document.control_form.play_mode_selection.selecte dIndex); } //=== writes the interface into the code where you want it function keys() { document.write(" FORM Method=POST Name=\"control_form\" "); document.write(" FONT SIZE = 2 "); document.write(" CENTER "); document.write(" INPUT TYPE=\"button\" Name=\"start_but\" Value=\"FIRST\" onClick=\"go2image(first_image)\" "); document.write(" BR "); document.write(" INPUT TYPE=\"button\" Name=\"end_but\" Value=\"LAST\" onClick=\"go2image(last_image)\" "); document.write(" BR "); document.write(" INPUT TYPE=\"button\" Value=\"BACK\" onClick=\"fwd()\" "); document.write(" BR "); document.write(" INPUT TYPE=\"button\" Value=\"FORWARD\" onClick=\"rev()\" "); document.write(" BR "); document.write(" INPUT TYPE=\"button\" Value=\"STOP\" onClick=\"stop()\" "); document.write(" BR "); document.write(" INPUT TYPE=\"button\" Value=\" -1 \" onClick=\"go2image(--current_image)\" "); document.write(" INPUT TYPE=\"button\" Value=\" +1 \" onClick=\"go2image(++current_image)\" "); document.write(" BR "); document.write(" BR "); document.write(" OPTIONS:SELECT NAME=\"play_mode_selection\" onChange=\"change_mode(this.selectedIndex)\" "); document.write(" BR "); document.write(" OPTION SELECTED VALUE=0continuous "); document.write(" OPTION VALUE=1loop once "); document.write(" OPTION VALUE=2swing "); document.write(" /SELECT "); document.write(" BR "); document.write(" BR "); document.write(" IMAGE #:INPUT TYPE=\"text\" NAME=\"frame_nr\" VALUE=\"0\" SIZE=\"2\" "); document.write(" onFocus=\"this.select()\" onChange=\"go2image(this.value)\" "); document.write(" BR "); document.write(" BR "); document.write(" SPEED: "); document.write(" BR "); document.write(" INPUT TYPE=\"button\" Value=\" - \" onClick=\"change_speed(delay_step)\" "); document.write(" INPUT TYPE=\"submit\" Value=\" + \" onClick=\"change_speed(-delay_step)\;return false\" "); document.write(" /FORM "); document.write(" /P "); }; function animation() { document.write(" PIMG NAME=\"animation\" HEIGHT=",animation_height, " WIDTH=", animation_width, "\" ALT=\"[jsMoviePlayer]\""); }; //=== THE CODE ENDS HERE - no need to change anything above === -- /script /head body BGCOLOR="#ffffff" onLoad="launch()" !-- ************ START THE jsMoviePlayer(TM) ***************** SRC=\"hurr1.jpg\" -- table CELLSPACING=2 CELLPADDING=5 COLS=2 WIDTH="100%" BGCOLOR="#FFFFFF" tr th BGCOLOR="#C0C0C0" WIDTH="1" script language="javascript" !-- keys(); //-- /script /th th align=center script language="javascript" animation(); //-- /script /th /tr /table !-- ************** END THE jsMoviePlayer(TM) ***************** -- /body /html |
#5
![]() |
|||
|
|||
![]()
Many thanks for the replies and examples. One follow-up question:
On Sat, 8 Oct 2005 23:20:07 +0100, "Steve" wrote: code begins...... Does anyone know how the authentication for subscription access might work with this? I can imagine that you have to log on initially to your UKMO account, but how quickly does the logon time out? In other words, do you effectively have to log on each and every time you want to update the sequence, which would be at least a nuisance and maybe a showstopper, or can you get away with logging in eg just once a day? JGD |
#6
![]() |
|||
|
|||
![]()
"John Dann" wrote in message
... Does anyone know how the authentication for subscription access might work with this? I can imagine that you have to log on initially to your UKMO account, but how quickly does the logon time out? In other words, do you effectively have to log on each and every time you want to update the sequence, which would be at least a nuisance and maybe a showstopper, or can you get away with logging in eg just once a day? JGD Set the browser to remember your access details and bookmark the radar page, you can then treat it as any normal web page. Jon. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Size of Rain Guage | alt.talk.weather (General Weather Talk) | |||
Rainfall radar image archives | uk.sci.weather (UK Weather) | |||
Sun size question | uk.sci.weather (UK Weather) | |||
O/T reducing photo size? | uk.sci.weather (UK Weather) | |||
Satellite Pixel Size | sci.geo.meteorology (Meteorology) |