Input Syntax to Load Other Files
INPUT SYNTAX TO LOAD OTHER FILES
FAST-TCF has the option of reading in curve files and other FAST-TCF files nested within the input file. T/HIS now writes out and reads in curve styles and internal tags. FAST-TCF recognizes these tags if the user wishes to refer to them later on in the input file. If they are relative then the include files must be relative to where T/HIS is running from.
Filenames can contain spaces, but if they do then they must be enclosed in quotes
e.g. read "c:\my documents\filename.cur".
| Description | keyword | second word | third word onwards | notes | |
| Bulk data | readb | bulk data file | - | curves will be read in at this point in the file, and will be numbered accordingly | |
| CSV 1 (X,Y,X,Y...) | readcsv | csv file | lr <row number containing line labels> |
Subsequent words can be any of these 2 options. If no options then assumes reading x from column 1 and no labels. |
|
| ar <row number containing axis labels> | |||||
| CSV 2 (X,Y,Y,Y...) | readcsv2 | csv file type 2 | xg <x start value> <x interval> |
Subsequent words can be any of the 3rd word options. O nly one of the options XG and XC can be used. If no options then assumes reading x from column 1 and no labels. |
|
| xc <x values column number> | |||||
| lr <row number containing line labels> | |||||
| ar <row number containing axis labels> | |||||
| T/HIS Curve file | rea | curve name | - |
curves will be read in at this point in the file,
and will be numbered accordingly
curve tags and styles are stored automatically through the $TAG and $STYLE lines NOTE: If the tag in the curve file conflicts with an existing tag, the tag is NOT read in |
|
| Keyword | readk | keyword filename | - | curves will be read in at this point in the file, and will be numbered accordingly | |
| FAST-TCF Include | inc | include filename | - |
FAST-TCF will search for includes within includes
etc
FAST-TCF pastes the include files into the final input file as soon as they are detected |
|
| LS-PrePost Curve file | readlspost | filename | - | Reads in curves from an LS-PREPOST curve file | |
| LS-PrePost XY data file | readlsp_xy | filename | - | Reads in curves from an LS-PREPOST XY data file | |
| DIAdem | read_diadem | header file filename | <channel number to read> OR "<channel name to read>" (must use quotes) |
subsequent words can be either of these 2 options |
|
|
xg <x start value> <x interval> |
Only one of these 2 options can be used | ||||
|
xc <channel containing x-axis> |
|||||
| JavaScript | java | JavaScript filename | - | Runs a JavaScript. If any curves created by the JavaScript are referenced by following command in the FAST-TCF script then the JavaScript should generate curves tags for the curves whih ccan then be used in the FAST-TCF script. | |
Keyboard entry can also be added into the FAST-TCF file, allowing for simple curves to be created in T/HIS. The keyword for this is keyboard . The order of the following words is important, and must be adhered to (see below). The continuation line character is useful here "\".
| Keyword | following word | following word | notes |
| Keyboard | xaxis | x axis name | specifies the x axis label |
| yaxis | y axis name | specifies the y axis label | |
| label | curve label | specifies the curve label | |
| data |
xval,yval
xval2,yval2 xval3, yval3 etc |
no space between the x and y values, only a space between the pairs of values |
for example, to create an acceleration curve with a straight line at value 1.0:
keyboard title straight line \ xaxis time \ yaxis accn \ label straight
line at 1.0 \ data 0.000000,1.000000 \ 1.000000,1.000000