NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[idvdevelopers] ISL scripting (2)

More questions about ISL:

<isl offscreen="false">
   <fileset  pattern=".*\.nc">
     <echo message="File: ${file}"/>
     <bundle file="${islpath}/test.xidv">
<!-- This sets the data file in the bundle to the ${file} -->
        <setfiles datasource=".*" file="${file}"/>
     </bundle>
     <pause seconds="20"/>
   </fileset>
</isl>

Above code: <setfiles datasource=".*" file="${file}"/>

Which will add files to datasource or replace old file?
When I loop my files:

<?xml version="1.0" encoding="ISO-8859-1"?>
<isl offscreen="false" loop="25" debug="true">
     <property name="basedir"
value="/t1/CMAQ4.6_SAPRC99_AE3_aq/2000-01_winter/basecase/MM5/" />
     <property name="file"
value="M01-IB01-J02-E02.24hr.200101${loopindex}" />
<!-- <echo message="File: ${basedir}${file}"/>  -->
     <if expr="${loopindex}>9">
     <bundle file="${islpath}/AQ_PM25.xidv">
        <setfiles datasource=".*" file="${basedir}${file}.nc"/>
     </bundle>
     <image file="${islpath}/images/${file}_PM25.png" >
        <transparent color="none" />
     </image>
     <pause seconds="20"/>
     </if>
</isl>

The datasource seems never changed, even my ${file} changed on screen
printout.

How can we set (change) datasource inside .xidv file?



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvdevelopers archives: