Edit->Formulas->Jython Libraryto bring up the
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 and for more info see How to write a Jython Method and Jython Methods and the IDV
Jython librariesEditor, click on the tab
def windSpeed(u,v): """ compute wind speed from u and v wind components """ usqd= u*u vsqd= v*v ws = sqrt(usqd + vsqd) return ws
Saveto check for correct Jython syntax and save the method; you will get an error message if the syntax is not correct. If it is complete, your method is saved.
OKto exit the editor.
Edit->Formulas->Create Formula. The
Formula Editorwindow appears.
Formulaentry field, simply
Advancedpanel by clicking on the down arrow.
Description"jython wind speed".
Workshopfrom the drop down list.
Displayssection, click on
Use selectedand then the
All offradio button. Then select
Contour Plan Viewand
Contour Vertical Cross Sectionin the list.
jython wind speedshould appear in the
Fieldspanel, under the