SCRIPT - Jetstream - 250, 500 & 850 levels

Strictly for sharing scripts used in Digital Atmosphere and getting assistance from other users.
Budgie
Moderator
Posts: 65
Joined: Wed Jan 06, 2010 1:17 pm
Location: Lochaber, Scotland
Contact:

SCRIPT - Jetstream - 250, 500 & 850 levels

Post 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
Tarma
Junior Member
Posts: 3
Joined: Thu Dec 08, 2011 4:12 pm

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

Post by Tarma »

Sorry, but what is overlay.png?
Greg Higgins
Senior Member
Posts: 100
Joined: Sun Nov 30, 2003 5:05 am
Location: Fort Worth, TX

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

Post 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!!!
woolfg
Junior Member
Posts: 6
Joined: Sun Mar 14, 2010 8:22 pm
Location: Ringwood, England, UK

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

Post by woolfg »

That looks great but where do I get the files plain_ne_atlantic.dmf and overlay.png from

Many thanks

graham
Tarma
Junior Member
Posts: 3
Joined: Thu Dec 08, 2011 4:12 pm

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

Post 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.
Budgie
Moderator
Posts: 65
Joined: Wed Jan 06, 2010 1:17 pm
Location: Lochaber, Scotland
Contact:

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

Post 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.
garyburnett44
Junior Member
Posts: 6
Joined: Thu Apr 19, 2012 10:15 am

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

Post by garyburnett44 »

Just come across this script. I think it gives an excellent charts. I have put this on my site.
regards
Gary :razz:
Jean-Robert
Junior Member
Posts: 1
Joined: Wed Aug 01, 2012 10:05 pm

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

Post by Jean-Robert »

Hi

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

Thank you.

Jean-Robert

www.jeanrobertmarion.com
Greg Higgins
Senior Member
Posts: 100
Joined: Sun Nov 30, 2003 5:05 am
Location: Fort Worth, TX

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

Post by Greg Higgins »

What code?? The script is ready-to-run once you add / deleted any customization.
Budgie
Moderator
Posts: 65
Joined: Wed Jan 06, 2010 1:17 pm
Location: Lochaber, Scotland
Contact:

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

Post 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.
Post Reply