Welcome, Guest
Username: Password: Remember me

TOPIC: Visualisation of Telemac results with python.

Visualisation of Telemac results with python. 11 years 2 months ago #10196

  • nicolas
  • nicolas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 21
Hello everybody,

I was just wondering if scripts were available to view results issued from the Telemac system in Python.

Best regards,

Nicolas.
The administrator has disabled public write access.

Visualisation of Telemac results with python. 11 years 2 months ago #10203

  • gourish
  • gourish's Avatar
Hi Nicolas,

There is a directory "mtlplots" in pytel sub-directory of telemac system version 6p2 (in version 6p3 it is v6p3r1\scripts\python27\mtlplots). In the directory you will find the files plotTELEMAC.py, myplot1d.py and myplot2d.py which I think should help you in plotting selafin file generated by Telemac simulations.

Withe Best Regards,
Gourish
The administrator has disabled public write access.

Visualisation of Telemac results with python. 11 years 2 months ago #10216

  • nicolas
  • nicolas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 21
Hi Gourish,

Thank you very much for your answer. In fact, I am a beginner in python that is maybe why I experience difficulty in running these scripts. The fact is that I do not see how to use these scripts to visualise a selected data of a selaphin file like the bathymetry for instance. What are the prerequesites to use these scripts (libraries needed especially)? I do not see furthermore how to integrate the name of the selaphin file in these scripts neither the data retained for the post-processing.

Nicolas.
The administrator has disabled public write access.

Visualisation of Telemac results with python. 11 years 2 months ago #10221

  • Lufia
  • Lufia's Avatar
I wrote something about python, matplotlib,... this worked with v6p2

www.opentelemac.org/index.php/kunena/oth...lotlib-pytel-scripts

you need python, matplotlib and numpy, scipy.

The simplest way is to use the sealfin reader is only to use it to get the basic things you need. This are the nodes (x,y), the mesh and the value (which is an array) you like to plot.

Let me know if you need a more detailed example.
The administrator has disabled public write access.

Visualisation of Telemac results with python. 11 years 2 months ago #10222

  • nicolas
  • nicolas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 21
Dear Leo,

Your scripts are very clear and work well. Perfect and great !! It helped me to view my selaphin results very easily.
Thank you very much for your help.

Best regards,

Nicolas.
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.