Convert vtk mesh file to selafin file

Hello, I have a .vtk file that contains a mesh with x, y, z data. This file is created via a python code. I would like to convert it into a selafin file (binary) using python code and not using BlueKenue. Does anyone have a solution?

Hi,

You can use the Python from TELEMAC (scripts/python3/data_manip) or PyTelTools.

You can create a slf from scratch since you have your own data.

Bests regards,

[name removed]

1 Like

see also:

https://github.com/oceanmodeling/xarray-selafin/wiki#create-a-selafin-from-scratch

using only:

  • xarray

  • xarray-selafin

libraries

1 Like