Formulas can be used to do simple arithmetic such as the simple difference, or they can be used to call Jython procedures as in the previous excercise. They can also be used to call Java methods and nest Jython procedures. In this exercise, we will show how to create more complex formulas from the set of diagnostic functions in the IDV.
First review Basics of IDV Formulas.
ETA 1998-06-29 00:00
data source.
Workshop->Flow fields
.
AGEO = OBS - GEO
System→Grid Diagnostics
library. This is a set
of diagnostic functions that can be applied to
grids. The names closely match the set of grid diagnostics in GEMPAK.
Look at the page in the
Jython Library section of the User's Guide.
Grids→Define a grid diagnostic
formula.
Flow Displays→Vector Plan View
,
the Workshop->Flow fields
display
setting and create the display.
vsub(vecr(u,v),geo(z))This will take the vector difference (vsub) between the vector (vecr) defined by u and v components and the geostrophic wind (geo) calculated from the geopotential height field (z).
OK
button.
File→Save→Save Data in Cache
menu to save the data in
the cache. You can leave the name as is or change it to ageo.
Grid→Create a grid diagnostic
formula
and the Contour Plan View Display.
mag(v)