NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Ben... First, I have to ask what you would like to do with the data in Jython. The reason I ask is that if, for example you want to multiple each data value by 2, you would just say "x * 2" where 'x' is the variable name associated with the entire data object. Not knowing what you want to do, let me start at the basic level: if you create a Jython method in the User Library, like this: def mything(x): return x * 2.0 Then you would create a "Formula" that would call this method (function). For example, it might be: mything(mydata) YOu would then use the Chooser to get a reference to your data, then in the Field Selector, choose your formula and the desired display type (be sure when you create your formula that you select appropriate display types...). When you Create Display, then a dialog pops up asking what "mydata" is -- pick your data and when you do, the formula will call the "mything" method and then attempt to display the returned value. Also....please, if you find help pages with "wrong" info, send a note into "support-idv@xxxxxxxxxxxxxxxx" and let them know -- that's how things get fixed... tom On Dec 20, 2007 2:49 PM, Ben Kamen <bkamen@xxxxxxxxxxxxx> wrote: > So if IDV tells me my data structure looks like this: > > (Time -> ((Range, Azimuth) -> Reflectivity)) > > How do I access this in Jython? > > (the tutorials online have been lacking in how to access such an array) > > Too many pages with the wrong info. > > Frustrating. > > Thanks, > > -Ben > > -- > Ben Kamen - O.D.T., S.P. > ============================================================================= > Email: bkamen AT benjammin DOT net Web: http://www.benjammin.net > > As seen somewhere on the net: My other computer is your Windows Server. > _______________________________________________ > idvusers mailing list > idvusers@xxxxxxxxxxxxxxxx > For list information, to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/ > -- Tom Whittaker University of Wisconsin-Madison Space Science & Engineering Center (SSEC) Cooperative Institute for Meteorological Satellite Studies (CIMSS) 1225 W. Dayton Street Madison, WI 53706 USA ph: +1 608 262 2759
idvusers
archives: