Subsections


Input Node

The input node is capable of reading all kinds of dataformats supported by SciCraft. After typing or selecting a file, the filetype and a discription of the filtype will apear. The different variables contained in the file will be readily available in the bottom half of the dialog. The input node funktions the same for all kinds of datafiles, except one; the textfiles. The reading of textfiles is described in 3.2.1, below.


Reading Textfiles

Since textfiles are so general, and can be used for so much in SciCraft, they are not limited to a specific format. When filetype textfile is selected, the format option button ''Set separators'' is unlocked. Pressing this button gives you the dialog in figure 3.1.

Figure 3.1: Setting separators for reading a text file.

This dialog allows you to choose how the file should be represented in SciCraft. Whether you want it to be a ''list of lines'', a matrix where each line is a row and each word placed in a columb, or just a list of words. The Module Diagram ''textreader.zmd'' is an example of this. In addition to choosing between commenly used separators the dialog in figure 3.1 allows you to define your own by selecting custom and typing into the, now activated, field. You can also select the first row or column to be used as headers. If there are other information in the beginning that must be skipped, there is also an option to skip the X first lines.


SciCraft Development Team