The Weather Forecasting Forum
http://www.weathergraphics.com/forum/

Colorfill scripting - Need some help
http://www.weathergraphics.com/forum/viewtopic.php?f=9&t=1361
Page 1 of 1

Author:  ezweather [ Tue Mar 04, 2008 10:01 pm ]
Post subject:  Colorfill scripting - Need some help

Hi Everyone,

I'm hopeful some of you have written script for a variety of analyses using colorfill. I like to do that with surface and upper such as

Relative Humidity
Upper Air Heights

Those are the two I'm trying to do, but have had no success at all.

I tried reading the manual, but just don't understand the logic to build them.

Author:  synoptic [ Wed Mar 05, 2008 3:52 pm ]
Post subject: 

I can help you with collorfill script for temp if you want, you could addjust that I think

Author:  ezweather [ Wed Mar 05, 2008 7:48 pm ]
Post subject: 

synoptic wrote:
I can help you with collorfill script for temp if you want, you could addjust that I think


Well, I've got the temperature plots down, but for upper air heights, no luck at all. Unless you might know someone that has done a variety of them, then that would be great. Just looking for other examples.

Author:  synoptic [ Wed Mar 05, 2008 8:33 pm ]
Post subject: 

Sorry can't help you and I do not know anyone that can.

Author:  weasel2 [ Wed Mar 05, 2008 11:01 pm ]
Post subject: 

Are you looking to colour code the heights on upper air charts?

Pat

Edit: Oops sorry about that lol

I'll post scripts for those two either later today or tomorrow.

Author:  Les [ Sun Mar 23, 2008 7:19 pm ]
Post subject: 

Try the following.
'Temp H500' sets the temperatures for the 500 mB level.
If you replace this by 'TEMP H100' the fills will be drawn for the temperatures at the 100 mB level; TEMP H925 for the 925 mB level and so on ...

Otherwise, the code is the same as for Sea Level temperature fills, where you use 'TEMP'.

Good luck,

Les



ERASE
# Store actual temperatures for the 500 mB level
ANALYZE,STOR=1 TEMP H500


#Store ZERO - (TEMP/1000 is approximately ZERO)
analyze,STOR=2 SDVC=1:1000

# Subtract temperature from 0 - converts -T to +T - plot in 'cool' colour
ANALYZE,OVER FILL COLOR=000:239:255 GRTN=0 SDIF=2:1
ANALYZE,OVER FILL COLOR=000:255:209 GRTN=0 SDIF=1:2
ANALYZE,OVER FILL COLOR=000:154:255 GRTN=5 SDIF=2:1
ANALYZE,OVER FILL COLOR=159:255:000 GRTN=5 SDIF=1:2
ANALYZE,OVER FILL COLOR=000:080:255 GRTN=10 SDIF=2:1
ANALYZE,OVER FILL COLOR=255:255:000 GRTN=10 SDIF=1:2
ANALYZE,OVER FILL COLOR=082:000:255 GRTN=15 SDIF=2:1
ANALYZE,OVER FILL COLOR=255:204:000 GRTN=15 SDIF=1:2
ANALYZE,OVER FILL COLOR=179:000:255 GRTN=20 SDIF=2:1
ANALYZE,OVER FILL COLOR=255:161:000 GRTN=20 SDIF=1:2
ANALYZE,OVER FILL COLOR=242:000:242 GRTN=25 SDIF=2:1
ANALYZE,OVER FILL COLOR=255:097:000 GRTN=25 SDIF=1:2
ANALYZE,OVER FILL COLOR=204:000:204 GRTN=30 SDIF=2:1
ANALYZE,OVER FILL COLOR=255:014:014 GRTN=30 SDIF=1:2
ANALYZE,OVER FILL COLOR=153:000:153 GRTN=35 SDIF=2:1
ANALYZE,OVER FILL COLOR=255:110:110 GRTN=35 SDIF=1:2
ANALYZE,OVER FILL COLOR=122:000:116 GRTN=40 SDIF=2:1
ANALYZE,OVER FILL COLOR=255:153:153 GRTN=40 SDIF=1:2
#basemap
ANALYZE,CONT CINT=5 COLOR=100:100:100 LINE=1
ANALYZE,CONT COLOR=255:255:255 EQUA=0 LINE=1

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/