Previous: Basics of IDV Formulas Next: Doing More With Formulas Table of contents Index Glossary Images Frames U09-NRM-127: The role of Distributed Data Access Technologies in NRM - for ITC-IDV version 2.7 > Advanced Topics > Diagnostic Functions: Formulas and Jython

5.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 Index Glossary Images Frames Français Español Portugese Italian Japanese Korean Russian Chinese-simp Chinese-trad Dutch German Greek Français Español Portugese Italian Japanese Korean Russian Chinese-simp Chinese-trad Dutch German Greek

U09-NRM-127: The role of Distributed Data Access Technologies in NRM - for ITC-IDV version 2.7 > Advanced Topics > Diagnostic Functions: Formulas and Jython