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

[IDV #YIC-136069]: idv scripting calling xidv and saving hourly images



Greetings!

You will need to edit a few lines in your isl script. First, you will need to 
change your load bundle command to use the "times" argument, like so:

<bundle clear="true" file="${islpath}/test.xidv" wait="true" times="3"/>

This says "load the fourth frame in the animation" (note: times is a zero based 
index, so the animation frame will always be "times" + 1). Let's say you wanted 
to output the first three frames as images. You could do the following:

<isl debug="true" loop="3" offscreen="true">
  <bundle clear="true" file="${islpath}/test.xidv" wait="true" 
times="${loopindex}"/>
  <image file="${islpath}/${time:yyyyMMdd_HHmm}.png"/>
</isl>

In this case, we've told the isl script to loop three times. We then pass the 
loopindex into the times argument of the load bundle command. To keep the image 
output clear, I've told it to save the image file using the animation time in 
the name, so that the names will be something like "20120207_11500.png". You 
could change ${time:yyyyMMdd_HHmm} to ${loopindex} and have the images output 
as 0.png, 1.png, 2.png.

If there are specific animation times that you would like to use that are not 
in subsequent order (say, times 0, 1, 5, 10), you could try the foreach tag 
(see http://www.unidata.ucar.edu/software/idv/docs/userguide/isl/BasicTags.html 
for more info on foreach).

Cheers!

Sean

> Dear Support,
> 
> I am trying to run some xidv files non-interactively.  I've created
> several xidv files that work fine using idv in an interactive state.
> However when I run my script file that calls the xidv file it runs but is
> only creating one image file before exiting the script. I am using wrf-ems
> output in the xidv script and I can save hourly files in interactive mode.
> 
> My system is linux based, and if you can send me a script (preferably an
> isl) that would allow me to call any xidv file and then save the hourly
> jpgs/pngs from that xidv run automatically.
> 
> Can it be done in the xidv file itself? What am I doing wrong?
> 
> llyn Onderdonk
> 
> 


Ticket Details
===================
Ticket ID: YIC-136069
Department: Support IDV
Priority: Normal
Status: Open


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.