SciFigs: Multi-column Parser

From GeopsyWiki
Jump to navigation Jump to search
Accepting different information from the multi column a curve

At the top of the window there is the possibility to use a Parser, i.e. an XML file, that describes the way to translate the ASCII multi-column file.

What is included in the parser (.ctparser) file correspond to what is described as:

  • Setup the Lines parser
    Lines.png that is setting the starting and ending line of the multi-column file that you want to import. Also the pattern to be used for Accepting (there is not a default value for this) and/or Rejecting (# is the default descriptor) a line.
  • Setup the Columns Parser
    Columns.png that can be used as a delimiter (Tab or Space are the default, but none of them have to be used exclusively) for the different columns. If the Null Box is not selected any sequential number of separators are used as one separator. However, if it is selected its separator is used as delimiter. Additionally one can specify the Width of each Column, if the multi-column file is of fixed width.
  • Setup the Sections Parser
    Sections.png that define either the pattern (# is the default) used to define a new section each, or after reading a specific number of lines or columns or after you specify a pattern that you can find in a number of matches in a column.


Finally one can specify to use the same parser for the next files when he has to import more files or Save the parser for later use by pressing the Load button.