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

SCRIPT: SubZero Colorfill Workaround

Post by texsky »

For those trying to achieve colorfills for negative values, the following script will plot temperatures in Celsius from -50 to 55 in 3° increments. Feel free to manipulate the script to suit your own desires.

Code: Select all

ANALYZE,OVER FILL COLOR=33:0:107 LSTN=0 OVER FILL COLOR=76:0:107 LSTN=3 OVER FILL COLOR=107:0:107 LSTN=6 OVER FILL COLOR=130:0:130 LSTN=9 OVER FILL COLOR=153:0:153 LSTN=12 OVER FILL COLOR=179:0:179 LSTN=15 OVER FILL COLOR=204:0:204 LSTN=18 OVER FILL COLOR=230:0:230 LSTN=21 OVER FILL COLOR=255:0:255 LSTN=24 OVER FILL COLOR=209:0:255 LSTN=27 SADC=1:50 STOR=1 TEMP
ANALYZE,OVER FILL COLOR=0:255:179 GRTN=54 OVER FILL COLOR=0:255:255 GRTN=51 OVER FILL COLOR=0:230:255 GRTN=48 OVER FILL COLOR=0:204:255 GRTN=45 OVER FILL COLOR=0:163:255 GRTN=42 OVER FILL COLOR=0:115:255 GRTN=39 OVER FILL COLOR=0:74:255 GRTN=36 OVER FILL COLOR=0:0:255 GRTN=33 OVER FILL COLOR=102:0:255 GRTN=30 OVER FILL COLOR=158:0:255 GRTN=27 SADC=1:50 STOR=1 TEMP 
ANALYZE,OVER FILL COLOR=255:0:0 GRTN=84 OVER FILL COLOR=255:79:0 GRTN=81 OVER FILL COLOR=255:127:0 GRTN=78 OVER FILL COLOR=255:153:0 GRTN=75 OVER FILL COLOR=255:174:0 GRTN=72 OVER FILL COLOR=255:204:0 GRTN=69 OVER FILL COLOR=255:230:0 GRTN=66 OVER FILL COLOR=255:255:0 GRTN=63 OVER FILL COLOR=206:255:0 GRTN=60 OVER FILL COLOR=127:255:0 GRTN=57 SADC=1:50 STOR=1 TEMP
ANAYLZE,OVER FILL COLOR=255:232:232 GRTN=105 OVER FILL COLOR=255:207:207 GRTN=102 OVER FILL COLOR=255:181:181 GRTN=99 OVER FILL COLOR=255:158:158 GRTN=96 OVER FILL COLOR=255:135:135 GRTN=93 OVER FILL COLOR=255:104:104 GRTN=90 OVER FILL COLOR=255:69:69 GRTN=87 SADC=1:50 STOR=1 TEMP 
ANALYZE,CONT EQUA=0 LINE=2 COLOR=100:50:250 TEMP
I should also add that this particular color scheme is used on http://www.wunderground.com/ and will look best when overlayed against a white background map.

hth,
Bob
Stefan Lichius
Member
Posts: 88
Joined: Sun Nov 23, 2003 4:34 pm
Location: Leverkusen, GERMANY
Contact:

Post by Stefan Lichius »

Hi Bob,

thank you very much - great work!

Stefan Lichius
Jan Hoeher-Larsen
Junior Member
Posts: 5
Joined: Fri Apr 02, 2004 1:07 pm
Location: Denmark
Contact:

Temp and wind analysis

Post by Jan Hoeher-Larsen »

Based on Texskys and Freds works I have done following scripts for temp analyse between -48C and +48C and wind analyse up to 32 m/s; .... and it works :P

So in my opinion we do not need to wait for any correction in DAWS concerning the negative celcius problems :!:

