Previous: ISL Introduction Next: Manipulating Images Table of contents Index Glossary Images Frames U09-NRM-127: The role of Distributed Data Access Technologies in NRM - for ITC-IDV version 2.7 > Advanced Topics > ISL - Scripting with IDV

5.4.1 Generating Images
Load in a bundle and generate a screen shot.
  1. First of all we need an example display. Load in some model data and create some display.
  2. As we'll see later make sure you are in a Lat/Lon projection in an overhead view. Select Projections->Use Displayed Area
  3. Save this off as isl.xidv in the isl directory.
  4. Run this file:
    <isl debug="true" offscreen="false">
         <bundle file="isl.xidv"/>
    </isl>
    
    image1.isl
  5. Now, change directory to the home directory (cd) and run:
    idv /home/idv/isl/image1.isl
    
  6. What happened?
  7. The bundle reference in the isl was relative to where you run the idv from. We'll use the islpath property:
    <isl debug="true" offscreen="false">
         <bundle file="${islpath}/isl.xidv"/>
    </isl>
    
    image2.isl
  8. Note, no images were created. Only the bundle was loaded. To create an image we'll use the image tag:
    <isl debug="true" offscreen="false">
         <bundle file="${islpath}/isl.xidv"/>
    
    <!-- Wait until everything is loaded -->
         <pause/>
    
    <!-- Take a screen shot -->
         <image file="${islpath}/isl.png"/>
    </isl>
    
    image3.isl
  9. The movie tag lets us create a time-loop movie or animated gif.
    <isl debug="true" offscreen="false">
         <bundle file="${islpath}/isl.xidv"/>
    
         <pause/>
    
    <!-- Generate an quicktime movie -->
         <movie file="${islpath}/isl.mov"/>
    
    <!-- Generate an animate gif -->
         <movie file="${islpath}/isl.gif"/>
    </isl>
    
    image4.isl
  10. The IDV gives you an easy way to save off a basic ISL file. Run the IDV with the above bundles. Select File->Save As... and choose the /home/idv/isl directory and enter image.isl.
  11. At the ISL Properties dialog:
    1. Turn off Offscreen.
    2. Turn off Image
    3. Turn on Movie and enter image.kmz.
    4. Press OK. This saves a bundle (image.xidv) and an ISL file.
  12. The ISL file should look like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <isl debug="true" loop="1" offscreen="false" sleep="3600">
      <bundle clear="true" file="${islpath}/image.xidv" wait="true"/>
      <movie file="${islpath}/image.kmz"/>
    </isl>
    
    image.isl
  13. If we enter a kmz suffix for the movie the IDV will generate a Google Earth kmz file of the animation loop.
  14. Now, we'll show you an easier way to do all of this.

 


Previous: ISL Introduction Next: Manipulating Images Table of contents Index Glossary Images Frames Français Español Portugese Italian Japanese Korean Russian Chinese-simp Chinese-trad Dutch German Greek Français Español Portugese Italian Japanese Korean Russian Chinese-simp Chinese-trad Dutch German Greek

U09-NRM-127: The role of Distributed Data Access Technologies in NRM - for ITC-IDV version 2.7 > Advanced Topics > ISL - Scripting with IDV