Author Topic: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)  (Read 4887 times)

0 Members and 1 Guest are viewing this topic.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« on: November 20, 2013, 03:33:35 PM »
This script provides hourly granularity for national maps predicting several weather variables, Temperature, Dewpoint, Ceiling, and Visibility while providing Temperature Error and Dewpoint Error charts.  In addition analysis charts for the past 24 hr. national Radar images, Surface Pressure Winds, and North American Surface Pressures are accessible with this script.

These maps are experimental and a part of the Localized Aviation MOS Program (LAMP).  They are updated hourly.

Here is a link to this script on my web site.  As usual the experimental nature of these maps means they may never be adopted by the NWS.

The script is for use in a Saratoga template environment, although it may be easily adapted to other environments.

Options include running it in 'onmouseover' or 'onclick' mode to access the maps, and maximum and minimum widths of the maps for wide and narrow templates/styles.  I find 'onmouseover' to provide the best viewing experience, but YMMV.  Interestingly, the native 640px by 480px resolution of the analysis images scales up to 850px by 638px reasonably well in a wide style/template.

Edit 2015 March 8:  Removed outdated version.
« Last Edit: March 08, 2015, 11:42:06 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #1 on: March 08, 2015, 11:39:04 AM »
The NWS has moved the Lightning and Convection maps to production, and this is reflected in the script.  There is a switch to turn off the experimental maps if only the Lightning and Convection maps are desired.  The experimental maps are updated irregularly by the NWS, and appropriate warnings are displayed by the script.

The NWS has also modified the times on every other map from 6 hrs. out to be identical, but some of the maps with the same stamped hour are different!  I'm not sure what's going on here, so I've left the hourly display alone.

Earlier there was an error in time computation so I had to introduce a 'fudge factor'.  This error is gone, and so is the fudge factor.

This version is just identified by today's date.

Edit 2015 March 26:  New version posted below.

Edit 2015 March 28:  Newer version posted below.
« Last Edit: March 28, 2015, 01:56:38 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #2 on: March 26, 2015, 08:21:40 AM »
The NWS has moved all of this gridded LAMP series into production this week.  The attached version acknowledges this by removing (commenting out just in case :-)) the 'Experimental' text.  The version is also identified by the date in the zip name.

Edit 2015 March 28:  There was a problem with the text attached to the Convection Potential and Probability maps (thanks, Greg).  A revised script is posted below.
« Last Edit: March 28, 2015, 02:00:14 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4107
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #3 on: March 26, 2015, 11:46:11 AM »
I like your script, however when I tried it the page has everything but my background.
I attempted to add this before and after the script:

Code: [Select]
<html>
<body background="http://www.rogerscityweather.com/clouds.jpg">

...
...

Code: [Select]
</html>
but it didn't work, no background. (page is fine otherwise)

Any suggestions?

Greg H.



Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #4 on: March 26, 2015, 12:03:32 PM »
I like your script, however when I tried it the page has everything but my background.
I attempted to add this before and after the script:

Code: [Select]
<html>
<body background="http://www.rogerscityweather.com/clouds.jpg">

...
...

Code: [Select]
</html>
but it didn't work, no background. (page is fine otherwise)

Any suggestions?

Greg H.
I use CSS for my background.  My backgrounds are incorporated into the 'weather-screen-(color)-narrow.css' files and change depending upon the style the user has selected.  I think you can incorporate an image in the CSS styling.  That way it replicates throughout your site without the need for coding individual page backgrounds.
« Last Edit: March 26, 2015, 12:08:15 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4107
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #5 on: March 26, 2015, 01:27:12 PM »
I got it, I was editing the wrong file. :oops:

I added that to the inc-ushourly24hfc.php, which was incorrect.

I opened the wxushourly24hfc.php file and added the background to the existing <body> line.

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #6 on: March 26, 2015, 01:41:18 PM »
I got it, I was editing the wrong file. :oops:

I added that to the inc-ushourly24hfc.php, which was incorrect.

I opened the wxushourly24hfc.php file and added the background to the existing <body> line.

Greg H.
I'm glad you worked it out.  :-) The 'three-script solution' can actually be boiled down to one when done properly.  I wrote this using the three scripts, so I probably will leave it like that due to sloth, not just to confuse the unwary.  :grin:

The CSS weather-screen-*-narrow.css solution would be universal for all pages under that style, and you could have a different background for different styles.  That's just my preference.

Your page-by-page solution is independent of the weather-screen-*-narrow.css settings, and the background therefore won't be changed by these CSS stylesheets.  I understand this probably works best for you.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4107
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #7 on: March 28, 2015, 01:17:08 PM »
I found a minor error that I thought that I would post:

The map label for the Convection Probability and Convection Potential do not match their respective maps.

The original in inc-ushourly24hfc.php had:

Code: [Select]
} else if ($forecastType == 'CONVP') {
$forecastText = '<br/>Convection Potential';
$mdldir = 'mdl/gfslamp/cnvltg_images';
$startImg = 3;
} else if ($forecastType == 'CONVR') {
$forecastText = '<br/>Convection Probability';
$mdldir = 'mdl/gfslamp/cnvltg_images';

Code: [Select]
} else if ($forecastType == 'CONVP') {
$forecastText = '<br/>Convection Probability';
$mdldir = 'mdl/gfslamp/cnvltg_images';
$startImg = 3;
} else if ($forecastType == 'CONVR') {
$forecastText = '<br/>Convection Potential';
$mdldir = 'mdl/gfslamp/cnvltg_images';

I changed the Convection Probablility to Potential and vice-versa for these lines:

} else if ($forecastType == 'CONVP') {
   $forecastText = '<br/>Convection Probability';
   $mdldir = 'mdl/gfslamp/cnvltg_images';
   $startImg = 3;
} else if ($forecastType == 'CONVR') {
   $forecastText = '<br/>Convection Potential';
   $mdldir = 'mdl/gfslamp/cnvltg_images';

Greg H.



Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #8 on: March 28, 2015, 01:55:20 PM »
I found a minor error that I thought that I would post:

The map label for the Convection Probability and Convection Potential do not match their respective maps.

The original in inc-ushourly24hfc.php had:

Code: [Select]
} else if ($forecastType == 'CONVP') {
$forecastText = '<br/>Convection Potential';
$mdldir = 'mdl/gfslamp/cnvltg_images';
$startImg = 3;
} else if ($forecastType == 'CONVR') {
$forecastText = '<br/>Convection Probability';
$mdldir = 'mdl/gfslamp/cnvltg_images';

Code: [Select]
} else if ($forecastType == 'CONVP') {
$forecastText = '<br/>Convection Probability';
$mdldir = 'mdl/gfslamp/cnvltg_images';
$startImg = 3;
} else if ($forecastType == 'CONVR') {
$forecastText = '<br/>Convection Potential';
$mdldir = 'mdl/gfslamp/cnvltg_images';

I changed the Convection Probablility to Potential and vice-versa for these lines:

} else if ($forecastType == 'CONVP') {
   $forecastText = '<br/>Convection Probability';
   $mdldir = 'mdl/gfslamp/cnvltg_images';
   $startImg = 3;
} else if ($forecastType == 'CONVR') {
   $forecastText = '<br/>Convection Potential';
   $mdldir = 'mdl/gfslamp/cnvltg_images';

Greg H.
Thanks for picking up on that, Greg.  Mea culpa :oops:

Corrected script attached and identified by today's date.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #9 on: April 09, 2015, 07:40:45 AM »
And the NWS MDL US Hourly 24 Hour Forecast Charts for everything but the Convection and Lightning Charts have fallen over for over a day now.   :-( Attached is the amended script that restores the appropriate warnings...
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1643
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #10 on: April 10, 2015, 12:43:37 AM »
Is there a "stand alone" version of this script??


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #11 on: April 10, 2015, 12:59:18 AM »
Not at present.  I'll see what can be done in that regard when I get a chance.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1643
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #12 on: April 10, 2015, 01:20:54 AM »
No problem :grin:

It would be nice to use here when and if you're able to implement it in the future.


Thanks!


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #13 on: April 10, 2015, 12:28:21 PM »
OK, there is a Stand Alone version attached.  It's also possible to use it in the template by setting '$standAlone = false;' in 'wxushourly24hfc-SA.php'.  It uses a modified 'inc-ushourly24hfc-SA.php' that's needed to allow stand alone mode, so upload it to your site as well.  The 'LAMP-select.php' script is unchanged.

You can see it here.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 558
    • Up Country Maui Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #14 on: April 10, 2015, 03:09:59 PM »
Hi Jerry,

Looking pretty nice. However,  it is just for the Lower 48 and the other two are left out.

Regards,

--Stan Y.
   Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii
 --- Blitzortung ID: 993
 --- FlightRadar24 ID: F-PHOG1

WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
Webcam: Axis 211

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #15 on: April 10, 2015, 04:30:53 PM »
Hi Jerry,

Looking pretty nice. However,  it is just for the Lower 48 and the other two are left out.

Regards,

--Stan Y.
   Maui, Hawaii
Thanks for the compliment, Stan.  Unfortunately the NWS MDL hasn't added the non-contiguous states to these maps.  You might leave a comment on their site expressing your desire to see this product in all 50 states. :-)
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1643
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #16 on: April 10, 2015, 04:49:57 PM »
OK, there is a Stand Alone version attached.  It's also possible to use it in the template by setting '$standAlone = false;' in 'wxushourly24hfc-SA.php'.  It uses a modified 'inc-ushourly24hfc-SA.php' that's needed to allow stand alone mode, so upload it to your site as well.  The 'LAMP-select.php' script is unchanged.

You can see it here.
Jerry,Thanks for the quick work on redesigning the script for standalone use!
I have it up and running currently but I need to make a few cosmetic adjustments,but main thing is that it
is working fine!
You can see it here http://www.smythweather.net/wxnwsexperimental.php

Thanks once again!


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 558
    • Up Country Maui Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #17 on: April 10, 2015, 05:27:46 PM »
Thanks for the compliment, Stan.  Unfortunately the NWS MDL hasn't added the non-contiguous states to these maps.  You might leave a comment on their site expressing your desire to see this product in all 50 states. :-)

Thanks Jerry and I did place a comment to include all 50 states.

Regards,

--Stan Y.
   Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii
 --- Blitzortung ID: 993
 --- FlightRadar24 ID: F-PHOG1

WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
Webcam: Axis 211

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #18 on: May 21, 2015, 07:24:55 AM »
The NWS has been updating the LAMP images other than convection, lightning, and analysis in fits and starts.  Today they happen to be updating them all, which is good.

I've removed the 'Experimental' notice from all of the scripts, but I've left the 'Caution' warnings in place.  If the NWS begins to generate all of the LAMP images continuously, I'll remove the 'Caution' warnings as well.

Edit 23 May 2015:  Attachments removed.  Updated attachments are below.
« Last Edit: May 23, 2015, 08:01:24 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #19 on: May 23, 2015, 08:00:23 AM »
The NWS has been updating the LAMP images other than convection, lightning, and analysis in fits and starts.  Today they happen to be updating them all, which is good.

I've removed the 'Experimental' notice from all of the scripts, but I've left the 'Caution' warnings in place.  If the NWS begins to generate all of the LAMP images continuously, I'll remove the 'Caution' warnings as well.

As is their prerogative the NWS used a different map naming scheme when the 24 hour temperature, ceiling, and visibility 2.5K gridded hourly forecasts went into production.  I finally took a look at how the maps were named, they use Zulu rather than Eastern times on the 24 hour prediction sequence, and fixed the display of these maps in the scripts.  I've also commented out all of the cautionary verbiage.  It wasn't very bright of me to assume that the map names wouldn't change when they went into production.  :oops:

Edit 7:15 AM 2015 May 23:  I also removed the 24th analysis image because it isn't available.

Edit 1:30 PM 2015 May 23:  I've made some changes because the maps are updated each hour between xx:35 and xx:45, generally close to xx:35.  These Version b scripts are the latest attempt to line up the dates and maps.

Edit 2015 May 26:  Attachments removed.  Updated versions below.
« Last Edit: May 26, 2015, 11:32:51 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #20 on: May 26, 2015, 11:31:19 AM »
Today's versions have been experimental, to say the least.  :oops: There have been issues with hours not lining up again this morning, most likely due to my errors. :-( The prior versions have been removed.

Edit 11:10 AM CDT 2015 May 26:  The last quarter hour algorithm fell over again.  Updated versions attached.

Edit 2:10 PM CDT 2015 May 26:  Versions supplanted by those below.
« Last Edit: May 26, 2015, 03:11:49 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #21 on: May 26, 2015, 03:10:24 PM »
I've added an optional warning, $useGapWarning, effective from 36 min. through 44 min. after each hour because the maps will be updating somewhere during this time period and the maps' times and scripts' times might not match up.  By 45 min. after the hour all maps should have been updated and the mismatches gone.  The switch is in the main script rather than the include script.

These versions will supplant previous versions.  'SA' is the standalone version.

Edit 2018 Feb 13:  See below.

« Last Edit: February 13, 2018, 06:46:11 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #22 on: February 13, 2018, 06:39:41 AM »
As of January 25, 2018 the NWS MDS has moved their forecasts from even hours to half-hours.  The updated scripts can be downloaded here.

These forecasts are no longer classified as 'Experimental'.

There is a switch, '$useAll', that when set to 'false' will cause the script to display only the lightning and convection forecast maps along with the 'Analysis' maps on the option dropdown. I've named this modification wxLAMP24hfc.php on my site.
« Last Edit: February 13, 2018, 07:17:06 AM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline satcop

  • Senior Contributor
  • ****
  • Posts: 241
    • Clifton Virginia Weather
Re: Experimental NWS MDL US Hourly 24 Hour Forecast Charts (LAMP)
« Reply #23 on: February 13, 2018, 05:17:32 PM »
Hi Gerry;

I must be missing something.  I can't seem to get the maps to switch to another type.  It seems to run through different times but I can't seem to get it to switch from temperature from the pull down.
Update:
Never mind I found the problem here, I had forced the include file from the previous version to http.  Took the restriction off to let it go to https and things work fine now.  :oops: :oops: :oops:

Bob
« Last Edit: February 13, 2018, 05:32:47 PM by satcop »
Clifton, Virginia Weather


Blitzortung Stations 1189, 1451 - CWOP EW1675

 

anything