Previous: More on the Layout Model Editor Next: ISL - Scripting with IDV 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 > Layout Models

5.3.2 Using Jython in Layout Models
Parameter identifiers within a layout model can hold embedded Jython code. This allows you to do operations on the values and provide more extensive formatting.
  1. Start fresh. Show popup
  2. Open up the Layout Model Editor by selecting the Tools->Layout Model Editor menu item.
  3. Create a new Layout Model, called "Workshop2".
  4. Add a Value symbol into the center of the display.
  5. Load in some surface observation data. Show popup
  6. Create a Point Data display. Show popup
  7. In the Point Data Plot display control window make sure the layout model used is the new "Workshop2".
  8. Back to the Layout Model Editor, change the parameter of the value symbol to be a calculation of dewpoint depression.
  9. Now, let's add some formatting.
  10. So, we are starting to get a bit cluttered with the embedded Jython. We can use the Jython editor to define a function that is callable by the value symbol.

 


Previous: More on the Layout Model Editor Next: ISL - Scripting with IDV 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 > Layout Models