The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Mon Dec 11, 2017 9:31 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Pressure tendency
PostPosted: Wed Jun 08, 2005 9:43 am 
Offline
Senior Member

Joined: Tue Nov 25, 2003 4:22 pm
Posts: 198
Location: Suoi Tien, Vietnam
Below a script for pressure tendency. BEWARE, if there are no vakues in the downloaded file the script will give some "strange" results.

Greetings

Fred

# Analyzing Pressure tendency step 2
#
# below 0
#
erase
ANALYZE,OVER FILL COLOR=076:000:107 FILS=0 GRTN=2 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=101:000:107 FILS=0 GRTN=4 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=122:000:116 FILS=0 GRTN=6 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=135:000:135 FILS=0 GRTN=8 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=153:000:153 FILS=0 GRTN=10 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=168:000:168 FILS=0 GRTN=12 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=189:000:189 FILS=0 GRTN=14 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=204:000:204 FILS=0 GRTN=16 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=224:000:224 FILS=0 GRTN=18 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=242:000:242 FILS=0 GRTN=20 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=250:000:255 FILS=0 GRTN=22 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=209:000:255 FILS=0 GRTN=24 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=179:000:255 FILS=0 GRTN=26 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=136:000:255 FILS=0 GRTN=28 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=082:000:255 FILS=0 GRTN=30 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=022:000:255 FILS=0 GRTN=32 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=000:045:255 FILS=0 GRTN=34 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=000:080:255 FILS=0 GRTN=36 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=000:105:255 FILS=0 GRTN=38 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=000:154:255 FILS=0 GRTN=40 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=000:179:255 FILS=0 GRTN=42 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=000:209:255 FILS=0 GRTN=44 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=000:255:255 FILS=0 GRTN=46 SADC=1:50 STOR=1 PTEN
ANALYZE,OVER FILL COLOR=000:245:255 FILS=0 GRTN=48 SADC=1:50 STOR=1 PTEN
#
# above 0
#
ANALYZE,OVER FILL COLOR=000:255:225 FILS=0 GRTN=0 PTEN
ANALYZE,OVER FILL COLOR=000:255:179 FILS=0 GRTN=2 PTEN
ANALYZE,OVER FILL COLOR=100:255:036 FILS=0 GRTN=4 PTEN
ANALYZE,OVER FILL COLOR=159:255:000 FILS=0 GRTN=6 PTEN
ANALYZE,OVER FILL COLOR=216:255:000 FILS=0 GRTN=8 PTEN
ANALYZE,OVER FILL COLOR=255:255:000 FILS=0 GRTN=10 PTEN
ANALYZE,OVER FILL COLOR=255:240:000 FILS=0 GRTN=12 PTEN
ANALYZE,OVER FILL COLOR=255:220:000 FILS=0 GRTN=14 PTEN
ANALYZE,OVER FILL COLOR=255:204:000 FILS=0 GRTN=16 PTEN
ANALYZE,OVER FILL COLOR=255:180:000 FILS=0 GRTN=18 PTEN
ANALYZE,OVER FILL COLOR=255:161:000 FILS=0 GRTN=20 PTEN
ANALYZE,OVER FILL COLOR=255:148:148 FILS=0 GRTN=22 PTEN
ANALYZE,OVER FILL COLOR=255:127:000 FILS=0 GRTN=24 PTEN
ANALYZE,OVER FILL COLOR=255:097:000 FILS=0 GRTN=26 PTEN
ANALYZE,OVER FILL COLOR=255:047:000 FILS=0 GRTN=28 PTEN
ANALYZE,OVER FILL COLOR=255:014:014 FILS=0 GRTN=30 PTEN
ANALYZE,OVER FILL COLOR=255:055:055 FILS=0 GRTN=32 PTEN
ANALYZE,OVER FILL COLOR=255:090:090 FILS=0 GRTN=34 PTEN
ANALYZE,OVER FILL COLOR=255:110:110 FILS=0 GRTN=36 PTEN
ANALYZE,OVER FILL COLOR=255:135:135 FILS=0 GRTN=38 PTEN
ANALYZE,OVER FILL COLOR=255:153:153 FILS=0 GRTN=40 PTEN
ANALYZE,OVER FILL COLOR=255:167:167 FILS=0 GRTN=42 PTEN
ANALYZE,OVER FILL COLOR=255:186:186 FILS=0 GRTN=44 PTEN
ANALYZE,OVER FILL COLOR=255:202:202 FILS=0 GRTN=46 PTEN
ANALYZE,OVER FILL COLOR=255:222:222 FILS=0 GRTN=48 PTEN
ANALYZE,OVER FILL COLOR=255:232:232 FILS=0 GRTN=50 PTEN
basemap
analyze,CONT CINT=2 COLOR=100:100:100 LINE=1 PTEN
stamp


Top
 Profile  
 
PostPosted: Tue Jan 03, 2006 3:21 pm 
Offline
Member

Joined: Mon Jan 02, 2006 3:58 pm
Posts: 57
Location: Jackson WI USA
Hello:

I'm a new user of DAWS here and was very used to the function of the Pressure Tendency output from the older DA2000 product, both in terms of appearance and speed.

Fred's routine below is VERY nice in appearance, but it is noticeably slower than the old routine. Does anyone have a script that will just contour the values without all the great looking colorizing?

I'm new at the scripting so I've not had time to figure this one out myself, but nave a need for the output in the near term.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 19, 2006 11:15 pm 
Offline
Member

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

Is this what you want?

Very fast, but exrremely basic.

Les


# Analyzing Pressure tendency step 2 by contours
#
erase
basemap
analyze,CONT CINT=2 COLOR=100:100:100 LINE=1 PTEN
stamp


Top
 Profile  
 
 Post subject: Simple PTEN Script
PostPosted: Fri Jan 20, 2006 5:34 am 
Offline
Member

Joined: Mon Jan 02, 2006 3:58 pm
Posts: 57
Location: Jackson WI USA
That will do it. Thanks!

Do you have any other scripts you are willing to share? I'm new to the scripting so I'm looking for just about anything as a way to learn how to write them.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 8:20 am 
Offline
Member

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

Not a huge number, but if you have anything specific, let me know.

Most of the scripts I have done are of the colour fill variety, but removing the fills is easy. For example, the script I sent you yesterday was simply the last three lines of the original, with all the colour-fill bits removed.


Les


Top
 Profile  
 
 Post subject: Scripts
PostPosted: Fri Jan 20, 2006 5:00 pm 
Offline
Member

Joined: Mon Jan 02, 2006 3:58 pm
Posts: 57
Location: Jackson WI USA
Les:

Really anything you have would help me out, I'm trying to learn scripting and the more different stuff I look at the better for me to learn and think of new things to do.

I don't mind the color fills at all, they look great, but printing out on a B&W laser doesn't work too well, hence he needs sometimes for just contours.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 5:28 pm 
Offline
Member

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

Here's a simple temperature plot


#Temperature in Celsius
#
ERASE
basemap
ANALYZE,CONT CINT=5 COLOR=100:100:100 LINE=1 TEMP
#

I suggest you play around, substituting other parameters for the 'TEMP' one above.

You will soon get the hang of it, and be making charts to suuit your specific needs.

It is also helpful simply to use scripts from this board. Comment out selected lines to see what different parts of the code achieve.

Les


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] 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