Previous: Basics of IDV Formulas Next: Doing More With Formulas Table of contents Frames User guide
Unidata IDV Workshop for version 6.2u2 > Advanced Topics > Diagnostic Functions: Formulas and Jython

4.2.1 Jython Methods
You have seen how to compute wind speed from u and v wind components, using the Formulas facility. IDV formulas are actually code in the Jython language. If your calculations require more than a one-line mathematical expression you can create Jython methods to make calculations then you can call these methods in a formula. Here is an example of computing wind speed with a four-line method.
  1. Invoking the Jython Library and Editor
  2. The Jython Library window has two or more panes selected by the tabs at the top. Only the "User's Library" is editable; the others came from the site path and system defaults.

    How to Edit in the Jython Library Show popup and for more info see How to write a Jython Method and Jython Methods and the IDV

  3. Defining your own Jython Method
  4. Use the Method in a Formula

 


Previous: Basics of IDV Formulas Next: Doing More With Formulas Table of contents Frames User guide
Unidata IDV Workshop for version 6.2u2 > Advanced Topics > Diagnostic Functions: Formulas and Jython