The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Tue Oct 24, 2017 12:34 am

All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sun Feb 05, 2006 1:59 pm 
Offline
Member

Joined: Tue Jan 24, 2006 12:00 am
Posts: 58
Location: Jersey City, NJ
I know temperature scripts have been posted here before, but I decided to take matters into my own hands and try to contour temperatures to every 1 degree to get as close to a gradient effect as I could. It also bolds the 32F contour.

Still anxiously awaiting a DAWS update. 8)

Oh yeah, I didn't contour below 0F. Sorry! :wink:

analyze,OVER FILL COLOR=255:202:235 GRTN=0 SADC=1:20 STOR=1 DEGF TEMP
analyze,OVER FILL COLOR=255:170:223 GRTN=0 SADC=1:15 STOR=1 DEGF TEMP
analyze,OVER FILL COLOR=255:85:242 GRTN=0 SADC=1:10 STOR=1 DEGF TEMP
analyze,OVER FILL COLOR=223:0:255 GRTN=0 SADC=1:5 STOR=1 DEGF TEMP
analyze,OVER FILL COLOR=179:0:255 GRTN=0 DEGF TEMP
analyze,OVER FILL COLOR=168:0:255 GRTN=1 DEGF TEMP
analyze,OVER FILL COLOR=158:0:255 GRTN=2 DEGF TEMP
analyze,OVER FILL COLOR=148:0:255 GRTN=3 DEGF TEMP
analyze,OVER FILL COLOR=138:0:255 GRTN=4 DEGF TEMP
analyze,OVER FILL COLOR=128:0:255 GRTN=5 DEGF TEMP
analyze,OVER FILL COLOR=103:0:255 GRTN=6 DEGF TEMP
analyze,OVER FILL COLOR=77:0:255 GRTN=7 DEGF TEMP
analyze,OVER FILL COLOR=52:0:255 GRTN=8 DEGF TEMP
analyze,OVER FILL COLOR=26:0:255 GRTN=9 DEGF TEMP
analyze,OVER FILL COLOR=0:0:255 GRTN=10 DEGF TEMP
analyze,OVER FILL COLOR=0:18:255 GRTN=11 DEGF TEMP
analyze,OVER FILL COLOR=0:36:255 GRTN=12 DEGF TEMP
analyze,OVER FILL COLOR=0:54:255 GRTN=13 DEGF TEMP
analyze,OVER FILL COLOR=0:72:255 GRTN=14 DEGF TEMP
analyze,OVER FILL COLOR=0:89:255 GRTN=15 DEGF TEMP
analyze,OVER FILL COLOR=0:100:255 GRTN=16 DEGF TEMP
analyze,OVER FILL COLOR=0:112:255 GRTN=17 DEGF TEMP
analyze,OVER FILL COLOR=0:123:255 GRTN=18 DEGF TEMP
analyze,OVER FILL COLOR=0:135:255 GRTN=19 DEGF TEMP
analyze,OVER FILL COLOR=0:147:255 GRTN=20 DEGF TEMP
analyze,OVER FILL COLOR=0:157:255 GRTN=21 DEGF TEMP
analyze,OVER FILL COLOR=0:167:255 GRTN=22 DEGF TEMP
analyze,OVER FILL COLOR=0:177:255 GRTN=23 DEGF TEMP
analyze,OVER FILL COLOR=0:187:255 GRTN=24 DEGF TEMP
analyze,OVER FILL COLOR=0:198:255 GRTN=25 DEGF TEMP
analyze,OVER FILL COLOR=0:209:255 GRTN=26 DEGF TEMP
analyze,OVER FILL COLOR=0:221:255 GRTN=27 DEGF TEMP
analyze,OVER FILL COLOR=0:232:255 GRTN=28 DEGF TEMP
analyze,OVER FILL COLOR=0:244:255 GRTN=29 DEGF TEMP
analyze,OVER FILL COLOR=0:255:255 GRTN=30 DEGF TEMP
analyze,OVER FILL COLOR=0:246:241 GRTN=31 DEGF TEMP
analyze,OVER FILL COLOR=0:237:227 GRTN=32 DEGF TEMP
analyze,OVER FILL COLOR=0:228:213 GRTN=33 DEGF TEMP
analyze,OVER FILL COLOR=0:219:199 GRTN=34 DEGF TEMP
analyze,OVER FILL COLOR=0:210:184 GRTN=35 DEGF TEMP
analyze,OVER FILL COLOR=0:192:165 GRTN=36 DEGF TEMP
analyze,OVER FILL COLOR=0:174:146 GRTN=37 DEGF TEMP
analyze,OVER FILL COLOR=0:155:127 GRTN=38 DEGF TEMP
analyze,OVER FILL COLOR=0:137:108 GRTN=39 DEGF TEMP
analyze,OVER FILL COLOR=0:117:90 GRTN=40 DEGF TEMP
analyze,OVER FILL COLOR=0:111:72 GRTN=41 DEGF TEMP
analyze,OVER FILL COLOR=0:106:54 GRTN=42 DEGF TEMP
analyze,OVER FILL COLOR=0:100:36 GRTN=43 DEGF TEMP
analyze,OVER FILL COLOR=0:94:18 GRTN=44 DEGF TEMP
analyze,OVER FILL COLOR=0:85:0 GRTN=45 DEGF TEMP
analyze,OVER FILL COLOR=0:94:0 GRTN=46 DEGF TEMP
analyze,OVER FILL COLOR=0:100:0 GRTN=47 DEGF TEMP
analyze,OVER FILL COLOR=0:106:0 GRTN=48 DEGF TEMP
analyze,OVER FILL COLOR=0:111:0 GRTN=49 DEGF TEMP
analyze,OVER FILL COLOR=0:117:0 GRTN=50 DEGF TEMP
analyze,OVER FILL COLOR=0:126:0 GRTN=51 DEGF TEMP
analyze,OVER FILL COLOR=0:135:0 GRTN=52 DEGF TEMP
analyze,OVER FILL COLOR=0:144:0 GRTN=53 DEGF TEMP
analyze,OVER FILL COLOR=0:153:0 GRTN=54 DEGF TEMP
analyze,OVER FILL COLOR=0:164:0 GRTN=55 DEGF TEMP
analyze,OVER FILL COLOR=20:172:0 GRTN=56 DEGF TEMP
analyze,OVER FILL COLOR=40:180:0 GRTN=57 DEGF TEMP
analyze,OVER FILL COLOR=61:188:0 GRTN=58 DEGF TEMP
analyze,OVER FILL COLOR=81:196:0 GRTN=59 DEGF TEMP
analyze,OVER FILL COLOR=102:204:0 GRTN=60 DEGF TEMP
analyze,OVER FILL COLOR=119:209:0 GRTN=61 DEGF TEMP
analyze,OVER FILL COLOR=136:214:0 GRTN=62 DEGF TEMP
analyze,OVER FILL COLOR=154:219:0 GRTN=63 DEGF TEMP
analyze,OVER FILL COLOR=171:224:0 GRTN=64 DEGF TEMP
analyze,OVER FILL COLOR=189:230:0 GRTN=65 DEGF TEMP
analyze,OVER FILL COLOR=202:235:0 GRTN=66 DEGF TEMP
analyze,OVER FILL COLOR=215:240:0 GRTN=67 DEGF TEMP
analyze,OVER FILL COLOR=228:245:0 GRTN=68 DEGF TEMP
analyze,OVER FILL COLOR=241:250:0 GRTN=69 DEGF TEMP
analyze,OVER FILL COLOR=255:255:0 GRTN=70 DEGF TEMP
analyze,OVER FILL COLOR=255:248:13 GRTN=71 DEGF TEMP
analyze,OVER FILL COLOR=255:240:26 GRTN=72 DEGF TEMP
analyze,OVER FILL COLOR=255:233:38 GRTN=73 DEGF TEMP
analyze,OVER FILL COLOR=255:225:51 GRTN=74 DEGF TEMP
analyze,OVER FILL COLOR=255:217:64 GRTN=75 DEGF TEMP
analyze,OVER FILL COLOR=255:209:64 GRTN=76 DEGF TEMP
analyze,OVER FILL COLOR=255:201:64 GRTN=77 DEGF TEMP
analyze,OVER FILL COLOR=255:192:64 GRTN=78 DEGF TEMP
analyze,OVER FILL COLOR=255:183:64 GRTN=79 DEGF TEMP
analyze,OVER FILL COLOR=255:174:64 GRTN=80 DEGF TEMP
analyze,OVER FILL COLOR=255:164:64 GRTN=81 DEGF TEMP
analyze,OVER FILL COLOR=255:153:64 GRTN=82 DEGF TEMP
analyze,OVER FILL COLOR=255:142:64 GRTN=83 DEGF TEMP
analyze,OVER FILL COLOR=255:131:64 GRTN=84 DEGF TEMP
analyze,OVER FILL COLOR=255:121:64 GRTN=85 DEGF TEMP
analyze,OVER FILL COLOR=255:97:51 GRTN=86 DEGF TEMP
analyze,OVER FILL COLOR=255:73:38 GRTN=87 DEGF TEMP
analyze,OVER FILL COLOR=255:49:25 GRTN=88 DEGF TEMP
analyze,OVER FILL COLOR=255:25:12 GRTN=89 DEGF TEMP
analyze,OVER FILL COLOR=255:0:0 GRTN=90 DEGF TEMP
analyze,OVER FILL COLOR=248:0:0 GRTN=91 DEGF TEMP
analyze,OVER FILL COLOR=241:0:0 GRTN=92 DEGF TEMP
analyze,OVER FILL COLOR=234:0:0 GRTN=93 DEGF TEMP
analyze,OVER FILL COLOR=227:0:0 GRTN=94 DEGF TEMP
analyze,OVER FILL COLOR=221:0:0 GRTN=95 DEGF TEMP
analyze,OVER FILL COLOR=214:0:0 GRTN=96 DEGF TEMP
analyze,OVER FILL COLOR=206:0:0 GRTN=97 DEGF TEMP
analyze,OVER FILL COLOR=199:0:0 GRTN=98 DEGF TEMP
analyze,OVER FILL COLOR=191:0:0 GRTN=99 DEGF TEMP
analyze,OVER FILL COLOR=183:0:0 GRTN=100 DEGF TEMP
analyze,OVER FILL COLOR=173:0:0 GRTN=101 DEGF TEMP
analyze,OVER FILL COLOR=163:0:0 GRTN=102 DEGF TEMP
analyze,OVER FILL COLOR=153:0:0 GRTN=103 DEGF TEMP
analyze,OVER FILL COLOR=143:0:0 GRTN=104 DEGF TEMP
analyze,OVER FILL COLOR=132:0:0 GRTN=105 DEGF TEMP
analyze,OVER FILL COLOR=131:0:25 GRTN=106 DEGF TEMP
analyze,OVER FILL COLOR=130:0:51 GRTN=107 DEGF TEMP
analyze,OVER FILL COLOR=129:0:77 GRTN=108 DEGF TEMP
analyze,OVER FILL COLOR=128:0:102 GRTN=109 DEGF TEMP
analyze,OVER FILL COLOR=128:0:128 GRTN=110 DEGF TEMP
analyze,OVER FILL COLOR=191:0:191 GRTN=115 DEGF TEMP
analyze,OVER FILL COLOR=205:0:205 GRTN=116 DEGF TEMP
analyze,OVER FILL COLOR=220:0:220 GRTN=117 DEGF TEMP
analyze,OVER FILL COLOR=232:0:232 GRTN=118 DEGF TEMP
analyze,OVER FILL COLOR=232:0:232 GRTN=119 DEGF TEMP
analyze,OVER FILL COLOR=255:0:255 GRTN=120 DEGF TEMP
analyze,CONT CINT=100.0 COLOR=100:100:100 LINE=2 TEMP
BASEMAP
STAMP

I can't wait for CAPE/LI scripts.. and I wish I could script with GRIB! I saw a poster do it in another thread for a hurricane and for the life of me I just can't get it. :(


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 06, 2006 3:59 am 
Offline
Member

Joined: Thu Jun 23, 2005 1:06 am
Posts: 12
Location: Houston, TX
Wow, that is an awesome script. I was wondering if you could create another script that would plot the dew point temp every 1 degree F as well.


Top
 Profile  
 
 Post subject: re:
PostPosted: Mon Feb 06, 2006 11:37 pm 
Offline
Member

Joined: Tue Jan 24, 2006 12:00 am
Posts: 58
Location: Jersey City, NJ
Wow - that is a good idea.

Someone originally posted this script contoured to every 5 degrees with the colors already included. All I had to do (this was pretty time consuming though) was find the difference between two color codes (5 degrees apart), divide it by 5, and increase each degree's color by that increment (if that makes sense).

If I have free time tonight I will start with a Dewpoint one.

The colors are going to be so close together it should REALLY make a nice gradient!

Should I contour every 10 degrees? Or maybe just bold the line of 50, 60, and 70 DP's.


Top
 Profile  
 
 Post subject: Re: dew point script
PostPosted: Tue Feb 07, 2006 2:12 am 
The temperature script produced a stunning result, so with dew point, it should be just as stunning. I suggest just bolding the 70 degree line, because that's where the highest moisture exists. Contouring ever 5 degrees is fine, at least for me anyway.

Thanks,

Randy


Top
  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 3:14 am 
Offline
Senior Member

Joined: Sun Nov 07, 2004 6:38 pm
Posts: 219
Location: New Brunswick, Canada
Very nice indeed.

The dark green contours looks a little out of place. Maybe a blend of light greens to yellow?

Thanks for this. I might have a play around with the colours.


Top
 Profile  
 
 Post subject: re:
PostPosted: Tue Feb 07, 2006 3:39 am 
Offline
Member

Joined: Tue Jan 24, 2006 12:00 am
Posts: 58
Location: Jersey City, NJ
Yeah, sure go ahead.

As I said, I didn't pick out the colors - those are the colors the ECMWF uses, and someone had posted it. I just split it up between every 5 degrees.

If you find a color scheme that has better colors, please by all means tell me about it.

When you have a large data set it works well.. but I like it because unlike I expected the detail is still there on smaller maps.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 4:13 am 
Offline
Member

Joined: Thu Jun 23, 2005 1:06 am
Posts: 12
Location: Houston, TX
I agree with Randy, every 5 degrees is fine. However, may I suggest bolding the 60 degree and 70 degree lines because during the winter months, the 60 degree line is pretty important down here in Southeast Texas.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 11:29 am 
Offline
Member

Joined: Thu Jan 19, 2006 11:11 pm
Posts: 34
Location: UK
Just one problem with your excellent script - it takes a VERY long time to run (49 seconds on my PC).

You can speed it up greatly be removing a lot of redundant ' DEGF TEMP ' commands.

The use of 'DEGF TEMP' in your 5th line will be used for ALL subsequent 'GRTN' tests on the following lines.

This simple modification produces EXACTLY the same result and took only 21 seconds, a time saving of over 50%.



analyze,OVER FILL COLOR=255:202:235 GRTN=0 SADC=1:20 STOR=1 DEGF TEMP
analyze,OVER FILL COLOR=255:170:223 GRTN=0 SADC=1:15 STOR=1 DEGF TEMP
analyze,OVER FILL COLOR=255:85:242 GRTN=0 SADC=1:10 STOR=1 DEGF TEMP
analyze,OVER FILL COLOR=223:0:255 GRTN=0 SADC=1:5 STOR=1 DEGF TEMP
analyze,OVER FILL COLOR=179:0:255 GRTN=0 DEGF TEMP
analyze,OVER FILL COLOR=168:0:255 GRTN=1
analyze,OVER FILL COLOR=158:0:255 GRTN=2
analyze,OVER FILL COLOR=148:0:255 GRTN=3
...
...
...
analyze,OVER FILL COLOR=232:0:232 GRTN=119
analyze,OVER FILL COLOR=255:0:255 GRTN=120
analyze,CONT CINT=100.0 COLOR=100:100:100 LINE=2 TEMP
BASEMAP
STAMP



Les


Top
 Profile  
 
 Post subject: re:
PostPosted: Tue Feb 07, 2006 9:32 pm 
Offline
Member

Joined: Tue Jan 24, 2006 12:00 am
Posts: 58
Location: Jersey City, NJ
Wow! THanks... I'm new to this scripting thing and I can't write it off the top of my head.. I had to take this script and write it through it.

I did noticed it took a long time, and that was a downfall.

Thanks for telling me that!

I have a question for the dewpoint script.. I tried just copying this, changing TEMP to DEWP and changing the colors, but it's not working. Is there something else I should be doing?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 6:58 pm 
Offline
Member

Joined: Thu Jan 19, 2006 11:11 pm
Posts: 34
Location: UK
Hi,

I've just tried it and it works a treat (i.e. substituting DWPT for TEMP).

Check that you haven't mistyped the command, and that you haven't accidentally typed spaces at the end of any lines.

Les


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group