SeedingLineSet File Format

This is a simple ASCII file format for linesets. Some of the data sets on this website are given in this format. This page explains briefly how to read them.

Overview of the File Format

A SLS file consists of a header and a data section. The header holds information about the number of lines and the number of data values per point. The data section contains the coordinates and data values of the lines. Comment lines start with a hash #.

The following annotated example is self-explaining:

SeedingLS
Version 1

NumOfSeedingLines 143 <== Number of lines in this file

NumOfDataPerPoint 2 <== Number of data values per point

#~ LineID 0
LinePoints 2     <== Number of points in this line

    1.5 0.5 11.1 <== Coordinates (x,y,z) of the first point of this line
     -1          <== First data value of the first point
     0.5         <== Second data value of the first point
    0.5 3.7 10.1 <== Coordinates (x,y,z) of the second point of this line
     3           <== First data value of the second point
     1.25        <== Second data value of the second point

#~ More lines...

#~ LineID 142
LinePoints 3     <== Number of points in the last line

    3.1 0.2 11.0 <== Coordinates
     -1          <== Data value
     0.5         <== Data value
    1.0 1.5 11.1 <== Coordinates
     1           <== Data value
     0.75        <== Data value
    -1.5 2.5 11  <== Coordinates
     -1.4        <== Data value
     0.3         <== Data value