Welcome, Guest
Username: Password: Remember me

TOPIC: Structure of telemac format "selafin"

Structure of telemac format "selafin" 5 years 10 months ago #32432

  • Fabien33
  • Fabien33's Avatar
Hi everyone,

We currently work on the selafin telemac file type.

Is there a way to access datas in such a file type or at less know its exact structure ? The idea is to convert a slf file into esri shape file.

Telemac provides no subroutine to extract datas from an slf file and "the programming guide" is not of great help.

Best regards

Fabien
The administrator has disabled public write access.

Structure of telemac format "selafin" 5 years 10 months ago #32433

  • riadh
  • riadh's Avatar
Hello

Appendix 3 of the user manual gives description of the serafin format.

kind regards
Riadh
The administrator has disabled public write access.

Structure of telemac format "selafin" 5 years 10 months ago #32434

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

You have a couple of ways to manipulate that format.
You can use the library hermes from within Telemac (in Fortran).
It is the IO Library of Telemac it handle Selafin, MED, VTK.
It is in sources/utils/hermes.

You can also use the Python wrapping of that library (you will need to compile the Python api).
You can find examples in python3/TelApy_hermes pr python27/TelApy_hermes
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: Fabien33

Structure of telemac format "selafin" 5 years 10 months ago #32435

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

If you need a point type shapefile, you can easily convert Selafin files to this format with either fudaa, Blue Kenue (save as xyz first, then save as shp) or with the PostTelemac QGIS plugin.

I believe it can also be done using the python scripts provided with the official version, not 100% sure thouhg. I would however use one of the method mentionned above as they are flawless and straight forward.

Good luck!

Best regards
PL
The administrator has disabled public write access.
The following user(s) said Thank You: Fabien33

Structure of telemac format "selafin" 5 years 10 months ago #32443

  • Fabien33
  • Fabien33's Avatar
Thank you everyone for all your anwsers.

I'm going to "read" the Fortran IO source code of Telemac.

Our idea is to make this operation of extracting datas in GIS automatic.
In the end, we want to be able to generate or modidy a mesh directly from a gis by calling appropriate intern or extern library.

Fabien
The administrator has disabled public write access.
Moderators: pham

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