McIDAS-V can be scripted to create and manipulate images and movies. The scripting is accomplished using Jython. Jython is an implementation of the Python language in Java and follows Python syntax.
McIDAS-V scripting can be done from the Jython shell, or a Jython script can be invoked as a command line argument.
In Unix, from the McIDAS-V-System directory:
runMcV -script /home/user/example.pyIn Windows, from the McIDAS-V System directory (if running under a Windows machine, it is necessary to use "\\" instead of "\" in scripts when specifying directory paths to avoid Windows interpreting it as an escape sequence.):
runMcV.bat -script C:\\home\\user\\example.py
When invoked as a command line argument, the user interface will not be shown. However, McIDAS-V still needs to be run with an active window system (e.g., X, MS Windows) for it to run. If running under a Linux/Unix machine with no X server running, McIDAS-V must be run under the X virtual frame buffer, xvfb.
McIDAS-V supports a number of functions and methods to load and display data, manipulate the display, and to save images. Download the example script to see how to use each one (example15.py). This page contains a list of functions that are supported in McIDAS-V. You can find more information about each function, including parameters, keywords, and example commands, by clicking on a function or a function category.
Modify the Display Object:
For users looking for more functionality from McIDAS-V scripting, additional functions can be found in the Java docs for visAD, netCDF, IDV, and McIDAS-V. Please send any questions or requests for functionality to the McIDAS-V Support Forum on scripting.