# how to create input file with sensors time series data

**URL:** https://discourse.paraview.org/t/how-to-create-input-file-with-sensors-time-series-data/7877
**Category:** ParaView Support
**Tags:** python
**Created:** [August 27, 2021, 8:07am UTC](https://discourse.paraview.org/t/how-to-create-input-file-with-sensors-time-series-data/7877 "2021-08-27T08:07:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![filippo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/4bbf92/32.png) [@filippo](https://discourse.paraview.org/u/filippo)
#### Post date: [August 27, 2021, 8:07am UTC](https://discourse.paraview.org/t/how-to-create-input-file-with-sensors-time-series-data/7877/1 "2021-08-27T08:07:42Z")

</div>

Hello,  
I am a newbie but I didn’t find an answer to my problem.

I have a geometric 3d model (a building) with:

- many different types of sensors;
- some with a vector measure (pendulum, topographic), the other scalar;

Data from sensors:

- is very huge (about 100thousands of readings each sensor)
- reading is in different time (some sensors read every hour, others every day etc.)

With examples I found the way to create in python the geometry of the model and set some scalar data to some points.  
I used mehio library, defined points, cells and pont\_data then, as the example:

```auto
mesh = meshio.Mesh(
    points,
    cells,
    # Optionally provide extra data on points, cells, etc.
    point_data,
    # Each item in cell data must match the cells array
    cell_data,
)
mesh.write(
    "foo.vtk", # str, os.PathLike, or buffer/open file
    # file_format="vtk", # optional if first argument is a path; inferred from extension
)

```

Actually I don’t find the way to create timeseries structure for each sensor. I red about xdmf etc. but unsuccesfully.

Can someone help me on finding the way and some python code?

thanks in advance,  
Filippo
