Difference between revisions of "SciFigs: Multi-column Parser"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
The user can '''Save''' a parser in order to use it at a later time by pressing the '''Load''' button. | The user can '''Save''' a parser in order to use it at a later time by pressing the '''Load''' button. | ||
− | From the Table one can specify the Data '''Type''' of each Column. Following you can set a '''Factor''' to be used for multiplying all the values of any column and also the | + | From the Table one can specify the Data '''Type''' of each Column. Following you can set a '''Factor''' to be used for multiplying all the values of any column and also the Find ('''RX''') for a pattern and Replace ('''After''') it with a new one when you parse the multi-column file. |
<br style="clear: both"/> | <br style="clear: both"/> | ||
Finally one can specify to use the same parser for the next files when he has to import more files by checking the box ''Use the same parser for next files''. | Finally one can specify to use the same parser for the next files when he has to import more files by checking the box ''Use the same parser for next files''. |
Latest revision as of 10:31, 9 March 2010
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:
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.
-
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.
that define either the pattern (# is the default) used to specify a new section, either 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.
The user can Save a parser in order to use it at a later time by pressing the Load button.
From the Table one can specify the Data Type of each Column. Following you can set a Factor to be used for multiplying all the values of any column and also the Find (RX) for a pattern and Replace (After) it with a new one when you parse the multi-column file.
Finally one can specify to use the same parser for the next files when he has to import more files by checking the box Use the same parser for next files.