Page 1 of 1

Script to calculate 700-500mb lapse rate

Posted: Thu May 07, 2009 7:22 pm
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.

Posted: Thu May 14, 2009 6:46 am
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: