[gradsusr] Graphing Warm and Cold advection?
Eric Altshuler
ela at cola.iges.org
Thu Sep 15 20:30:14 EDT 2011
Hello Howard,
You can use these commands in a grads exec file (note: this is not written in the grads scripting language)
pi=3.14159265359
dtr=pi/180
a=6.371e6
un=&0
vn=&1
tn=&2
dx=a*cos(dtr*lat)*dtr*cdiff(lon,x)
dy=a*dtr*cdiff(lat,y)
dtdx=cdiff(tn,x)/dx
dtdy=cdiff(tn,y)/dy
tadv=-un*dtdx-vn*dtdy
Copy and paste these lines into a file named 'tmpadv' and run it in grads as follows:
exec tmpadv U V T
where U, V and T are the names of your zonal wind, meridional wind, and temperature variables respectively. The defined variable tadv is the temperature advection.
Best regards,
Eric L. Altshuler
Assistant Research Scientist
Center for Ocean-Land-Atmosphere Studies
4041 Powder Mill Road, Suite 302
Calverton, MD 20705-3106
USA
E-mail: ela at cola.iges.org
Phone: (301) 902-1257
Fax: (301) 595-9793
----- Original Message -----
From: "Howard Staines" <metris at clear.net.nz>
To: gradsusr at gradsusr.org
Sent: Thursday, September 15, 2011 7:59:01 PM
Subject: [gradsusr] Graphing Warm and Cold advection?
I was wanting to create a script for thermal advection ... not sure
How to go about it ... any guidance would be appreciated
Regards
Howard Staines
Metris Limited
phone 0800 372 433 - mobile 027 2785586 - P O Box 5136 Greenmeadows, NAPIER
email info at metris.co.nz - info at metscape.net.nz - website www.metris.co.nz -
www.metscape.net.nz
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr
More information about the gradsusr
mailing list