SCRIPT: SubZero Colorfill Workaround

Strictly for sharing scripts used in Digital Atmosphere and getting assistance from other users.
texsky
Senior Member
Posts: 172
Joined: Fri Dec 12, 2003 9:42 pm

Post by texsky »

Hi,

Thanks for the link. The color fills look good, but it appears that the isotherms are in Fahrenheit units rather than Celsius. Check your script to confirm that you have something like "DEGC WCHL" at the end, and not just "WCHL".

Let me know what you find out.

Bob
Guest

Post by Guest »

It did indeed work. Thanks as always Bob.

Now I`m venturing onto jetstream analysis. I might play around with the shading option, plus overlay windstreams. Similar to what wunderground use.

Bob.
tornadoforecaster

Re: temperature scripts in color

Post by tornadoforecaster »

Well, I have seen many scripts written for degrees C, but none for degrees F. Is there any scripts which can be written for degrees F from say -50 to +120 degrees? Then which colors are best suited for this?
Please also provide some examples, as old farts like me are still trying to
get the hang of this scripting thing. :D

Randy
texsky
Senior Member
Posts: 172
Joined: Fri Dec 12, 2003 9:42 pm

Post by texsky »

Randy, I just happen to have one handy...

Code: Select all

ANALYZE,OVER FILL COLOR=75:0:75 LSTN=0 OVER FILL COLOR=92:0:92 LSTN=5 OVER FILL COLOR=115:0:115 LSTN=10 OVER FILL COLOR=130:0:130 LSTN=15 OVER FILL COLOR=153:0:153 LSTN=20 OVER FILL COLOR=179:0:179 LSTN=25 OVER FILL COLOR=204:0:204 LSTN=30 OVER FILL COLOR=230:0:230 LSTN=35 OVER FILL COLOR=245:45:245 LSTN=40 OVER FILL COLOR=209:0:255 LSTN=45 SADC=1:50 STOR=1 DEGF TEMP
ANALYZE,OVER FILL COLOR=0:255:179 GRTN=90 OVER FILL COLOR=0:255:255 GRTN=85 OVER FILL COLOR=0:230:255 FILS=0 GRTN=80 OVER FILL COLOR=0:204:255 GRTN=75 OVER FILL COLOR=0:163:255 GRTN=70 OVER FILL COLOR=0:115:255 GRTN=65 OVER FILL COLOR=0:74:255 GRTN=60 OVER FILL COLOR=0:0:255 GRTN=55 OVER FILL COLOR=102:0:255 GRTN=50 OVER FILL COLOR=158:0:255 GRTN=45 SADC=1:50 STOR=1 DEGF TEMP 
ANALYZE,OVER FILL COLOR=255:0:0 GRTN=140 OVER FILL COLOR=255:79:0 GRTN=135 OVER FILL COLOR=255:127:0 GRTN=130 OVER FILL COLOR=255:153:0 GRTN=125 OVER FILL COLOR=255:174:0 GRTN=120 OVER FILL COLOR=255:204:0 GRTN=115 OVER FILL COLOR=255:230:0 GRTN=110 OVER FILL COLOR=255:255:0 GRTN=105 OVER FILL COLOR=206:255:0 GRTN 100 OVER FILL COLOR=127:255:0 GRTN=95 SADC=1:50 STOR=1 DEGF TEMP
ANALYZE,OVER FILL COLOR=255:232:232 GRTN=175 OVER FILL COLOR=255:207:207 GRTN=170 OVER FILL COLOR=255:181:181 GRTN=165 OVER FILL COLOR=255:158:158 GRTN=160 OVER FILL COLOR=255:135:135 GRTN=155 OVER FILL COLOR=255:104:104 GRTN=150 OVER FILL COLOR=255:69:69 GRTN=145 SADC=1:50 STOR=1 DEGF TEMP 
ANALYZE,CONT EQUA=32 LINE=2 COLOR=100:50:250 DEGF TEMP
The color scheme is nearly identical to the one found at http://www.wunderground.com.

Also, this script is really intended to be used over a *white* background map. You can run it successfully against other maps with colored backgrounds, but because the colors are translucent, it may not look very good.

hth,
Bob
tornadoforecaster

Re: Script for temperatures

Post by tornadoforecaster »

Thanks Bob!

I'll put this in the works ASAP.

Randy
britbob
Senior Member
Posts: 218
Joined: Sun Nov 07, 2004 6:38 pm
Location: New Brunswick, Canada

Post by britbob »

These colour gradient maps, what format should I be exporting them as?

I have been saving them as gif files, however I`ve noticed that the colours start looking a bit odd as soon as the map is exported. They plot fine in DAWS but once exported they show strange markings, particularly along the isotherms.

Here`s an example of a windchill map I plotted yesterday. You`ll see there`s a dark line that follows the 0C isotherm, and several of the other increments...

See what I mean?

http://www.maritimesweather.com/test_windchills.html
texsky
Senior Member
Posts: 172
Joined: Fri Dec 12, 2003 9:42 pm

Post by texsky »

I believe there's a bit of a problem with how DAWS exports both *.jpg and *.gif files with regards to color. You may want to try exporting as *.bmp instead. Of course, this will increase file size considerably, so keep that in mind when you plan on uploading these images to your website.

hth,
Bob
britbob
Senior Member
Posts: 218
Joined: Sun Nov 07, 2004 6:38 pm
Location: New Brunswick, Canada

Post by britbob »

Thanks Bob,

I tried exporting them in the three main formats.

.gif showed those colour oddities, .jpg wasn`t as bad but there is a loss of quality as expected, .bmp was better but that threw out a map of 1.5mb :shock:

Maybe something that can convert that .bmp to .gif before ftp`ing to my site. It is definately DAWS that is making the odd looking .gif maps!

Head scratching time :?
Post Reply