[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #VDM-383665]: format loopindex



Hi Patrick,
It sounds like you have 2 issues here.

> Is there a way to format ${loopindex} ?
> 
> My purpose is to generate from a netCDF file images named tyty_001.png,
> tyty_002.png, tyty_003.png...


In tonight's nightly build I have added some new properties:
loopindex_pad2, loopindex_pad3 and loopindex_pad4
These will pad out the string with "0":

<isl>
  <group loop="150">
    <echo message="loop:${loopindex} ${loopindex_pad2}  ${loopindex_pad3}  
${loopindex_pad4} "/>
</group>
</isl>

Gives:
loop:0 00  000  0000 
loop:1 01  001  0001 
loop:2 02  002  0002 
loop:3 03  003  0003 
loop:4 04  004  0004 
loop:5 05  005  0005 
loop:6 06  006  0006 
loop:7 07  007  0007 
loop:8 08  008  0008 
loop:9 09  009  0009 
loop:10 10  010  0010 
...

> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <isl debug="true" loop="3" offscreen="true">
> <bundle clear="true" times="${loopindex}"
> file="${islpath}/tyty.xidv"/>
> <image file="${islpath}/tyty_${loopindex}.png"/>
> </isl>
> 
> For now, I can generate tyty_1.png, tyty_2.png, tyty_3.png
> that represents always the same time step of the file despite the use
> of times="${loopindex}" in the bundle tag.
> 
>

This looks like a problem with the times not being used in the bundle. 
This is working for me. Try the attached bundle and isl file.

In the bundle - did you subset the times and only select one time? Can you send 
me the bundle?

Thanks,
Jeff


Ticket Details
===================
Ticket ID: VDM-383665
Department: Support IDV
Priority: Normal
Status: Closed

Attachment: timestest.xidv
Description: application/idv

Attachment: timestest.isl
Description: Binary data