[Paraview-developers] How to read time data in custom reader plugin

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Sun Nov 23 10:06:30 EST 2014


Michael,

Hard to say. If you could share the code with a sample dataset to
reproduce the problem, that'd make it easier to detect the issue.

Utkarsh

On Thu, Nov 13, 2014 at 11:26 AM, Schlottke, Michael
<M.Schlottke at aia.rwth-aachen.de> wrote:
> Hi Utkarsh,
>
> Thanks again for your answer. It seems to me that this method only works when using the file series reader. I’ve implemented the time step values property as per your suggestions, and also added a
>
> outInfo->Set(vtkStreamingDemandDrivenPipeline::TIME_STEPS(), &time, 1);
>
> line to our RequestInformation method. When opening multiple files using the internal FileSeriesReader, the time value is properly shown. However, when reading only a single file results in always showing “0” in the simulation time field, although I added the XML code also to the normal (i.e. non-fileseries) reader plugin.
>
> Any ideas what I might be doing wrong? Or is it possible that showing the simulation time only works through the file series reader?
>
> Regards,
>
> Michael
>
>> On 02 Oct 2014, at 22:10 , Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
>>
>> Michael,
>>
>> I think you may just need a "TimestepValues" property like follows:
>>
>>  <DoubleVectorProperty information_only="1"
>>                            name="TimestepValues"
>>                            repeatable="1">
>>        <TimeStepsInformationHelper />
>>        <Documentation>Available timestep values.</Documentation>
>>      </DoubleVectorProperty>
>>
>> Refer to readers.xml[1] for examples of other readers that do the same.
>>
>> Utkarsh
>>
>> [1] https://github.com/Kitware/ParaView/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml
>>
>> On Thu, Oct 2, 2014 at 11:30 AM, Schlottke, Michael
>> <M.Schlottke at aia.rwth-aachen.de> wrote:
>>> Dear Utkarsh,
>>>
>>> OK, this seems to work! Is there any way I can make this work (display of time) when I read a single file, i.e. bypassing the vtkFileSeriesReader?
>>>
>>> Michael
>>>
>>> On 28 Aug 2014, at 17:05 , Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
>>>
>>>> What you can do is make your internal reader which is used to read a
>>>> timestep put out a correct value for
>>>> vtkStreamingDemandDrivenPipeline::TIME_STEPS()/TIME_RANGE() keys in
>>>> the outInfo in its RequestInformation(). The vtkFileSeriesReader
>>>> iterates over all files in the series to gather that information is
>>>> possible ( see  vtkFileSeriesReader::RequestInformation).
>>>>
>>>> Utkarsh
>>>>
>>>> On Thu, Jul 31, 2014 at 5:45 AM, Schlottke, Michael
>>>> <M.Schlottke at aia.rwth-aachen.de> wrote:
>>>>> Hi folks,
>>>>>
>>>>> How can I make my custom plugin reader be aware of the simulation time,
>>>>> which is stored in the solution files I want to read? Thanks to the
>>>>> vtkFileSeriesReader (?) plugin I can already read in a series of files (i.e.
>>>>> solution_000*) and traverse through them in the correct order. However, in
>>>>> the “time” field only the time step number is displayed, but not the actual
>>>>> simulation time. How can I make ParaView use the correct time? I guess it's
>>>>> something I have to add to the “RequestInformation(..)” method in my reader.
>>>>> Is anyone there who has already solved this problem for her/himself?
>>>>>
>>>>> Thank you very much in advance
>>>>>
>>>>> Michael
>>>>>
>>>>> P.S.: I’m sure that this must have been asked here before, but I wasn’t able
>>>>> to find anything in the archives. If I missed something I’d greatly
>>>>> appreciate a link to the correct thread.
>>>>>
>>>>>
>>>>> --
>>>>> Michael Schlottke
>>>>>
>>>>> SimLab Highly Scalable Fluids & Solids Engineering
>>>>> Jülich Aachen Research Alliance (JARA-HPC)
>>>>> RWTH Aachen University
>>>>> Wüllnerstraße 5a
>>>>> 52062 Aachen
>>>>> Germany
>>>>>
>>>>> Phone: +49 (241) 80 95188
>>>>> Fax: +49 (241) 80 92257
>>>>> Mail: m.schlottke at aia.rwth-aachen.de
>>>>> Web: http://www.jara.org/jara-hpc
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Paraview-developers mailing list
>>>>> Paraview-developers at paraview.org
>>>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>>>
>>>
>


More information about the Paraview-developers mailing list