# pvpython: How to save several datasets at once?

**URL:** https://discourse.paraview.org/t/pvpython-how-to-save-several-datasets-at-once/2003
**Category:** ParaView Support
**Tags:** python
**Created:** [June 7, 2019, 9:19am UTC](https://discourse.paraview.org/t/pvpython-how-to-save-several-datasets-at-once/2003 "2019-06-07T09:19:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Terry](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/b9e5f3/32.png) [@Terry](https://discourse.paraview.org/u/Terry)
#### Post date: [June 7, 2019, 9:19am UTC](https://discourse.paraview.org/t/pvpython-how-to-save-several-datasets-at-once/2003/1 "2019-06-07T09:19:54Z")

</div>

Hello,

I am looking for a way to safe the data of several independent filters at once using paraview.simple  
I just began programming with python, so please give me a hint even though the awnser might be obviously to you.

Best regards,  
Terry  
-------- More explanation:  
I have a set of 1000 time steps (later more) of a few cfd simulations (reader: OpenFOAmReader) and need several data written to csv files:  
-plotOverLlines (at least two)  
-plotSelectionOverTime (at least two, exact number unknown)

I am able two save the data one after the other but it takes a lot of time and I would like to save the data (or collect the data and save it later) without reloading every time step for every filter.

So far i use SaveData(’./interfaceVelocity.csv’, proxy=slice1\_1, Precision=10, WriteTimeSteps=1) for saving

link to same question in cfd-online forum [cfd-online.com](https://www.cfd-online.com/Forums/paraview/218083-pvpython-how-save-several-datasets-once.html#post735687)

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [June 7, 2019, 1:40pm UTC](https://discourse.paraview.org/t/pvpython-how-to-save-several-datasets-at-once/2003/2 "2019-06-07T13:40:50Z")

</div>

In ParaView 5.7, which hasn’t yet been released but should be available this summer, the Catalyst exporter will let you export more than one data set at a time for an entire time series. That isn’t available in 5.6.

To do this in 5.6, you can use Python scripting and call `SaveData` for any number of filters. To change timesteps, you can call

```auto
AnimationScene1 = GetAnimationScene()
AnimationScene1.GoToNext()

```

---

<div class="post-metadata">

### Author: ![Terry](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/b9e5f3/32.png) [@Terry](https://discourse.paraview.org/u/Terry)
#### Post date: [June 7, 2019, 1:48pm UTC](https://discourse.paraview.org/t/pvpython-how-to-save-several-datasets-at-once/2003/3 "2019-06-07T13:48:54Z")

</div>

Thank you very much!  
I will try the scripting for now and see what 5.7 will bring as well.
