Page 1 of 2

SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Mon Jun 27, 2011 8:57 am
by Budgie
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: Select all

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

Re: SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Thu Dec 08, 2011 4:16 pm
by Tarma
Sorry, but what is overlay.png?

Re: SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Fri Dec 09, 2011 4:36 am
by Greg Higgins
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!!!

Re: SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Fri Dec 09, 2011 1:59 pm
by woolfg
That looks great but where do I get the files plain_ne_atlantic.dmf and overlay.png from

Many thanks

graham

Re: SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Fri Dec 09, 2011 3:43 pm
by Tarma
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.

Re: SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Fri Dec 09, 2011 6:14 pm
by Budgie
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.

Re: SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Thu Jul 12, 2012 10:10 am
by garyburnett44
Just come across this script. I think it gives an excellent charts. I have put this on my site.
regards
Gary :razz:

Re: SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Wed Aug 01, 2012 10:10 pm
by Jean-Robert
Hi

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

Thank you.

Jean-Robert

www.jeanrobertmarion.com

Re: SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Wed Aug 01, 2012 10:30 pm
by Greg Higgins
What code?? The script is ready-to-run once you add / deleted any customization.

Re: SCRIPT - Jetstream - 250, 500 & 850 levels

Posted: Thu Aug 02, 2012 11:13 pm
by Budgie
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.