<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Gerrick <br>
<br>
Exactly, A reader which simply responds to the TIME_ request and
exports the time asked for is the easiest way to go. Creating a
temporaldataset manually and then passing this around has the
disadvatage that you will have to read everything from disk at the
start - we work with huge datasets, and it is not practiacl to load
more than a couple of time steps at a time.<br>
<br>
Have a look at vtkFileSeriesReader or something similar. It may help
you if you have one timestep per file/files and you already have a
reader that can handle a single timestep. It will wrap your reader,
handle the time requests and all you need do is make sure you load the
correct one.<br>
<br>
Also see some of the readers in VTK/IO for support for handling time.<br>
<br>
JB<br>
<br>
<blockquote cite="mid:C4E2D916.1EA5%25gbivins@objectreservoir.com"
type="cite">
<title>Re: [vtkusers] TemporalDataSet examples</title>
<font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;">Hey John,<br>
Sounds like I need to take a step back and rethink my data import. I
thought I could just translate my data offline to vtk and then read the
VTK files into a vtkTemporalDataset. But from what you are saying, it
sounds like this isn’t the intention of the class. If I understand you
correctly, I actually need to modify/create a reader class that handles
reading in “n” timesteps (similar to Exodus reader) and override the
appropriate interfaces to allow the executive to query the reader for
the appropriate timestep...Is this what you mean?<br>
Gerrick<br>
<br>
<br>
On 9/1/08 4:22 AM, "John Biddiscombe" <<a moz-do-not-send="true"
href="biddisco@cscs.ch">biddisco@cscs.ch</a>> wrote:<br>
<br>
</span></font>
<blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;">Gerrick <br>
<br>
In general, it's better to output a dataset, and not a temporal
dataset. The reason is because the pipeline handles the execution of
the algorithms and tells the algorithm which time it wants, internally
a temporal dataset is constructed. You need to set the DATA_TIME_blah
keys and you can't (afaik) do this from java. You should write the
important code in c+++ and provide wrappers only in java.<br>
<br>
If all is working in c++ and you just want to request a particular
time, you need to set the UPDATE_TIME in java in order to make the
pipeline update. I have not tried to do this and I'm not sure if
information keys are wrapped. you wrote : but how do I make this call
to “vtkInformation:::Set()” that is a good question, I have not tried
it, but you can look at the wrappers ghenerated and see if the
interface exists. If not, you'll need to modify the wrapper generation
stuff to handle it. Nasty job. Good luck! The easiest solution is to
write a small class that does everything in c++ and use JNI to wrap
that using your own simple interface.<br>
<br>
ttfn<br>
<br>
JB<br>
</span></font>
<blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;"> Re: [vtkusers] TemporalDataSet examples I
ran into a snag here. I was able to get my sample code working with the
sample Exodus dataset, “can.ex2”. I think I understand how to update
the pipeline to display the requested timestep appropriately (Thanks
Jon!).<br>
So I’ve started trying to replace the exodus data with my own data and
create a temporal dataset but the temporal pipelines aren’t executing.
I think it’s because I need to set the time information
(DATA_TIME_STEPS, DATA_TIME_RANGE)I’m programming in Java and I don’t
quite understand how to set information. For example:<br>
VtkTemporalDataSet td = new vtkTemporalDataSet();<br>
td.GetInformation().Set(
td.DATA_TIME_STEPS(),numSteps,1.0,0.0);//<==I know this isn’t
correct but how do I make this call to “vtkInformation:::Set()” <br>
in Java?<br>
<br>
Gerrick<br>
<br>
<br>
On 7/22/08 9:13 AM, "John Biddiscombe" <<a moz-do-not-send="true"
href="biddisco@cscs.ch">biddisco@cscs.ch</a>> wrote:<br>
<br>
<br>
</span></font>
<blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;">Gerrick <br>
<br>
No problem. Glad to be of help.<br>
<br>
NB. I just noticed a mistake as I looked through it <br>
<br>
inter->UpdateInformation();<br>
should be<br>
algorithm->UpdateInformation();<br>
<br>
since I was using interpolation, the bug had not (yet) manifested
itself on me :)<br>
<br>
JB<br>
<br>
<br>
</span></font>
<blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;"> Re: [vtkusers] TemporalDataSet examples Hey
John, thanks. This is definitely useful for me. <br>
I’d since put the Temporal adventures on the back burner for a bit but
just started looking at it again this week so your response is right on
time!<br>
:) <br>
Gerrick<br>
<br>
<br>
On 7/22/08 6:04 AM, "John Biddiscombe" <<a moz-do-not-send="true"
href="biddisco@cscs.ch">biddisco@cscs.ch</a>> <<a
moz-do-not-send="true" href="mailto:biddisco@cscs.ch">mailto:biddisco@cscs.ch</a>>
wrote:<br>
<br>
<br>
<br>
</span></font>
<blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;">Gerrick <br>
<br>
I realise that it is a few weeks since you asked, but I couldn't find
an example program that does time looping manually. However, I had to
convert some data to vtk format recently and added some time looping
with interpolation to my existing converter - you may find the program
useful for getting some hints on forcing time etc. The program is a
little more complicated than might seem necessary, but it allows for
with/without interpolation and so handles temporal/non temporal
datasets and checks types accordingly (plus the data is multiblock
anyway).<br>
<br>
Attached is code. You won't be able to compile it (missing classes plus
changed vtkAPI), but have a look at the TIME_keys etc. I hope it helps.<br>
<br>
JB<br>
<br>
<br>
<br>
</span></font>
<blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;"> Re: [vtkusers] TemporalDataSet examples <br>
<br>
<br>
</span></font></blockquote>
<font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;"> <br>
<br>
</span></font></blockquote>
<font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;"> <br>
</span></font></blockquote>
<font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;"> <br>
<br>
</span></font></blockquote>
</blockquote>
<font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;"><br>
</span></font></blockquote>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="78">--
John Biddiscombe, email:biddisco @ cscs.ch
<a class="moz-txt-link-freetext" href="http://www.cscs.ch/">http://www.cscs.ch/</a>
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82</pre>
</body>
</html>