The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Sat Oct 21, 2017 3:51 pm

All times are UTC




Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Jun 27, 2011 8:57 am 
Offline
Moderator

Joined: Wed Jan 06, 2010 1:17 pm
Posts: 57
Location: Lochaber, Scotland
I thought I would post this script that I use for (what I think are) the three main layers for the jetstream or upper air.
I found the main script on here, so it's nothing new and I can't claim credit for creating it but I hope it's useful to someone to have all three layers on one script.
I've left the coding for the map I use, my overlay and where I save the finished map.
You can see the finished maps here: http://www.hebwx.co.uk/wxjetstream.php
I also made a legend which you are free to copy and use:
Image

Comments welcomed,

Martin.

Code:
REMOVE
ERASE
LOAD,C:\Users\weather\AppData\DigitalAtmosphere\plain_ne_atlantic.dmf
download,http://weather.cod.edu/digatmos/upa/@Y@M@D@X.upa,C:\Users\weather\AppData\DigitalAtmosphere\data\upperair.wmo
ANALYZE,OVER FILL COLOR=255:255:000 GRTN=75 OVER FILL COLOR=206:255:000 GRTN=70 OVER FILL COLOR=127:255:000 GRTN=65 OVER FILL COLOR=000:255:179 GRTN=60 OVER FILL COLOR=000:255:255 GRTN=55 OVER FILL COLOR=000:230:255 GRTN=50 OVER FILL COLOR=000:204:255 GRTN=45 OVER FILL COLOR=000:163:255 GRTN=40 OVER FILL COLOR=000:115:255 GRTN=35 OVER FILL COLOR=000:074:255 GRTN=30 OVER FILL COLOR=000:000:255 GRTN=25 SADC=1:00 STOR=1 VKNT WSPD H500
ANALYZE,OVER FILL COLOR=255:079:000 GRTN=105 OVER FILL COLOR=255:127:000 GRTN=100 OVER FILL COLOR=255:153:000 GRTN=95 OVER FILL COLOR=255:174:000 GRTN=90 OVER FILL COLOR=255:204:000 GRTN=85 OVER FILL COLOR=255:230:000 GRTN=80 SADC=1:00 STOR=1 VKNT WSPD H500
Analyze,VECT COLOR=0:0:0 WIND H500
Stamp
import,C:\Users\weather\AppData\DigitalAtmosphere\overlay.png
export,C:\wdisplay\weathermaps\jetstream500.jpg
REMOVE
ERASE
LOAD,C:\Users\weather\AppData\DigitalAtmosphere\plain_ne_atlantic.dmf
ANALYZE,OVER FILL COLOR=255:255:000 GRTN=75 OVER FILL COLOR=206:255:000 GRTN=70 OVER FILL COLOR=127:255:000 GRTN=65 OVER FILL COLOR=000:255:179 GRTN=60 OVER FILL COLOR=000:255:255 GRTN=55 OVER FILL COLOR=000:230:255 GRTN=50 OVER FILL COLOR=000:204:255 GRTN=45 OVER FILL COLOR=000:163:255 GRTN=40 OVER FILL COLOR=000:115:255 GRTN=35 OVER FILL COLOR=000:074:255 GRTN=30 OVER FILL COLOR=000:000:255 GRTN=25 SADC=1:00 STOR=1 VKNT WSPD H250
ANALYZE,OVER FILL COLOR=255:079:000 GRTN=105 OVER FILL COLOR=255:127:000 GRTN=100 OVER FILL COLOR=255:153:000 GRTN=95 OVER FILL COLOR=255:174:000 GRTN=90 OVER FILL COLOR=255:204:000 GRTN=85 OVER FILL COLOR=255:230:000 GRTN=80 SADC=1:00 STOR=1 VKNT WSPD H250
Analyze,VECT COLOR=0:0:0 WIND H250
Stamp
import,C:\Users\weather\AppData\DigitalAtmosphere\overlay.png
export,C:\wdisplay\weathermaps\jetstream250.jpg
REMOVE
ERASE
LOAD,C:\Users\weather\AppData\DigitalAtmosphere\plain_ne_atlantic.dmf
ANALYZE,OVER FILL COLOR=255:255:000 GRTN=75 OVER FILL COLOR=206:255:000 GRTN=70 OVER FILL COLOR=127:255:000 GRTN=65 OVER FILL COLOR=000:255:179 GRTN=60 OVER FILL COLOR=000:255:255 GRTN=55 OVER FILL COLOR=000:230:255 GRTN=50 OVER FILL COLOR=000:204:255 GRTN=45 OVER FILL COLOR=000:163:255 GRTN=40 OVER FILL COLOR=000:115:255 GRTN=35 OVER FILL COLOR=000:074:255 GRTN=30 OVER FILL COLOR=000:000:255 GRTN=25 SADC=1:00 STOR=1 VKNT WSPD H850
ANALYZE,OVER FILL COLOR=255:079:000 GRTN=105 OVER FILL COLOR=255:127:000 GRTN=100 OVER FILL COLOR=255:153:000 GRTN=95 OVER FILL COLOR=255:174:000 GRTN=90 OVER FILL COLOR=255:204:000 GRTN=85 OVER FILL COLOR=255:230:000 GRTN=80 SADC=1:00 STOR=1 VKNT WSPD H850
Analyze,VECT COLOR=0:0:0 WIND H850
Stamp
import,C:\Users\weather\AppData\DigitalAtmosphere\overlay.png
export,C:\wdisplay\weathermaps\jetstream850.jpg


Top
 Profile  
 
PostPosted: Thu Dec 08, 2011 4:16 pm 
Offline
Junior Member

Joined: Thu Dec 08, 2011 4:12 pm
Posts: 3
Sorry, but what is overlay.png?


Top
 Profile  
 
PostPosted: Fri Dec 09, 2011 4:36 am 
Offline
Member

Joined: Sun Nov 30, 2003 5:05 am
Posts: 96
Location: Fort Worth, TX
Those look like the scripts I wrote several years back, THANKS for going back and incorporating them into one script! Nicely done! I love the legend that you provided!!!


Top
 Profile  
 
PostPosted: Fri Dec 09, 2011 1:59 pm 
Offline
Junior Member

Joined: Sun Mar 14, 2010 8:22 pm
Posts: 5
Location: Ringwood, England, UK
That looks great but where do I get the files plain_ne_atlantic.dmf and overlay.png from

Many thanks

graham


Top
 Profile  
 
PostPosted: Fri Dec 09, 2011 3:43 pm 
Offline
Junior Member

Joined: Thu Dec 08, 2011 4:12 pm
Posts: 3
I think plain_ne_atlantic.dmf is the basemap (you need to substitute your own), but I don't know how to create overlay.png. I'm in learning mode at the moment.


Top
 Profile  
 
PostPosted: Fri Dec 09, 2011 6:14 pm 
Offline
Moderator

Joined: Wed Jan 06, 2010 1:17 pm
Posts: 57
Location: Lochaber, Scotland
The overlay.png just has my website details on it, a logo and the web address. So you don't really need that unless you want to include the same thing for your own website.
They are easy to create in something like Photoshop, Gimp or Paint.NET; Just create a blank, transparent image that's the same size as the finished maps will be and then add the text that you want (I put a background on my text so I can use it on any map) and then save it as either a GIF or PNG image. You need these formats for the map to show through.

Tarma is correct, the plain_ne_atlantic.dmf is the basemap that I use. You can adjust the plain maps in DA and then save the background using any name you want.

Greg Higgins wrote:
Those look like the scripts I wrote several years back, THANKS for going back and incorporating them into one script! Nicely done! I love the legend that you provided!!!

I think they may well be yours Greg, hence the denial of credit. :mrgreen:
Thanks for the original script and I'm glad you like the legend.


Top
 Profile  
 
PostPosted: Thu Jul 12, 2012 10:10 am 
Offline
Junior Member

Joined: Thu Apr 19, 2012 10:15 am
Posts: 6
Just come across this script. I think it gives an excellent charts. I have put this on my site.
regards
Gary :razz:


Top
 Profile  
 
PostPosted: Wed Aug 01, 2012 10:10 pm 
Offline
Junior Member

Joined: Wed Aug 01, 2012 10:05 pm
Posts: 1
Hi

Can somebody show me how to build a script with this code ?

Thank you.

Jean-Robert

www.jeanrobertmarion.com


Top
 Profile  
 
PostPosted: Wed Aug 01, 2012 10:30 pm 
Offline
Member

Joined: Sun Nov 30, 2003 5:05 am
Posts: 96
Location: Fort Worth, TX
What code?? The script is ready-to-run once you add / deleted any customization.


Top
 Profile  
 
PostPosted: Thu Aug 02, 2012 11:13 pm 
Offline
Moderator

Joined: Wed Jan 06, 2010 1:17 pm
Posts: 57
Location: Lochaber, Scotland
Hi Jean-Robert,

This script works with the DA software to produce the maps, it's not like a PHP script for your website.

If you've got Digital Atmosphere software then look at the left menu and you should see "Scripting", click on that and then click on "Create" to open a file. Paste the script into the text window, altering the save location in the script and the map & overlay names, then save it with a name of your choice.
Then you can run the script to produce the maps.

Martin.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group