Thanks for the reply. I started tinkering with the TDSRadarChooser and
TDSRadarDatasetCollection classes a bit before trying the IDV Jython
approach. I wasn't sure if I was reinventing the wheel, so I looked
into Jython scripting. If I understand you correctly, I should
modify/extend the TDSRadarChooser and TDSRadarDatasetCollection classes
to accept a lat/lon and return the nearest radar. Then I should attempt
to call these new methods via Jython script. Is this correct?
Do I also understand you correctly that I should be able to call
many/most of the IDV Java classes and methods via Jython? If so, that's
a really interesting opportunity I didn't know about. I didn't see
anything in the Jython library that would allow me to read/parse a
server catalog, so if it is a matter of calling the appropriate Java
classes/methods, this will be really intriguing and helpful.
It is possible to blend IDV Jython statements with general python
statements including using standard or third party python modules?
On 5/2/13 9:25 AM, Yuan Ho wrote:
On 4/30/2013 9:19 PM, Kevin Manross wrote:
I'm *just* now starting to explore the jython capabilities in the IDV. I
would like to write a script that the user enters a lat/lon and a
date/time and from that, have the IDV plot an image for a radar nearest
to that point and nearest that time. This would be run headless for web
I'm working on a "nearest radar chooser", but the big hurdle I'm facing
is: is there a way with IDV/Jython to read and parse the top level
to get the available dates and times so I could then build the url for
This is a very interesting idea.
In the IDV, we use a table (xml file) to store all radar stations
information. There are a few APIs in the TDSRadarDatasetCollection
class you can use to get a list of stations. You need to write an API
to find the nearest radar station with the input of lat/lon. This
probably the big hurdle for you. After that, there are APIs already
that can be used to parse the server catalog and communicate with the
server. You can reference the TDSRadarChooser and
The benefit of using Jython is that you can invoke many Java
class directly, so I think this project is very interesting. Let us
know if you need more help.
idvusers mailing list
For list information, to unsubscribe, visit:
NCAR/CISL/Data Support Section