#Analyze Vind#
ANALYZE,OVER FILL COLOR=220:075:030 GRTN=20 OVER FILL COLOR=230:125:000 GRTN=18 OVER FILL COLOR=254:175:000 GRTN=16 OVER FILL COLOR=254:200:000 GRTN=14 OVER FILL COLOR=254:254:000 GRTN=12 OVER FILL COLOR=000:230:080 GRTN=10 OVER FILL COLOR=000:230:160 GRTN=8 OVER FILL COLOR=000:200:254 GRTN=6 OVER FILL COLOR=000:150:254 GRTN=4 OVER FILL COLOR=000:050:254 GRTN=2 OVER FILL COLOR=115:000:180 GRTN=0 SADC=1:00 STOR=1 WSPD
ANALYZE,OVER FILL COLOR=254:100:175 GRTN=32 OVER FILL COLOR=254:050:150 GRTN=30 OVER FILL COLOR=254:000:150 GRTN=28 OVER FILL COLOR=200:000:100 GRTN=26 OVER FILL COLOR=170:000:010 GRTN=24 OVER FILL COLOR=180:025:030 GRTN=22 SADC=1:00 STOR=1 WSPD
basemap
analyze,CONT CINT=2 COLOR=50:50:50 LINE=2 WSPD
analyze,VECT COLOR=000:000:000 WIND
stamp

#Analyze Temperatur#
ANALYZE,OVER FILL COLOR=245:000:245 LSTN=0 OVER FILL COLOR=228:000:255 LSTN=3 OVER FILL COLOR=179:000:255 LSTN=6 OVER FILL COLOR=109:000:255 LSTN=9 OVER FILL COLOR=022:000:255 LSTN=12 OVER FILL COLOR=000:063:255 LSTN=15 OVER FILL COLOR=000:105:255 LSTN=18 OVER FILL COLOR=000:167:255 LSTN=21 OVER FILL COLOR=000:209:255 LSTN=24 OVER FILL COLOR=000:250:255 LSTN=27 OVER FILL COLOR=000:255:225 LSTN=30 SADC=1:30 STOR=1 TEMP
ANALYZE,OVER FILL COLOR=076:000:107 LSTN=33 OVER FILL COLOR=112:000:112 LSTN=36 OVER FILL COLOR=135:000:135 LSTN=39 OVER FILL COLOR=161:000:161 LSTN=42 OVER FILL COLOR=189:000:189 LSTN=45 OVER FILL COLOR=214:000:214 LSTN=48 SADC=1:78 STOR=1 TEMP
ANALYZE,OVER FILL COLOR=255:014:014 GRTN=78 OVER FILL COLOR=255:072:000 GRTN=75 OVER FILL COLOR=255:127:000 GRTN=72 OVER FILL COLOR=255:155:074 GRTN=69 OVER FILL COLOR=255:180:000 GRTN=66 OVER FILL COLOR=255:212:000 GRTN=63 OVER FILL COLOR=255:240:000 GRTN=60 OVER FILL COLOR=236:255:000 GRTN=57 OVER FILL COLOR=159:255:000 GRTN=54 OVER FILL COLOR=050:255:108 GRTN=51 OVER FILL COLOR=000:255:190 GRTN=48 SADC=1:48 STOR=1 TEMP
ANALYZE,OVER FILL COLOR=255:222:222 GRTN=96 OVER FILL COLOR=255:194:194 GRTN=93 OVER FILL COLOR=255:167:167 GRTN=90 OVER FILL COLOR=255:144:144 GRTN=87 OVER FILL COLOR=255:110:110 GRTN=84 OVER FILL COLOR=255:073:073 GRTN=81 SADC=1:48 STOR=1 TEMP
basemap
ANALYZE,CONT CINT=3 COLOR=100:100:100 LINE=2 TEMP
ANALYZE,CONT EQUA=0 LINE=3 COLOR=000:000:255 TEMP
ANALYZE,CONT EQUA=25 LINE=3 COLOR=255:000:000 TEMP
Product,TDY,0,Television-style
stamp

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

Post by britbob »

Great script Bob :)

How can I add a few more isotherm lines to that script? Say in increments of 10C or so?
texsky
Senior Member
Posts: 172
Joined: Fri Dec 12, 2003 9:42 pm

Post by texsky »

ANALYZE,CONT CINT=10 LINE=2 COLOR=100:50:250 TEMP

...should do the trick. The keyword CINT controls the contouring intervals.

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

Post by britbob »

Thanks again Bob.

