 # The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
 It is currently Sun Sep 15, 2019 10:03 pm

 All times are UTC  Page 1 of 2 [ 13 posts ] Go to page 1, 2  Next
 Print view Previous topic | Next topic
Author Message
 Post subject: Script for Surface Temperature as colored fill Posted: Tue Nov 09, 2004 1:14 pm Member

Joined: Sun Nov 23, 2003 4:34 pm
Posts: 88
Location: Leverkusen, GERMANY
Hi all,

has anyone experience in scripting the surface temperature as colored fill?

thanks,
Stefan

Top Post subject: Posted: Tue Nov 09, 2004 7:21 pm Senior Member

Joined: Fri Dec 12, 2003 9:42 pm
Posts: 164
Stefan,

It can be done but only for positive temperature values. Unfortunately the scripting parameters won't allow negative numbers...ie below zero temps.

That said, the following script works for Fahrenheit temperatures.

Code:
ANALYZE,OVER FILL COLOR=000:125:250 FILS=0 GRTN=0 FILL DEGF TEMP
ANALYZE,OVER FILL COLOR=255:215:000 FILS=0 GRTN=40 FILL COLOR=255:255:000 FILS=0 GRTN=30 FILL COLOR=000:200:000 FILS=0 GRTN=20 FILL COLOR=000:141:000 FILS=0 GRTN=10 DEGF TEMP
ANALYZE,OVER FILL COLOR=192:025:030 FILS=0 GRTN=80 FILL COLOR=210:000:000 FILS=0 GRTN=70 FILS=0 FILL COLOR=228:084:000 GRTN=60 FILL COLOR=237:159:000 FILS=0 GRTN=50 DEGF TEMP

If DAWS could plot in degrees Kelvin, we could get around this limitation. Perhaps Tim will work on this when he resumes programming.

hth,
Bob

Top Post subject: Posted: Tue Nov 09, 2004 8:21 pm Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
Bob

Great script. Below a quick conversion in to Celcius (every 5 degrees)

ANALYZE,OVER FILL COLOR=000:125:250 FILS=0 GRTN=0 FILL TEMP
ANALYZE,OVER FILL COLOR=255:215:000 FILS=0 GRTN=20 FILL COLOR=255:255:000 FILS=0 GRTN=15 FILL COLOR=000:200:000 FILS=0 GRTN=10 FILL COLOR=000:141:000 FILS=0 GRTN=5 TEMP
ANALYZE,OVER FILL COLOR=192:025:030 FILS=0 GRTN=40 FILL COLOR=210:000:000 FILS=0 GRTN=35 FILS=0 FILL COLOR=228:084:000 GRTN=30 FILL COLOR=237:159:000 FILS=0 GRTN=25 TEMP

Greetings

Fred

Top Post subject: Posted: Tue Nov 09, 2004 8:36 pm Member

Joined: Sun Nov 23, 2003 4:34 pm
Posts: 88
Location: Leverkusen, GERMANY
Hi Bob, hi Fred,

