# Time Series of AMR data

**URL:** https://discourse.paraview.org/t/time-series-of-amr-data/13867
**Category:** ParaView Support
**Tags:** vtk
**Created:** [February 5, 2024, 1:55pm UTC](https://discourse.paraview.org/t/time-series-of-amr-data/13867 "2024-02-05T13:55:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![risingBubbles](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/58f4c7/32.png) [@risingBubbles](https://discourse.paraview.org/u/risingBubbles)
#### Post date: [February 5, 2024, 1:55pm UTC](https://discourse.paraview.org/t/time-series-of-amr-data/13867/1 "2024-02-05T13:55:31Z")

</div>

Hello all,

I am trying to create a time series of my AMR data stored in `.vthb` files. I try to put the `.vthb` files in a `pvd` file and form a collection. At first glance everything seems to work, however, loading the `pvd` file makes ParaView drop the option to display more than 1 grid level. The option is called “Default Number of Levels”. Loading just on `.vthb` file gives me the option but once I load the `pvd` file I see no way how to display fine grid levels. I am using ParaView version 5.11.1 and here are the files I tried to work with:

[Example.zip](https://discourse.paraview.org/uploads/short-url/bI7C1VTQP7mE80IU5P9GUmhoOUQ.zip) (22.3 KB)

How can I make this work or is this a bug in ParaView?

Kind regards,  
Markus

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 6, 2024, 9:34am UTC](https://discourse.paraview.org/t/time-series-of-amr-data/13867/2 "2024-02-06T09:34:16Z")

</div>

This is expected. The pvd reader is very generic but does not provide access to the special properties of certain readers.

You may want to use a [.series file](https://docs.paraview.org/en/latest/UsersGuide/dataIngestion.html#handling-temporal-file-series) or a the [VTKHDF](https://docs.vtk.org/en/latest/design_documents/VTKFileFormats.html#vtkhdf-file-format) format

---

<div class="post-metadata">

### Author: ![risingBubbles](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/58f4c7/32.png) [@risingBubbles](https://discourse.paraview.org/u/risingBubbles)
#### Post date: [February 24, 2024, 5:55pm UTC](https://discourse.paraview.org/t/time-series-of-amr-data/13867/3 "2024-02-24T17:55:10Z")

</div>

Thank you again for your answer.

For the VTKHDF file, would there be a very simple Python script or C++ file available to produce an example HDF file as a starting point?

Furthermore, I saw this post: [Overlapping AMR support in vtkHDF - #5 by Francois\_Mazen - Development - VTK](https://discourse.vtk.org/t/overlapping-amr-support-in-vtkhdf/7868/5)  
The Problem is exactly similar to what I have. There was a specific design proposed for the HDF file and I tried the attached file [amrhdf.py](https://discourse.vtk.org/uploads/short-url/hqhbu9zEJ50o6CMw33TZt59Gtd5.py). However, ParaView can not read the generated .h5 file

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 26, 2024, 12:56pm UTC](https://discourse.paraview.org/t/time-series-of-amr-data/13867/4 "2024-02-26T12:56:18Z")

</div>

@Lucas_Givord @Francois_Mazen

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [February 26, 2024, 1:06pm UTC](https://discourse.paraview.org/t/time-series-of-amr-data/13867/5 "2024-02-26T13:06:13Z")

</div>

Hello @risingBubbles,

there is indeed a repository which contains simple python script to generate vtkhdf file : [https://gitlab.kitware.com/keu-public/vtkhdf/vtkhdf-scripts](https://gitlab.kitware.com/keu-public/vtkhdf/vtkhdf-scripts)

Regarding OverlappingAMR itself, I’m working on adding transient support for OverlappingAMR for the vtkHDFReader in VTK [here](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10902), I still need some work to finish that.

In this context, I plan to improve the `vtkhdf-scripts` repository to have a dedicate python script to generate overlapping amr with and without transient data, it’s not finished yet but it could help you : [https://gitlab.kitware.com/keu-public/vtkhdf/vtkhdf-scripts/-/blob/add\_overlapping\_amr\_script/scripts/generate\_overlappingAMR.py#L12](https://gitlab.kitware.com/keu-public/vtkhdf/vtkhdf-scripts/-/blob/add_overlapping_amr_script/scripts/generate_overlappingAMR.py#L12)
