In this section we will cover how to save the state of the IDV in a
bundle
file. Bundles are xml files that hold all of the application state of the IDV:
data sources, displays, windows and view state.
First, clear all existing data and displays.
Load in a data source and create a display.
Load in the Sample RUC Data data source.
Create a Color-Shaded Plan View display with a temperature parameter.
Rotate the display in the main window and reposition the
control window and the main window.
Save this state off as the workshop.xidv bundle file.
Select the File→Save As... menu from the main menu bar.
Under the "What should be saved" leave everything checked.
Leave "No Jython" selected.
Make sure you are in the directory /home/idv.
Enter the name workshop.xidv. Click Save.
You can use a bundle in a variety of ways:
Open a bundle while running.
Remove all displays and data. Reposition the main window.
Select the File→Open menu item.
Select the workshop.xidv file.
You will be prompted whether you want to remove the current data and displays. Press OK.
You should see the state that was saved in the bundle.
You can also provide the bundle file as a command line argument when
starting the IDV, e.g.: