# Selafin — Selafin/Seraphin (TELEMAC hydraulic model)

> Selafin (Selafin/Seraphin (TELEMAC hydraulic model)): Binary unstructured mesh and results format of the TELEMAC-MASCARET hydrodynamic modelling system. Specs, software and free sample files; convert Selafin to 39 formats online.

- Page: https://beta.mygeodata.cloud/formats/selafin



## What is a Selafin file?

Selafin, also known as Seraphin or Serafin, is the binary file format of the TELEMAC-MASCARET suite. This open-source system for free-surface flow, wave and sediment transport modelling was originally developed by EDF and is now maintained by a consortium. Selafin files hold model geometry and simulation results, such as water depth, velocity components or free-surface elevation, on an unstructured mesh.

The file consists of Fortran unformatted sequential records. A header contains an 80-character title, the variable names and units, mesh dimensions, element connectivity, boundary node information and node coordinates. One record block per time step follows, holding the time value and the value of each variable at every node. Both single- and double-precision variants exist. Two-dimensional meshes usually consist of triangular elements. Coordinate reference system information is normally not stored, so the projection must be known from the model setup. In GIS software, nodes are typically exposed as point features and elements as polygons.

Selafin files are mostly exchanged between hydraulic and coastal engineers who run TELEMAC-MASCARET models, and with consultants or authorities who review the results. The file is binary and does not normally carry a coordinate reference system, so the projection must be obtained from the model setup. Check the precision variant, the number of time steps and the variable names before converting.

### Technical details

| | |
|---|---|
| Full name | Selafin/Seraphin (TELEMAC hydraulic model) |
| Data type | Vector · GIS vector |
| File extension | .slf, .res, .sel |
| Files | Single file |
| Media type | application/octet-stream |
| Geometry types | Point, Polygon |
| Multiple layers | No |
| Mixed geometry in a layer | No |
| Attribute names | — |
| Coordinate system | Any (EPSG, ESRI, custom) |
| Converter support | Read & write |
| Typical software | TELEMAC-MASCARET, Blue Kenue, QGIS, GDAL/OGR |
| Specification | https://www.opentelemac.org/ |

### Specifications & references

- https://www.opentelemac.org/
- https://gdal.org/en/stable/drivers/vector/selafin.html

### Sample Selafin files — free download

- [Places as mesh nodes (UTM)](https://beta.mygeodata.cloud/static/landing/samples/v1/selafin/st-helena-places.slf) — 58 places of Saint Helena as Selafin (TELEMAC) nodes with numeric variables id and elevation, coordinates in UTM zone 30S. (1.4 kB, EPSG:32730)

### Convert Selafin to other formats

- [Selafin to GPKG](https://beta.mygeodata.cloud/converter/selafin-to-gpkg)
- [Selafin to KML](https://beta.mygeodata.cloud/converter/selafin-to-kml)
- [Selafin to DXF](https://beta.mygeodata.cloud/converter/selafin-to-dxf)
- [Selafin to GeoJSON](https://beta.mygeodata.cloud/converter/selafin-to-geojson)
- [Selafin to GPX](https://beta.mygeodata.cloud/converter/selafin-to-gpx)
- [Selafin to SHP](https://beta.mygeodata.cloud/converter/selafin-to-shp)
- [Selafin to TopoJSON](https://beta.mygeodata.cloud/converter/selafin-to-topojson)
- [Selafin to GeoPDF](https://beta.mygeodata.cloud/converter/selafin-to-geopdf)
- [Selafin to KMZ](https://beta.mygeodata.cloud/converter/selafin-to-kmz)
- [Selafin to CSV](https://beta.mygeodata.cloud/converter/selafin-to-csv)
- [Selafin to XLSX](https://beta.mygeodata.cloud/converter/selafin-to-xlsx)
- [Selafin to SQLite](https://beta.mygeodata.cloud/converter/selafin-to-sqlite)
- [Selafin to MapInfo](https://beta.mygeodata.cloud/converter/selafin-to-mapinfo)
- [Selafin to WKT](https://beta.mygeodata.cloud/converter/selafin-to-wkt)
- [Selafin to GML](https://beta.mygeodata.cloud/converter/selafin-to-gml)
- [Selafin to DGN](https://beta.mygeodata.cloud/converter/selafin-to-dgn)
- [Selafin to MIF](https://beta.mygeodata.cloud/converter/selafin-to-mif)
- [Selafin to FGB](https://beta.mygeodata.cloud/converter/selafin-to-fgb)

## Frequently asked questions

### Why does my Selafin file have no projection after conversion?

The format normally does not store coordinate reference system information. Assign the CRS manually after loading, using the one defined in the model setup. Otherwise the data will not align with other layers.

### Why do the extensions .slf, .res and .sel all exist?

The extension is only a naming convention. Geometry files are often saved as .slf, while result files from a simulation are commonly named .res. The internal structure is the same, so the content matters rather than the extension.

### Are nodes or elements exported when a Selafin file is read in GIS?

GIS software typically exposes the mesh nodes as point features and the triangular elements as polygons. Variable values are stored per node, so they are attached to the points. Time-dependent results require choosing a time step.

### What is a Selafin file?

Selafin, also known as Seraphin or Serafin, is the binary file format of the TELEMAC-MASCARET suite. This open-source system for free-surface flow, wave and sediment transport modelling was originally developed by EDF and is now maintained by a consortium. Selafin files hold model geometry and simulation results, such as water depth, velocity components or free-surface elevation, on an unstructured mesh.

The file consists of Fortran unformatted sequential records. A header contains an 80-character title, the variable names and units, mesh dimensions, element connectivity, boundary node information and node coordinates. One record block per time step follows, holding the time value and the value of each variable at every node. Both single- and double-precision variants exist. Two-dimensional meshes usually consist of triangular elements. Coordinate reference system information is normally not stored, so the projection must be known from the model setup. In GIS software, nodes are typically exposed as point features and elements as polygons.

### How do I open a Selafin file?

Selafin files can be opened in TELEMAC-MASCARET, Blue Kenue, QGIS and GDAL/OGR. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert Selafin to?

Popular conversions are GPKG, KML, DXF, GeoJSON, GPX and SHP. In total the Converter writes Selafin data to 39 formats.

### How do I create a Selafin file?

Convert existing data to Selafin — for example from CSV, DWG, DXF, GeoJSON and GeoPDF. Upload the file, choose Selafin as output and download the result.

