19.01.2015 Views

MOLPRO

MOLPRO

MOLPRO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9 TABLES AND PLOTTING 59<br />

FTYP,typ1, typ2, typ3, . . .<br />

DIGITS,dig1, dig2, dig3, . . .<br />

TYPE<br />

SAVE,file,status<br />

TITLE,title<br />

SORT,col1,col2,. . .<br />

PRINT,key1,key2,. . .<br />

NOPRINT,key1,key2,. . .<br />

NOPUNCH<br />

RANGE,start,end<br />

STATISTICS<br />

Simplified form to modify the format. This gives the type (A,<br />

F, or D) for each column (sensible defaults are normally used).<br />

Give the number of digits after the decimal points to be printed<br />

for each column (sensible defaults are normally used).<br />

Specify a data format for the table. The default is TEXT which<br />

gives a plain text file. Other possibilities are CSV (commaseparated<br />

fields suitable for a spreadsheet), LATEX (a LATEX<br />

table environment), MATHEMATICA (Mathematica code that<br />

assigns the table to an array), MATLAB (Matlab code that assigns<br />

the table to an array), MAPLE (Maple code that assigns<br />

the table to an array), HTML (an HTML TABLE construction),<br />

and XML (an XML document containing a tree representing the<br />

table. The actual format is XHTML).<br />

Specify a file on which the table will be written. If status is<br />

NEW, the file is rewound, otherwise it is appended. If file has a<br />

suffix that is one of txt, csv, tex, m, mpl, html,<br />

xml, and a TYPE command is not specified, then the type will<br />

be set to that which is conventionally appropriate for the suffix.<br />

If file is omitted, then a file name is automatically generated,<br />

with the form input.tablen.ext: input is the basename of the<br />

input file (or molpro if running from standard input); n is a<br />

sequence number that is incremented by one each time a table<br />

is produced; ext is a suffix appropriate to the file format, eg<br />

txt, html, etc.<br />

Specify one line of a title (several TITLE cards may follow<br />

each other). Note that titles are only displayed in the SAVE<br />

file, if the SAVE command is given before the TITLE card.<br />

Sort rows according to increasing values of the given columns.<br />

The columns are sorted in the order they are specified.<br />

Specify print options (TABLE, HEADING, TITLE, WARNING,<br />

FORMAT, SORT). The default is print for the first three, and<br />

noprint for the last three.<br />

Disable print for given keys.<br />

Don’t write data to the punch file (data are written by default).<br />

Specify start and end indices of the variables to be printed.<br />

Print also linear regression and quadratic fits of the data columns.<br />

9.2 Plotting<br />

[PLOT[,col1,col2,...][,options]<br />

Construct input for a plotting program using the table as data. PLOT is a subcommand of TABLE<br />

and must follow TABLE or any of its valid subcommands given in the previous section. More<br />

than one PLOT command can be included within a single TABLE, and each invocation generates<br />

a new plot. However, PLOT must appear after all other TABLE subcommands.<br />

col1, col2,... are the names of the table columns to be plotted. These must be an exact subset<br />

of those given on the TABLE command. The first column is taken as abscissa, and the values<br />

of the remainder will be plotted against it. If no columns are specified, then the entire table is

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!