[Paraview] Fetching data from xdmf temporal collection

Armin Wehrfritz dkxls23 at gmail.com
Wed Mar 18 16:34:19 EDT 2015


I'm not quite sure what the problem here is.
However, I think this is nothing XDMF specific, but rather a general 
question on how to access the raw data in ParaView at a certain time level.
Am I correct with this Jean-Michel?

I attached a script that simply loads a xdmf file, steps though all 
time-steps, renders the data and prints the min/max values of the 
selected field.

There are probably better ways to do this though.
Generally, I prefer to use VTK directly for such kind of tasks, 
especially with the new VTK dataset adapter [1].

-Armin


[1] http://www.kitware.com/blog/home/post/709



On 03/18/2015 04:19 PM, Jean-Michel wrote:
> Hi Ken,
>
> Thank you very much for offering your help.
> Attached is the xmf file from which I'm trying to extract the data. I did
> delete a fair amount of lines from it to keep only the first 10 time steps -
> hope it won't affect anything.
>
> Jean-Michel
>
> -----Message d'origine-----
> De : Ken Sheldon [mailto:KSheldon at slb.com]
> Envoyé : mercredi 18 mars 2015 14:55
> À : paraview at paraview.org
> Cc : jm.lucas at gantha.com
> Objet : RE: [Paraview] Fetching data from xdmf temporal collection
>
> Jean-Michel
> I find the reader is very sensitive to input errors. The diagnostic messages
> are not always sufficient to identify mistakes in the XDMF file. I spent
> some time getting this to work for some our data.  If you would like send me
> a copy of your XDMF (not the HDF5), or at least the first few timesteps of
> it, I would be happy to take a look.
> ----Ken
>
> Date: Tue, 17 Mar 2015 17:46:08 +0100
> From: "Jean-Michel" <jm.lucas at gantha.com>
> To: <paraview at paraview.org>
> Subject: [Paraview] Fetching data from xdmf temporal collection
> Message-ID: <001b01d060d1$df435e70$9dca1b50$@lucas at gantha.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear all,
>
> I am trying to fetch data out of a xdmf/h5 file.
>
> My xdmf file is a temporal collection and the xdmf reader recognizes the
> time steps (index/values in the information block).
>
> I would like to access the point data for each time steps. However, I seem
> to only get one time step when fetching the point data from the multi-block
> dataset and I don't know how to iterate over the different time steps.
>
> Hope somebody can help. Thank you very much,
>
> Jean-Michel
>
>
> ---
> L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
> http://www.avast.com
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvReadXDMF.py
Type: text/x-python
Size: 928 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150318/f7bb261b/attachment.py>


More information about the ParaView mailing list