Importing Scalar Data from CSV Files

oSP3D can import scalar data objects from a CSV file. In addition to the CSV file format specifications summarized in the previous topic, the CSV scalar data import interface has these restrictions:

  • The CSV file must have only one header line, appearing as the first line. The header line must have the same format as normal record lines and contain as many fields as the longest record in the rest of the file.

  • A header record with the hash character (#) in the first field indicates that the first field of each record in the file has to be read and interpreted as an integer design number.

  • Empty files are accepted.

The following example shows scalar data in a CSV file:

#, first param, "second param"
0, 1.34, 1.345e5
2, 2.45
3,

10,,4.56e5