This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi,
>
> I wrote a Jython file in Local Jython (Jython libraries ) as below :
>
> "...... print " IDV "
> data =
> makeDataSource('dods://motherlode.ucar.edu:8080/thredds/dodsC/modelsNc/NCEP/OCEAN/Global_5x2p5deg/OCEAN_Global_5x2p5deg_20091214_0000.nc',
> 'DODS.GRID')
> print 'datasource :', data
> ......."
>
> When I run this script by manually click in IDV, it works well.
> I also see that it will automatically called and run when I run IDV
> through command line (I used command : runIDV ). However, through
> command line, my script with "makeDataSource", "getData" ... do not
> work.
>
> Can you tell me how to make this script run through command line?
>
There is a "-script" argument:
idv -script <your script file>
Should evaluate the jython script
I see that this is not listed when you do a -help. My bad, I'll add that
-Jeff
Ticket Details
===================
Ticket ID: GMK-393088
Department: Support IDV
Priority: Normal
Status: Closed