Pressure tendency

Strictly for sharing scripts used in Digital Atmosphere and getting assistance from other users.
Post Reply
Fred
Senior Member
Posts: 198
Joined: Tue Nov 25, 2003 4:22 pm
Location: Suoi Tien, Vietnam

Pressure tendency

Post by Fred »

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
gkasica
Member
Posts: 57
Joined: Mon Jan 02, 2006 3:58 pm
Location: Jackson WI USA
Contact:

Need Alternative Script for Pressrue Tendency

Post by gkasica »

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!
Les
Member
Posts: 34
Joined: Thu Jan 19, 2006 11:11 pm
Location: UK
Contact:

Post by Les »

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
gkasica
Member
Posts: 57
Joined: Mon Jan 02, 2006 3:58 pm
Location: Jackson WI USA
Contact:

Simple PTEN Script

Post by gkasica »

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.
Les
Member
Posts: 34
Joined: Thu Jan 19, 2006 11:11 pm
Location: UK
Contact:

Post by Les »

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
gkasica
Member
Posts: 57
Joined: Mon Jan 02, 2006 3:58 pm
Location: Jackson WI USA
Contact:

Scripts

Post by gkasica »

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.
Les
Member
Posts: 34
Joined: Thu Jan 19, 2006 11:11 pm
Location: UK
Contact:

Post by Les »

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
Post Reply