thanks for the scripts - very fine.
Now I have the problem, that the map contours are gone. It would be fine, if the map could be overlayed.
I know the command "OVER", but it doesn`t work the way I use it.
Any idea are appreciated.

thanks,
Stefan

Top Post subject: Posted: Tue Nov 09, 2004 8:52 pm Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
Stefan

You can add BASEMAP at the end of the script.

Greetings

Fred

Top Post subject: Posted: Tue Nov 09, 2004 10:24 pm Member

Joined: Sun Nov 23, 2003 4:34 pm
Posts: 88
Location: Leverkusen, GERMANY
Hi all,

I have found good results with the following commands:
OVER FILL COLOR=237:159:000 FILS=0 GRTN=14 FILL TEMP OVER FILL COLOR=228:084:000 FILS=0 GRTN=12 FILL COLOR=210:000:000 FILS=0 GRTN=10 FILL COLOR=192:025:030 FILS=0 GRTN=8 FILL COLOR=000:141:000 FILS=0 GRTN=6 TEMP OVER FILL COLOR=000:200:000 FILS=0 GRTN=4 FILL COLOR=255:255:000 FILS=0 GRTN=2 FILS=0 FILL COLOR=255:215:000 GRTN=1 FILL COLOR=000:125:250 FILS=0 GRTN=0 TEMP

Stefan

Top Post subject: Posted: Thu Nov 11, 2004 7:21 pm Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
Hello

Based on the above scripts:

ANALYZE,OVER FILL COLOR=000:125:250 FILS=0 GRTN=0 FILL TEMP
ANALYZE,OVER FILL COLOR=129:071:251 FILS=0 GRTN=2 TEMP
ANALYZE,OVER FILL COLOR=079:079:251 FILS=0 GRTN=4 TEMP
ANALYZE,OVER FILL COLOR=086:140:250 FILS=0 GRTN=6 TEMP
ANALYZE,OVER FILL COLOR=107:191:249 FILS=0 GRTN=8 TEMP
ANALYZE,OVER FILL COLOR=103:249:237 FILS=0 GRTN=10 TEMP
ANALYZE,OVER FILL COLOR=062:250:181 FILS=0 GRTN=12 TEMP
ANALYZE,OVER FILL COLOR=074:240:112 FILS=0 GRTN=14 TEMP
ANALYZE,OVER FILL COLOR=128:210:089 FILS=0 GRTN=16 TEMP
ANALYZE,OVER FILL COLOR=161:220:068 FILS=0 GRTN=18 TEMP
ANALYZE,OVER FILL COLOR=183:250:048 FILS=0 GRTN=20 TEMP
ANALYZE,OVER FILL COLOR=222:232:116 FILS=0 GRTN=22 TEMP
ANALYZE,OVER FILL COLOR=245:237:153 FILS=0 GRTN=24 TEMP
ANALYZE,OVER FILL COLOR=245:177:109 FILS=0 GRTN=26 TEMP
ANALYZE,OVER FILL COLOR=247:137:085 FILS=0 GRTN=28 TEMP
ANALYZE,OVER FILL COLOR=254:077:042 FILS=0 GRTN=30 TEMP
ANALYZE,OVER FILL COLOR=254:077:042 FILS=0 GRTN=32 TEMP
ANALYZE,OVER FILL COLOR=255:047:042 FILS=0 GRTN=34 TEMP
ANALYZE,OVER FILL COLOR=255:027:032 FILS=0 GRTN=36 TEMP
ANALYZE,OVER FILL COLOR=255:017:022 FILS=0 GRTN=38 TEMP
ANALYZE,OVER FILL COLOR=255:007:012 FILS=0 GRTN=40 TEMP

Greetings

Fred

Top Post subject: Below zero Posted: Sun Nov 21, 2004 10:14 am Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
Hello

Below a script that can be used for temperatures up to -16C. I did it by converting the temp C to temp F and use that temperature for comparing. The colours I used for now are the same as for the positive temps. Who works out with better colours?

Greetings

Fred

ANALYZE,OVER FILL COLOR=000:125:250 FILS=0 GRTN=0 FILL TEMP
ANALYZE,OVER FILL COLOR=128:210:089 FILS=0 GRTN=3.2 DEGF TEMP
ANALYZE,OVER FILL COLOR=074:240:112 FILS=0 GRTN=6.8 DEGF TEMP
ANALYZE,OVER FILL COLOR=062:250:181 FILS=0 GRTN=10.4 DEGF TEMP
ANALYZE,OVER FILL COLOR=103:249:237 FILS=0 GRTN=14 DEGF TEMP
ANALYZE,OVER FILL COLOR=107:191:249 FILS=0 GRTN=17.6 DEGF TEMP
ANALYZE,OVER FILL COLOR=086:140:250 FILS=0 GRTN=21.2 DEGF TEMP
ANALYZE,OVER FILL COLOR=079:079:251 FILS=0 GRTN=24.8 DEGF TEMP
ANALYZE,OVER FILL COLOR=129:071:251 FILS=0 GRTN=28.4 DEGF TEMP
ANALYZE,OVER FILL COLOR=000:125:250 FILS=0 GRTN=0 TEMP
ANALYZE,OVER FILL COLOR=129:071:251 FILS=0 GRTN=2 TEMP
ANALYZE,OVER FILL COLOR=079:079:251 FILS=0 GRTN=4 TEMP
ANALYZE,OVER FILL COLOR=086:140:250 FILS=0 GRTN=6 TEMP
ANALYZE,OVER FILL COLOR=107:191:249 FILS=0 GRTN=8 TEMP
ANALYZE,OVER FILL COLOR=103:249:237 FILS=0 GRTN=10 TEMP
ANALYZE,OVER FILL COLOR=062:250:181 FILS=0 GRTN=12 TEMP
ANALYZE,OVER FILL COLOR=074:240:112 FILS=0 GRTN=14 TEMP
ANALYZE,OVER FILL COLOR=128:210:089 FILS=0 GRTN=16 TEMP
ANALYZE,OVER FILL COLOR=161:220:068 FILS=0 GRTN=18 TEMP
ANALYZE,OVER FILL COLOR=183:250:048 FILS=0 GRTN=20 TEMP
ANALYZE,OVER FILL COLOR=222:232:116 FILS=0 GRTN=22 TEMP
ANALYZE,OVER FILL COLOR=245:237:153 FILS=0 GRTN=24 TEMP
ANALYZE,OVER FILL COLOR=245:177:109 FILS=0 GRTN=26 TEMP
ANALYZE,OVER FILL COLOR=247:137:085 FILS=0 GRTN=28 TEMP
ANALYZE,OVER FILL COLOR=254:077:042 FILS=0 GRTN=30 TEMP
ANALYZE,OVER FILL COLOR=254:077:042 FILS=0 GRTN=32 TEMP
ANALYZE,OVER FILL COLOR=255:047:042 FILS=0 GRTN=34 TEMP
ANALYZE,OVER FILL COLOR=255:027:032 FILS=0 GRTN=36 TEMP
ANALYZE,OVER FILL COLOR=255:017:022 FILS=0 GRTN=38 TEMP
ANALYZE,OVER FILL COLOR=255:007:012 FILS=0 GRTN=40 TEMP

Top Post subject: Posted: Sun Nov 21, 2004 11:24 pm
I have try too, to work out the difficulties with temp. below 0 cel. in the best possible way, and have now came up with below script.

It works, in a part of the way, in the same manner as Fred's, but I have rule the analyzies out completely in Farenheit with contours of 3 celcius degress converted in Farenheit.

Thereafter I ran a basemap and so - my point - an normal analyze per 3 celcius degrees so I come up with filled in lines and numbers of temp. in celcius.

Of course I still have the problem with temp. below 0 Farenheit (- 17.8 C.) that would have the same colour, but temps. below that value are split up in individual contours and numbers of temp.

Also the temp. colour I have tried to work out in a different way so it almots match the way of GFS forecast.

You can have a look at the my uploaded map (map 3) here to see the result:

http://www.jahla.dk/MelfarVejr/Online/Observationer/Oversigtskort.htm

Thanks to all for your valuable hints #Analyze Temperatur#
ANALYZE,OVER FILL COLOR=200:005:200 FILS=0 GRTN<0.0 FILL DEGF TEMP
ANALYZE,OVER FILL COLOR=000:000:255 FILS=0 GRTN=5.0 DEGF TEMP
ANALYZE,OVER FILL COLOR=085:085:255 FILS=0 GRTN=10.4 DEGF TEMP
ANALYZE,OVER FILL COLOR=136:136:255 FILS=0 GRTN=15.8 DEGF TEMP
ANALYZE,OVER FILL COLOR=130:235:255 FILS=0 GRTN=21.2 DEGF TEMP
ANALYZE,OVER FILL COLOR=128:255:228 FILS=0 GRTN=26.6 DEGF TEMP
ANALYZE,OVER FILL COLOR=128:255:166 FILS=0 GRTN=32.0 DEGF TEMP
ANALYZE,OVER FILL COLOR=128:255:128 FILS=0 GRTN=37.4 DEGF TEMP
ANALYZE,OVER FILL COLOR=048:255:048 FILS=0 GRTN=42.8 DEGF TEMP
ANALYZE,OVER FILL COLOR=010:255:010 FILS=0 GRTN=48.2 DEGF TEMP
ANALYZE,OVER FILL COLOR=255:240:010 FILS=0 GRTN=53.6 DEGF TEMP
ANALYZE,OVER FILL COLOR=240:228:000 FILS=0 GRTN=59.0 DEGF TEMP
ANALYZE,OVER FILL COLOR=240:210:000 FILS=0 GRTN=64.4 DEGF TEMP
ANALYZE,OVER FILL COLOR=255:174:028 FILS=0 GRTN=69.8 DEGF TEMP
ANALYZE,OVER FILL COLOR=255:142:028 FILS=0 GRTN=75.2 DEGF TEMP
ANALYZE,OVER FILL COLOR=255:134:012 FILS=0 GRTN=80.6 DEGF TEMP
ANALYZE,OVER FILL COLOR=230:115:000 FILS=0 GRTN=86.0 DEGF TEMP
ANALYZE,OVER FILL COLOR=228:092:000 FILS=0 GRTN=91.4 DEGF TEMP
ANALYZE,OVER FILL COLOR=236:066:016 FILS=0 GRTN=96.8 DEGF TEMP
ANALYZE,OVER FILL COLOR=225:040:016 FILS=0 GRTN=102.2 DEGF TEMP
ANALYZE,OVER FILL COLOR=255:045:150 FILS=0 GRTN=107.6 DEGF TEMP
basemap
analyze,CONT CINT=3 COLOR=100:100:100 LINE=2 TEMP

Top Post subject: Posted: Mon Nov 22, 2004 7:09 pm Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
Hello Janus

Thanks for your script. The reason that it's partly in F and partly in C is that I'm lazy. I copied the part above zero and changed that part into F below zero.

As a beginner in weather your comments raised a question. You said that the colours matches GFS forecast. This gives me the impression that there is a kind of standard (perhaps even a table of temp versus RGB-values). I searched on internet and found some drawings but with different colours. Is there something like a standard?

Greetings

Fred

Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending  Page 1 of 2 [ 13 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 forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ Software and forecasting tools    Digital Atmosphere       Digital Atmosphere scripting laboratory has moved to the main menu of the forum    Digital Atmosphere scripting laboratory    RAOB -- the Universal RAwinsonde OBservation program    WX-SIM, WINGRIDDS, MCIDAS, and other weather forecasting software    Home weather stations    Station identifiers Miscellaneous    The Lounge       The Forecast Office 