I`m trying to use this coloured script for windchill values too. I`m in Canada, and windchills below -50C are not uncommon. Can the script go below -50C or is that the limits?
texsky
Senior Member
Posts: 172
Joined: Fri Dec 12, 2003 9:42 pm

Post by texsky »

Time to move South! :D

Yes, the script can be altered for lower values...as an example the following wind chill script goes to -65°C in 3° increments:

Code: Select all

ANALYZE,OVER FILL COLOR=80:0:80 LSTN=0 OVER FILL COLOR=95:0:95 LSTN=3 OVER FILL COLOR=115:0:115 LSTN=6 OVER FILL COLOR=130:0:130 LSTN=9 OVER FILL COLOR=153:0:153 LSTN=12 OVER FILL COLOR=179:0:179 LSTN=15 OVER FILL COLOR=204:0:204 LSTN=18 OVER FILL COLOR=230:0:230 LSTN=21 OVER FILL COLOR=255:0:255 LSTN=24 OVER FILL COLOR=209:0:255 LSTN=27 SADC=1:65 STOR=1 DEGC WCHL
ANALYZE,OVER FILL COLOR=0:255:179 GRTN=54 OVER FILL COLOR=0:255:255 GRTN=51 OVER FILL COLOR=0:230:255 FILS=0 GRTN=48 OVER FILL COLOR=0:204:255 GRTN=45 OVER FILL COLOR=0:163:255 GRTN=42 OVER FILL COLOR=0:115:255 GRTN=39 OVER FILL COLOR=0:74:255 GRTN=36 OVER FILL COLOR=0:0:255 GRTN=33 OVER FILL COLOR=102:0:255 GRTN=30 OVER FILL COLOR=158:0:255 GRTN=27 SADC=1:65 STOR=1 DEGC WCHL 
ANALYZE,OVER FILL COLOR=255:0:0 GRTN=84 OVER FILL COLOR=255:79:0 GRTN=81 OVER FILL COLOR=255:127:0 GRTN=78 OVER FILL COLOR=255:153:0 GRTN=75 OVER FILL COLOR=255:174:0 GRTN=72 OVER FILL COLOR=255:204:0 GRTN=69 OVER FILL COLOR=255:230:0 GRTN=66 OVER FILL COLOR=255:255:0 GRTN=63 OVER FILL COLOR=206:255:0 GRTN=60 OVER FILL COLOR=127:255:0 GRTN=57 SADC=1:65 STOR=1 DEGC WCHL
ANALYZE,CONT COLOR=100:100:250 EQUA=0 LINE=2 DEGC WCHL
The way to modify it is to adjust the second number in each line where it reads "SADC=1:65". So, if you want WC's to -75°C, change the number to 75, and so on.

As you may or may not be aware, this type of script is a workaround for a bug in DAWS that prevents contouring of negative numbers, so I came up with this solution until a patch is released.

hth,
Bob
Guest

Post by Guest »

Thanks again Bob,

Works perfectly, however the windchill temperatures being generated are way off the mark. There is no windchill in Atlantic Canada, well nothing worth mentioning, yet DAWS is plotting much of eastern Canada with windchills from 10C to 40C !!! Yes those are on the plus side!!

I`m getting the synop data from Albany, and only have this problem with windchills.

Regards,
Bob.
texsky
Senior Member
Posts: 172
Joined: Fri Dec 12, 2003 9:42 pm

Post by texsky »

Hmmm...just took a look at a windchill map of North America generated in DAWS and it looks about right to my eyes. Keep in mind that the contouring algorithms used by DAWS aren't perfect and won't give ultra-precise results, but all in all they should be reasonably accurate. Maybe you could post an image of the area you believe is in error. Without seeing it for myself, it's a bit difficult to try to diagnose the problem with much confidence.

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

Post by britbob »

This is a funny old forum, sometimes it takes two or three attempts to stay logged in!!

Here`s a link. You can see a large swathe of eastern Canada is between 0C and 20C, southern most Nova Scotia is close to 30C.

I`m tired, so maybe I`m doing something wrong here!!

http://www.maritimesweather.com/test_windchills.html
Post Reply