Script to calculate 700-500mb lapse rate

Strictly for sharing scripts used in Digital Atmosphere and getting assistance from other users.
Post Reply
pbanacos
Junior Member
Posts: 3
Joined: Thu May 07, 2009 3:35 am

Script to calculate 700-500mb lapse rate

Post by pbanacos »

I had originally contributed to the thread on the general Digital Atmosphere help sub-forum, but the question seems more appropriate here:

I'm trying to write a script to compute and contour 700-500mb lapse rate. Here is what I have:

ANALYZE,CONT CINT=0.5 DASH COLOR=200:0:0 STOR=8 SMLC=7:-1000 STOR=7 SDVD=3:6 STOR=6 SDIF=4:5 STOR=5 HGHT H500 STOR=4 HGHT H700 STOR=3 SDIF=1:2 STOR=2 TEMP H500 STOR=1 TEMP H700

This script seems to "choke" on the SDVD function, yielding an invalid floating operation error. Does anyone know of a work around for SDVD or otherwise have any thoughts on how to get around this issue? Thanks for any assistance you can provide.
tmagan
Member
Posts: 27
Joined: Mon May 26, 2008 3:11 am

Post by tmagan »

Allright, let me give it a first shot:

ANALYZE,STOR=2 TEMP H500 STOR=1 TEMP H700
#
ANALYZE,OVER FILL COLOR=100:255:036 GRTN=10 SDIF=1:2


ANALYZE,OVER FILL COLOR=216:255:000 GRTN=12 SDIF=1:2


ANALYZE,OVER FILL COLOR=255:240:000 GRTN=14 SDIF=1:2


ANALYZE,OVER FILL COLOR=255:204:000 GRTN=16 SDIF=1:2


ANALYZE,OVER FILL COLOR=255:161:000 GRTN=18 SDIF=1:2


ANALYZE,OVER FILL COLOR=255:127:000 GRTN=20 SDIF=1:2


ANALYZE,CONT LINE=1 CINT=2 SDIF=1:
Post Reply